Package org.alfresco.repo.workflow
Class WorkflowPackageImpl
java.lang.Object
org.alfresco.repo.workflow.WorkflowPackageImpl
- All Implemented Interfaces:
WorkflowPackageComponent,Extensible
Alfresco implementation of Workflow Package where the package is stored
within the Alfresco Repository.
- Author:
- davidc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePackage(NodeRef container) Create a Workflow Package (a container of content to route through the Workflow).Creates the System Workflow ContainervoiddeletePackage(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>
ExtendedTrait<T>getWorkflowIdsForContent(NodeRef packageItem) Gets the Workflows that act upon the specified Repository content.voidsetImporterBootstrap(ImporterBootstrap bootstrap) voidsetMessageService(MessageService messageService) voidsetNamespaceService(NamespaceService namespaceService) voidsetNodeService(NodeService nodeService) voidsetPermissionService(PermissionService permissionService) voidsetPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter) voidsetSearchService(SearchService searchService) voidsetTenantService(TenantService tenantService) booleansetWorkflowForPackage(WorkflowInstance instance) Initialises the workflow package node on theWorkflowInstance, adding the appropriate aspect and setting the appropriate properties to mark it as a package for the givenWorkflowInstance.
-
Constructor Details
-
WorkflowPackageImpl
public WorkflowPackageImpl()
-
-
Method Details
-
setImporterBootstrap
- Parameters:
bootstrap- the importer bootstrap for the store to place workflow items into
-
setSearchService
- Parameters:
searchService- search service
-
setNodeService
- Parameters:
nodeService- node service
-
setPermissionService
-
setNamespaceService
- Parameters:
namespaceService- namespace service
-
setTenantService
- Parameters:
tenantService- tenant service
-
setMessageService
- Parameters:
messageService- the messageService to set
-
setPolicyBehaviourFilter
- Parameters:
policyBehaviourFilter- the behaviourFilter to set
-
createPackage
Create a Workflow Package (a container of content to route through the Workflow). If an existing container is supplied, it's supplemented with the workflow package aspect.- Specified by:
createPackagein interfaceWorkflowPackageComponent- Parameters:
container- (optional) a pre-created container (e.g. folder, versioned folder or layered folder)- Returns:
- the workflow package
-
deletePackage
Deletes a Workflow Package The workflow package aspect is removed, and if the container was previously created by the workflow service (i.e. not provided from elsewhere), it will be deleted.- Specified by:
deletePackagein interfaceWorkflowPackageComponent- Parameters:
container- NodeRef
-
getWorkflowIdsForContent
Gets the Workflows that act upon the specified Repository content.- Specified by:
getWorkflowIdsForContentin interfaceWorkflowPackageComponent- Parameters:
packageItem- the repository content item to get workflows for- Returns:
- list of workflows which act upon the specified content
-
createSystemWorkflowContainer
Creates the System Workflow Container- Returns:
- the system workflow container
-
setWorkflowForPackage
Initialises the workflow package node on theWorkflowInstance, adding the appropriate aspect and setting the appropriate properties to mark it as a package for the givenWorkflowInstance.- Specified by:
setWorkflowForPackagein interfaceWorkflowPackageComponent- Parameters:
instance- the workflow instance to which the package belongs.- Returns:
trueif the package node was modified.
-
getTrait
- Specified by:
getTraitin interfaceExtensible
-