Class DocbookEnhancementExtensionPoint
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.runtime.plugin.AbstractExtensionPoint<DocbookEnhancer>
-
- org.ametys.cms.transformation.docbook.DocbookEnhancementExtensionPoint
-
- All Implemented Interfaces:
LogEnabled
,ExtensionPoint<DocbookEnhancer>
,Initializable
,Component
public class DocbookEnhancementExtensionPoint extends AbstractExtensionPoint<DocbookEnhancer>
This extension point handle the new tags you want to add to the default implementation of the docbook
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROLE
The avalon role-
Fields inherited from class org.ametys.runtime.plugin.AbstractExtensionPoint
_extensions
-
-
Constructor Summary
Constructors Constructor Description DocbookEnhancementExtensionPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExtension(String id, String pluginName, String featureName, Configuration configuration)
Add an extension to this point.Set<String>
getDocbook2HTMLEditorHandlers()
Get the list of available handlersString
getDocbook2htmleditorXSLT()
Get the content of the XSLT fileSet<String>
getDocbook2HTMLHandlers()
Get the list of available handlersString
getDocbook2htmlXSLT()
Get the content of the XSLT fileString
getDocbook2outgoingReferencesXSLT()
Get the content of the XSLT fileSet<String>
getHTMLEditor2DocbookHandlers()
Get the list of available handlersString
getHTMLEditor2docbookXSLT()
Get the content of the XSLT filevoid
initializeExtensions()
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.-
Methods inherited from class org.ametys.runtime.plugin.AbstractExtensionPoint
getExtension, getExtensionsIds, hasExtension, initialize
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
DocbookEnhancementExtensionPoint
public DocbookEnhancementExtensionPoint()
-
-
Method Detail
-
getDocbook2htmleditorXSLT
public String getDocbook2htmleditorXSLT()
Get the content of the XSLT file- Returns:
- A valid XSLT file content
-
getDocbook2htmlXSLT
public String getDocbook2htmlXSLT()
Get the content of the XSLT file- Returns:
- A valid XSLT file content
-
getDocbook2outgoingReferencesXSLT
public String getDocbook2outgoingReferencesXSLT()
Get the content of the XSLT file- Returns:
- A valid XSLT file content
-
getHTMLEditor2docbookXSLT
public String getHTMLEditor2docbookXSLT()
Get the content of the XSLT file- Returns:
- A valid XSLT file content
-
getDocbook2HTMLHandlers
public Set<String> getDocbook2HTMLHandlers()
Get the list of available handlers- Returns:
- a non null set of roles
-
getHTMLEditor2DocbookHandlers
public Set<String> getHTMLEditor2DocbookHandlers()
Get the list of available handlers- Returns:
- a non null set of roles
-
getDocbook2HTMLEditorHandlers
public Set<String> getDocbook2HTMLEditorHandlers()
Get the list of available handlers- Returns:
- a non null set of roles
-
addExtension
public void addExtension(String id, String pluginName, String featureName, Configuration configuration) throws ConfigurationException
Description copied from interface:ExtensionPoint
Add an extension to this point. Each implementation knows the meaning of the given configuration.- 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:ExtensionPoint
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.- Throws:
Exception
- if something wrong occurs
-
-