public class WorkflowPackageImpl extends java.lang.Object implements WorkflowPackageComponent
| 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.
|
java.util.List |
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 |
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 org.alfresco.service.cmr.repository.NodeRef createPackage(org.alfresco.service.cmr.repository.NodeRef container)
createPackage in interface WorkflowPackageComponentcontainer - (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 WorkflowPackageComponentpublic java.util.List getWorkflowIdsForContent(org.alfresco.service.cmr.repository.NodeRef packageItem)
getWorkflowIdsForContent in interface WorkflowPackageComponentpackageItem - 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 WorkflowPackageComponentinstance - the workflow instance to which the package belongs.true if the package node was modified.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.