public class WorkflowPackageImpl extends Object implements WorkflowPackageComponent, Extensible
| Constructor and Description |
|---|
WorkflowPackageImpl() |
| Modifier and Type | Method and Description |
|---|---|
NodeRef |
createPackage(NodeRef container)
Create a Workflow Package (a container of content to route through the Workflow).
|
NodeRef |
createSystemWorkflowContainer()
Creates the System Workflow Container
|
void |
deletePackage(NodeRef container)
Deletes a Workflow Package
The workflow package aspect is removed, and if the container was previously created by the workflow
service (i.e.
|
<T extends Trait> |
getTrait(Class<? extends T> traitAPI) |
List<String> |
getWorkflowIdsForContent(NodeRef packageItem)
Gets the Workflows that act upon the specified Repository content.
|
void |
setImporterBootstrap(ImporterBootstrap bootstrap) |
void |
setMessageService(MessageService messageService) |
void |
setNamespaceService(NamespaceService namespaceService) |
void |
setNodeService(NodeService nodeService) |
void |
setPermissionService(PermissionService permissionService) |
void |
setPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter) |
void |
setSearchService(SearchService searchService) |
void |
setTenantService(TenantService tenantService) |
boolean |
setWorkflowForPackage(WorkflowInstance instance)
Initialises the workflow package node on the
WorkflowInstance,
adding the appropriate aspect and setting the appropriate properties to
mark it as a package for the given WorkflowInstance. |
public void setImporterBootstrap(ImporterBootstrap bootstrap)
bootstrap - the importer bootstrap for the store to place workflow
items intopublic void setSearchService(SearchService searchService)
searchService - search servicepublic void setNodeService(NodeService nodeService)
nodeService - node servicepublic void setPermissionService(PermissionService permissionService)
public void setNamespaceService(NamespaceService namespaceService)
namespaceService - namespace servicepublic void setTenantService(TenantService tenantService)
tenantService - tenant servicepublic void setMessageService(MessageService messageService)
messageService - the messageService to setpublic void setPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter)
policyBehaviourFilter - the behaviourFilter to setpublic NodeRef createPackage(NodeRef container)
createPackage in interface WorkflowPackageComponentcontainer - (optional) a pre-created container (e.g. folder, versioned folder or layered folder)public void deletePackage(NodeRef container)
deletePackage in interface WorkflowPackageComponentcontainer - NodeRefpublic List<String> getWorkflowIdsForContent(NodeRef packageItem)
getWorkflowIdsForContent in interface WorkflowPackageComponentpackageItem - the repository content item to get workflows forpublic NodeRef createSystemWorkflowContainer()
public boolean setWorkflowForPackage(WorkflowInstance instance)
WorkflowInstance,
adding the appropriate aspect and setting the appropriate properties to
mark it as a package for the given WorkflowInstance.setWorkflowForPackage in interface WorkflowPackageComponentinstance - the workflow instance to which the package belongs.true if the package node was modified.public <T extends Trait> ExtendedTrait<T> getTrait(Class<? extends T> traitAPI)
getTrait in interface ExtensibleCopyright © 2005–2021 Alfresco Software. All rights reserved.