Class HTMLEnhancementExtensionPoint
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.runtime.plugin.AbstractExtensionPoint<HTMLEnhancer>
-
- org.ametys.cms.transformation.html.HTMLEnhancementExtensionPoint
-
- All Implemented Interfaces:
LogEnabled
,ExtensionPoint<HTMLEnhancer>
,Initializable
,Component
- Direct Known Subclasses:
HTMLEnhancementExtensionPoint
public class HTMLEnhancementExtensionPoint extends AbstractExtensionPoint<HTMLEnhancer>
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 HTMLEnhancementExtensionPoint()
-
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>
getHtml2HTMLEditorHandlers()
Get the list of available handlersString
getHtml2htmleditorXSLT()
Get the content of the XSLT fileSet<String>
getHtml2HTMLHandlers()
Get the list of available handlersString
getHtml2htmlXSLT()
Get the content of the XSLT fileString
getHtml2outgoingReferencesXSLT()
Get the content of the XSLT fileSet<String>
getHtmleditor2HTMLHandlers()
Get the list of available handlersString
getHtmlEditor2HTMLXSLT()
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
-
HTMLEnhancementExtensionPoint
public HTMLEnhancementExtensionPoint()
-
-
Method Detail
-
getHtml2htmleditorXSLT
public String getHtml2htmleditorXSLT()
Get the content of the XSLT file- Returns:
- A valid XSLT file content
-
getHtml2htmlXSLT
public String getHtml2htmlXSLT()
Get the content of the XSLT file- Returns:
- A valid XSLT file content
-
getHtml2outgoingReferencesXSLT
public String getHtml2outgoingReferencesXSLT()
Get the content of the XSLT file- Returns:
- A valid XSLT file content
-
getHtmlEditor2HTMLXSLT
public String getHtmlEditor2HTMLXSLT()
Get the content of the XSLT file- Returns:
- A valid XSLT file content
-
getHtml2HTMLHandlers
public Set<String> getHtml2HTMLHandlers()
Get the list of available handlers- Returns:
- a non null set of roles
-
getHtmleditor2HTMLHandlers
public Set<String> getHtmleditor2HTMLHandlers()
Get the list of available handlers- Returns:
- a non null set of roles
-
getHtml2HTMLEditorHandlers
public Set<String> getHtml2HTMLEditorHandlers()
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
-
-