public class PackageManager extends Object
| Constructor and Description |
|---|
PackageManager(WorkflowService workflowService,
NodeService nodeService,
BehaviourFilter behaviourFilter,
org.apache.commons.logging.Log logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(NodeRef item) |
void |
addItem(String itemStr) |
void |
addItems(List<NodeRef> items) |
void |
addItems(String items)
Takes a comma-separated list of
NodeRef ids and adds the
specified NodeRefs to the package. |
void |
addItemsAsStrings(List<String> itemStrs) |
NodeRef |
create(NodeRef container)
Creates a new Workflow package using the specified
container. |
void |
removeItem(NodeRef item) |
void |
removeItem(String itemStr) |
void |
removeItems(List<NodeRef> items) |
void |
removeItems(String items)
Takes a comma-separated list of
NodeRef ids and adds the
specified NodeRefs to the package. |
void |
removeItemsAsStrings(List<String> itemStrs) |
void |
update(NodeRef packageRef)
Applies the specified modifications to the package.
|
public PackageManager(WorkflowService workflowService, NodeService nodeService, BehaviourFilter behaviourFilter, org.apache.commons.logging.Log logger)
public void addItems(String items)
NodeRef ids and adds the
specified NodeRefs to the package.items - Stringpublic void addItem(NodeRef item)
public void addItem(String itemStr)
public void removeItems(String items)
NodeRef ids and adds the
specified NodeRefs to the package.items - Stringpublic void removeItem(NodeRef item)
public void removeItem(String itemStr)
public NodeRef create(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 - NodeRefNodeRef.WorkflowException - if the specified container is already package.public void update(NodeRef packageRef)
packageRef - NodeRefCopyright © 2005–2020 Alfresco Software. All rights reserved.