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 private String
_html2htmleditorXSLT
private Set<String>
_html2htmlHandlers
private String
_html2htmlXSLT
private String
_html2outgoingReferencesXSLT
private Set<String>
_htmleditor2htmlHandlers
private String
_htmleditor2htmlXSLT
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 private String
_createIncludes(Set<String> includes)
private Set<String>
_getHtml2htmleditorXSLTs()
private Set<String>
_getHtml2htmlXSLTs()
private Set<String>
_getHtml2outgoingReferencesXSLTs()
private Set<String>
_getHTMLEditor2htmlXSLTs()
private String
_readTemplate()
void
addExtension(String id, String pluginName, String featureName, Configuration configuration)
Add an extension to this point.String
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
-
-
-
-
Field Detail
-
_html2htmleditorXSLT
private String _html2htmleditorXSLT
-
_html2htmlXSLT
private String _html2htmlXSLT
-
_html2outgoingReferencesXSLT
private String _html2outgoingReferencesXSLT
-
_htmleditor2htmlXSLT
private String _htmleditor2htmlXSLT
-
_html2htmlHandlers
private Set<String> _html2htmlHandlers
-
_htmleditor2htmlHandlers
private Set<String> _htmleditor2htmlHandlers
-
-
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
-
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
-
_createIncludes
private String _createIncludes(Set<String> includes)
-
_readTemplate
private String _readTemplate() throws IOException
- Throws:
IOException
-
_getHtml2htmlXSLTs
private Set<String> _getHtml2htmlXSLTs()
-
_getHtml2htmleditorXSLTs
private Set<String> _getHtml2htmleditorXSLTs()
-
_getHtml2outgoingReferencesXSLTs
private Set<String> _getHtml2outgoingReferencesXSLTs()
-
_getHTMLEditor2htmlXSLTs
private Set<String> _getHTMLEditor2htmlXSLTs()
-
-