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
TheWorkflowFactory
implementation for Ametys. Check theWorkflowDefinitionExtensionPoint
and add the workflows from WEB-INF/param/workflows.
-
-
Field Summary
Fields Modifier and Type Field Description protected WorkflowDefinitionExtensionPoint
_workflowDefEP
The workflow definition extension pointstatic String
ROLE
Avalon role.
-
Constructor Summary
Constructors Constructor Description AmetysWorkflowFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createWorkflow(String name)
Object
getLayout(String workflowName)
String
getName()
com.opensymphony.workflow.loader.WorkflowDescriptor
getWorkflow(String name, boolean validate)
String[]
getWorkflowNames()
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
setLayout(String workflowName, Object layout)
-
-
-
Field Detail
-
_workflowDefEP
protected WorkflowDefinitionExtensionPoint _workflowDefEP
The workflow definition extension point
-
-
Constructor Detail
-
AmetysWorkflowFactory
public AmetysWorkflowFactory()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
initDone
public void initDone() throws com.opensymphony.workflow.FactoryException
- Specified by:
initDone
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
- Overrides:
initDone
in classcom.opensymphony.workflow.loader.AbstractWorkflowFactory
- Throws:
com.opensymphony.workflow.FactoryException
-
setLayout
public void setLayout(String workflowName, Object layout)
- Specified by:
setLayout
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
-
getLayout
public Object getLayout(String workflowName)
- Specified by:
getLayout
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
-
isModifiable
public boolean isModifiable(String name)
- Specified by:
isModifiable
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
-
getName
public String 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
public String[] getWorkflowNames() throws com.opensymphony.workflow.FactoryException
- Specified by:
getWorkflowNames
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
- Throws:
com.opensymphony.workflow.FactoryException
-
createWorkflow
public void createWorkflow(String name)
- Specified by:
createWorkflow
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
-
removeWorkflow
public boolean removeWorkflow(String name) throws com.opensymphony.workflow.FactoryException
- Specified by:
removeWorkflow
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
- Throws:
com.opensymphony.workflow.FactoryException
-
renameWorkflow
public void renameWorkflow(String oldName, String newName)
- Specified by:
renameWorkflow
in interfacecom.opensymphony.workflow.loader.WorkflowFactory
-
save
public void 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
-
-