Class DocbookOutgoingReferencesExtractor
java.lang.Object
org.ametys.cms.transformation.docbook.DocbookOutgoingReferencesExtractor
- All Implemented Interfaces:
RichTextOutgoingReferencesExtractor
,Serviceable
- Direct Known Subclasses:
HTMLOutgoingReferencesExtractor
public class DocbookOutgoingReferencesExtractor
extends Object
implements RichTextOutgoingReferencesExtractor, Serviceable
This impl extract outgoing references on docbook rich texts
-
Field Summary
Modifier and TypeFieldDescriptionprotected ServiceManager
Avalon service managerstatic final String
Avalon Role -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Node
_getNodeAfterXSLT
(RichText metadata) Take the metadata stream and transform it using the xslt configured (_getXSLTURI)protected String
The uri to use for conversion to outgoing references formatgetOutgoingReferences
(RichText richText) This method analyzes a rich text to return the list of outgoing referencesvoid
service
(ServiceManager manager)
-
Field Details
-
ROLE
Avalon Role -
_manager
Avalon service manager
-
-
Constructor Details
-
DocbookOutgoingReferencesExtractor
public DocbookOutgoingReferencesExtractor()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
_getXSLTURI
The uri to use for conversion to outgoing references format- Returns:
- The uri
-
_getNodeAfterXSLT
Take the metadata stream and transform it using the xslt configured (_getXSLTURI)- Parameters:
metadata
- The metadata to transform- Returns:
- The root node of the result XML after the transformation
-
getOutgoingReferences
Description copied from interface:RichTextOutgoingReferencesExtractor
This method analyzes a rich text to return the list of outgoing references- Specified by:
getOutgoingReferences
in interfaceRichTextOutgoingReferencesExtractor
- Parameters:
richText
- The rich text to analyze- Returns:
- The outgoing references for the rich text
-