public class PackageManager
extends java.lang.Object
| Constructor and Description |
|---|
PackageManager(WorkflowService workflowService,
org.alfresco.service.cmr.repository.NodeService nodeService,
BehaviourFilter behaviourFilter,
org.apache.commons.logging.Log logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(org.alfresco.service.cmr.repository.NodeRef item) |
void |
addItem(java.lang.String itemStr) |
void |
addItems(java.util.List items) |
void |
addItems(java.lang.String items)
Takes a comma-separated list of
NodeRef ids and adds the
specified NodeRefs to the package. |
void |
addItemsAsStrings(java.util.List itemStrs) |
org.alfresco.service.cmr.repository.NodeRef |
create(org.alfresco.service.cmr.repository.NodeRef container)
Creates a new Workflow package using the specified
container. |
void |
removeItem(org.alfresco.service.cmr.repository.NodeRef item) |
void |
removeItem(java.lang.String itemStr) |
void |
removeItems(java.util.List items) |
void |
removeItems(java.lang.String items)
Takes a comma-separated list of
NodeRef ids and adds the
specified NodeRefs to the package. |
void |
removeItemsAsStrings(java.util.List itemStrs) |
void |
update(org.alfresco.service.cmr.repository.NodeRef packageRef)
Applies the specified modifications to the package.
|
public PackageManager(WorkflowService workflowService, org.alfresco.service.cmr.repository.NodeService nodeService, BehaviourFilter behaviourFilter, org.apache.commons.logging.Log logger)
public void addItems(java.util.List items)
public void addItems(java.lang.String items)
NodeRef ids and adds the
specified NodeRefs to the package.items - public void addItemsAsStrings(java.util.List itemStrs)
public void addItem(org.alfresco.service.cmr.repository.NodeRef item)
public void addItem(java.lang.String itemStr)
public void removeItems(java.util.List items)
public void removeItems(java.lang.String items)
NodeRef ids and adds the
specified NodeRefs to the package.items - public void removeItemsAsStrings(java.util.List itemStrs)
public void removeItem(org.alfresco.service.cmr.repository.NodeRef item)
public void removeItem(java.lang.String itemStr)
public org.alfresco.service.cmr.repository.NodeRef create(org.alfresco.service.cmr.repository.NodeRef container)
throws WorkflowException
container.
If the container is null then a new container node is created.
Applies the specified updates to the package after it is created.container - NodeRef.WorkflowException - if the specified container is already package.public void update(org.alfresco.service.cmr.repository.NodeRef packageRef)
packageRef - Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.