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 private String
_docbook2htmleditorXSLT
private Set<String>
_docbook2htmlHandlers
private String
_docbook2htmlXSLT
private String
_docbook2outgoingReferencesXSLT
private Set<String>
_htmleditor2docbook2Handlers
private String
_htmleditor2docbookXSLT
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 private String
_createIncludes(Set<String> includes)
private Set<String>
_getDocbook2htmleditorXSLTs()
private Set<String>
_getDocbook2htmlXSLTs()
private Set<String>
_getDocbook2outgoingReferencesXSLTs()
private Set<String>
_getHTMLEditor2docbookXSLTs()
private String
_readTemplate()
void
addExtension(String id, String pluginName, String featureName, Configuration configuration)
Add an extension to this point.String
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
-
-
-
-
Field Detail
-
_docbook2htmleditorXSLT
private String _docbook2htmleditorXSLT
-
_docbook2htmlXSLT
private String _docbook2htmlXSLT
-
_htmleditor2docbookXSLT
private String _htmleditor2docbookXSLT
-
_docbook2outgoingReferencesXSLT
private String _docbook2outgoingReferencesXSLT
-
_docbook2htmlHandlers
private Set<String> _docbook2htmlHandlers
-
_htmleditor2docbook2Handlers
private Set<String> _htmleditor2docbook2Handlers
-
-
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
-
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
-
_getDocbook2htmlXSLTs
private Set<String> _getDocbook2htmlXSLTs()
-
_getDocbook2htmleditorXSLTs
private Set<String> _getDocbook2htmleditorXSLTs()
-
_getDocbook2outgoingReferencesXSLTs
private Set<String> _getDocbook2outgoingReferencesXSLTs()
-
_getHTMLEditor2docbookXSLTs
private Set<String> _getHTMLEditor2docbookXSLTs()
-
-