Class AbstractFunctionsExtensionPoint
- java.lang.Object
-
- org.ametys.cms.workflow.extensions.AbstractFunctionsExtensionPoint
-
- All Implemented Interfaces:
ExtensionPoint<String>
- Direct Known Subclasses:
PostContentEditionFunctionsExtensionPoint,PostContentValidationFunctionsExtensionPoint
public abstract class AbstractFunctionsExtensionPoint extends Object implements ExtensionPoint<String>
Abstract extension point for workflow functions
-
-
Constructor Summary
Constructors Constructor Description AbstractFunctionsExtensionPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExtension(String id, String pluginName, String featureName, Configuration configuration)Add an extension to this point.StringgetExtension(String id)Returns the named extensionSet<String>getExtensionsIds()Returns a Set containing the ids of all known extensionsbooleanhasExtension(String id)Returns true if the named extension existsvoidinitializeExtensions()Finalize the initialization of the extensions.
This method is called after alladdExtension()calls.
This is the last step before the actual startup of the application.
-
-
-
Constructor Detail
-
AbstractFunctionsExtensionPoint
public AbstractFunctionsExtensionPoint()
-
-
Method Detail
-
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<String>- 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
-
initializeExtensions
public void initializeExtensions() throws Exception
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<String>- Throws:
Exception- if something wrong occurs
-
hasExtension
public boolean hasExtension(String id)
Description copied from interface:ExtensionPointReturns true if the named extension exists- Specified by:
hasExtensionin interfaceExtensionPoint<String>- Parameters:
id- the unique id of the extension- Returns:
- true if the named extension exists
-
getExtension
public String getExtension(String id)
Description copied from interface:ExtensionPointReturns the named extension- Specified by:
getExtensionin interfaceExtensionPoint<String>- Parameters:
id- the unique id of the extension- Returns:
- the named extension
-
getExtensionsIds
public Set<String> getExtensionsIds()
Description copied from interface:ExtensionPointReturns a Set containing the ids of all known extensions- Specified by:
getExtensionsIdsin interfaceExtensionPoint<String>- Returns:
- a Set containing the ids of all known extensions
-
-