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.xmlor if the file does not exits, built from the content of thecontext://WEB-INF/workflows/*.xmlfiles- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static String__CONFIG_DIRECTORYprivate static String__CONFIG_FILEprivate String_contextPathprotected org.slf4j.Logger_loggerLogger 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 StringgetBaseDir(Element root)protected InputStreamgetInputStream(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:
getInputStreamin classcom.opensymphony.workflow.loader.XMLWorkflowFactory
-
getBaseDir
protected String getBaseDir(Element root)
- Overrides:
getBaseDirin classcom.opensymphony.workflow.loader.XMLWorkflowFactory
-
-