Package org.ametys.plugins.workflow
Class AmetysWorkflowFactory
java.lang.Object
com.opensymphony.workflow.loader.AbstractWorkflowFactory
org.ametys.plugins.workflow.AmetysWorkflowFactory
- All Implemented Interfaces:
com.opensymphony.workflow.loader.WorkflowFactory
,Component
,Serviceable
public class AmetysWorkflowFactory
extends com.opensymphony.workflow.loader.AbstractWorkflowFactory
implements Component, Serviceable
The
WorkflowFactory
implementation for Ametys.
Check the WorkflowDefinitionExtensionPoint
and add the workflows from WEB-INF/param/workflows.-
Field Summary
Modifier and TypeFieldDescriptionprotected WorkflowDefinitionExtensionPoint
The workflow definition extension pointstatic final String
Avalon role.Fields inherited from class com.opensymphony.workflow.loader.AbstractWorkflowFactory
properties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createWorkflow
(String name) getName()
com.opensymphony.workflow.loader.WorkflowDescriptor
getWorkflow
(String name, boolean validate) getWorkflowLabel
(String name) Get the workflow label.String[]
void
initDone()
boolean
isModifiable
(String name) boolean
removeWorkflow
(String name) void
renameWorkflow
(String oldName, String newName) void
save()
boolean
saveWorkflow
(String name, com.opensymphony.workflow.loader.WorkflowDescriptor descriptor, boolean replace) void
service
(ServiceManager manager) void
Methods inherited from class com.opensymphony.workflow.loader.AbstractWorkflowFactory
getProperties, getWorkflow, init
-
Field Details
-
ROLE
Avalon role. -
_workflowDefEP
The workflow definition extension point
-
-
Constructor Details
-
AmetysWorkflowFactory
public AmetysWorkflowFactory()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
initDone
- Specified by:
initDone
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
- Overrides:
initDone
in classcom.opensymphony.workflow.loader.AbstractWorkflowFactory
- Throws:
com.opensymphony.workflow.FactoryException
-
setLayout
- Specified by:
setLayout
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
-
getLayout
- Specified by:
getLayout
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
-
isModifiable
- Specified by:
isModifiable
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
-
getName
- Specified by:
getName
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
-
getWorkflow
public com.opensymphony.workflow.loader.WorkflowDescriptor getWorkflow(String name, boolean validate) throws com.opensymphony.workflow.FactoryException - Specified by:
getWorkflow
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
- Throws:
com.opensymphony.workflow.FactoryException
-
getWorkflowNames
- Specified by:
getWorkflowNames
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
- Throws:
com.opensymphony.workflow.FactoryException
-
createWorkflow
- Specified by:
createWorkflow
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
-
removeWorkflow
- Specified by:
removeWorkflow
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
- Throws:
com.opensymphony.workflow.FactoryException
-
renameWorkflow
- Specified by:
renameWorkflow
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
-
save
- Specified by:
save
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
-
saveWorkflow
public boolean saveWorkflow(String name, com.opensymphony.workflow.loader.WorkflowDescriptor descriptor, boolean replace) throws com.opensymphony.workflow.FactoryException - Specified by:
saveWorkflow
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
- Throws:
com.opensymphony.workflow.FactoryException
-
getWorkflowLabel
public I18nizableText getWorkflowLabel(String name) throws com.opensymphony.workflow.FactoryException Get the workflow label.- Parameters:
name
- The name of the workflow- Returns:
- The label of the workflow with an i18n format.
- Throws:
com.opensymphony.workflow.FactoryException
- if an exception occurs
-