Package org.ametys.plugins.workflow
Class XmlWorkflowFactory
- java.lang.Object
-
- com.opensymphony.workflow.loader.AbstractWorkflowFactory
-
- com.opensymphony.workflow.loader.XMLWorkflowFactory
-
- org.ametys.plugins.workflow.XmlWorkflowFactory
-
- All Implemented Interfaces:
com.opensymphony.workflow.loader.WorkflowFactory
,Serializable
public class XmlWorkflowFactory extends com.opensymphony.workflow.loader.XMLWorkflowFactory
A XML factory for finding workflows definitions incontext://WEB-INF/param/workflows.xml
or if the file does not exits, built from the content of thecontext://WEB-INF/workflows/*.xml
files- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static String
__CONFIG_DIRECTORY
private static String
__CONFIG_FILE
private String
_contextPath
protected org.slf4j.Logger
_logger
Logger for traces.
-
Constructor Summary
Constructors Constructor Description XmlWorkflowFactory(String contextPath)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getBaseDir(Element root)
protected InputStream
getInputStream(String name)
-
Methods inherited from class com.opensymphony.workflow.loader.XMLWorkflowFactory
createWorkflow, getLayout, getName, getWorkflow, getWorkflowNames, initDone, isModifiable, removeWorkflow, renameWorkflow, save, saveWorkflow, setLayout, writeXML
-
-
-
-
Field Detail
-
__CONFIG_FILE
private static final String __CONFIG_FILE
- See Also:
- Constant Field Values
-
__CONFIG_DIRECTORY
private static final String __CONFIG_DIRECTORY
- See Also:
- Constant Field Values
-
_logger
protected org.slf4j.Logger _logger
Logger for traces.
-
_contextPath
private String _contextPath
-
-
Constructor Detail
-
XmlWorkflowFactory
public XmlWorkflowFactory(String contextPath) throws Exception
Constructor.- Parameters:
contextPath
- The webapp context path- Throws:
Exception
- if an error occurs.
-
-
Method Detail
-
getInputStream
protected InputStream getInputStream(String name)
- Overrides:
getInputStream
in classcom.opensymphony.workflow.loader.XMLWorkflowFactory
-
getBaseDir
protected String getBaseDir(Element root)
- Overrides:
getBaseDir
in classcom.opensymphony.workflow.loader.XMLWorkflowFactory
-
-