Class WorkflowDefinitionExtensionPoint
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<WorkflowDefinition>
org.ametys.plugins.workflow.definition.WorkflowDefinitionExtensionPoint
- All Implemented Interfaces:
LogEnabled,ExtensionPoint<WorkflowDefinition>,Disposable,Initializable,Component,Contextualizable,Serviceable,ThreadSafe
public class WorkflowDefinitionExtensionPoint
extends AbstractThreadSafeComponentExtensionPoint<WorkflowDefinition>
The
WorkflowDefinition extension point to list all available workflows.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContextThe Cocoon contextstatic final StringThe Avalon roleFields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FileGet the param workflows directory.protected String_getWorkflowIdFromFilename(String filename) Get the workflow ID from the workflow filename.voidaddExtension(String id, String pluginName, String featureName, Configuration configuration) Add an extension to this point.voidcontextualize(Context context) voidFinalize the initialization of the extensions.
This method is called after alladdExtension()calls.
This is the last step before the actual startup of the application.Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, dispose, getExtension, getExtensionsIds, hasExtension, initialize, serviceMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The Avalon role -
_cocoonContext
The Cocoon context
-
-
Constructor Details
-
WorkflowDefinitionExtensionPoint
public WorkflowDefinitionExtensionPoint()
-
-
Method Details
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Overrides:
contextualizein classAbstractThreadSafeComponentExtensionPoint<WorkflowDefinition>- Throws:
ContextException
-
initializeExtensions
Description copied from interface:ExtensionPointFinalize the initialization of the extensions.
This method is called after alladdExtension()calls.
This is the last step before the actual startup of the application.- Specified by:
initializeExtensionsin interfaceExtensionPoint<WorkflowDefinition>- Overrides:
initializeExtensionsin classAbstractThreadSafeComponentExtensionPoint<WorkflowDefinition>- Throws:
Exception- if something wrong occurs
-
addExtension
public void addExtension(String id, String pluginName, String featureName, Configuration configuration) throws ConfigurationException Description copied from interface:ExtensionPointAdd an extension to this point. Each implementation knows the meaning of the given configuration.- Specified by:
addExtensionin interfaceExtensionPoint<WorkflowDefinition>- Overrides:
addExtensionin classAbstractThreadSafeComponentExtensionPoint<WorkflowDefinition>- Parameters:
id- the unique identifier of the extension.pluginName- Unique identifier for the plugin hosting the extensionfeatureName- Unique feature identifier (unique for a given pluginName)configuration- the information about the extension to be added- Throws:
ConfigurationException- when a configuration problem occurs
-
_getParamWorkflowDir
Get the param workflows directory.- Returns:
- the workflows directory in WEB-INF/param.
-
_getWorkflowIdFromFilename
Get the workflow ID from the workflow filename.- Parameters:
filename- The workflow filename- Returns:
- the workflow ID
-