Package org.alfresco.repo.virtual.bundle
Class VirtualWorkflowPackageExtension
- java.lang.Object
-
- org.alfresco.traitextender.SingletonExtension<E,T>
-
- org.alfresco.traitextender.SpringBeanExtension<WorkflowPackageExtension,WorkflowPackageTrait>
-
- org.alfresco.repo.virtual.bundle.VirtualWorkflowPackageExtension
-
- All Implemented Interfaces:
WorkflowPackageExtension,WorkflowPackageComponent
public class VirtualWorkflowPackageExtension extends SpringBeanExtension<WorkflowPackageExtension,WorkflowPackageTrait> implements WorkflowPackageExtension
-
-
Constructor Summary
Constructors Constructor Description VirtualWorkflowPackageExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.alfresco.service.cmr.repository.NodeRefcreatePackage(org.alfresco.service.cmr.repository.NodeRef container)Create a Workflow Package (a container of content to route through the Workflow).voiddeletePackage(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<java.lang.String>getWorkflowIdsForContent(org.alfresco.service.cmr.repository.NodeRef packageItem)Gets the Workflows that act upon the specified Repository content.voidsetSmartStore(VirtualStore smartStore)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.-
Methods inherited from class org.alfresco.traitextender.SpringBeanExtension
register, setExtensionPoint
-
Methods inherited from class org.alfresco.traitextender.SingletonExtension
acceptsTrait, acceptsTraitClass, getTrait
-
-
-
-
Method Detail
-
setSmartStore
public void setSmartStore(VirtualStore smartStore)
-
createPackage
public org.alfresco.service.cmr.repository.NodeRef createPackage(org.alfresco.service.cmr.repository.NodeRef container)
Description copied from interface:WorkflowPackageComponentCreate 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
public void deletePackage(org.alfresco.service.cmr.repository.NodeRef container)
Description copied from interface:WorkflowPackageComponentDeletes 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
public java.util.List<java.lang.String> getWorkflowIdsForContent(org.alfresco.service.cmr.repository.NodeRef packageItem)
Description copied from interface:WorkflowPackageComponentGets 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
-
setWorkflowForPackage
public boolean setWorkflowForPackage(WorkflowInstance instance)
Description copied from interface:WorkflowPackageComponentInitialises 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.
-
-