public class WorkflowPackageImpl extends Object implements WorkflowPackageComponent, Extensible
Constructor and Description |
---|
WorkflowPackageImpl() |
Modifier and Type | Method and Description |
---|---|
org.alfresco.service.cmr.repository.NodeRef |
createPackage(org.alfresco.service.cmr.repository.NodeRef container)
Create a Workflow Package (a container of content to route through the Workflow).
|
org.alfresco.service.cmr.repository.NodeRef |
createSystemWorkflowContainer()
Creates the System Workflow Container
|
void |
deletePackage(org.alfresco.service.cmr.repository.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(org.alfresco.service.cmr.repository.NodeRef packageItem)
Gets the Workflows that act upon the specified Repository content.
|
void |
setImporterBootstrap(ImporterBootstrap bootstrap) |
void |
setMessageService(MessageService messageService) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService) |
void |
setPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter) |
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService) |
void |
setTenantService(org.alfresco.repo.tenant.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(org.alfresco.service.cmr.search.SearchService searchService)
searchService
- search servicepublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- node servicepublic void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService
- namespace servicepublic void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
tenantService
- tenant servicepublic void setMessageService(MessageService messageService)
messageService
- the messageService to setpublic void setPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter)
policyBehaviourFilter
- the behaviourFilter to setpublic org.alfresco.service.cmr.repository.NodeRef createPackage(org.alfresco.service.cmr.repository.NodeRef container)
createPackage
in interface WorkflowPackageComponent
container
- (optional) a pre-created container (e.g. folder, versioned folder or layered folder)public void deletePackage(org.alfresco.service.cmr.repository.NodeRef container)
deletePackage
in interface WorkflowPackageComponent
container
- NodeRefpublic List<String> getWorkflowIdsForContent(org.alfresco.service.cmr.repository.NodeRef packageItem)
getWorkflowIdsForContent
in interface WorkflowPackageComponent
packageItem
- the repository content item to get workflows forpublic org.alfresco.service.cmr.repository.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 WorkflowPackageComponent
instance
- 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 Extensible
Copyright © 2005–2017 Alfresco Software. All rights reserved.