Class DocbookLocalMediaObjectEditionHandler
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.cms.transformation.htmledition.AbstractHTMLEditionHandler
org.ametys.cms.transformation.htmledition.DocbookLocalMediaObjectEditionHandler
- All Implemented Interfaces:
Contextualizable,LogEnabled,Serviceable,ContentHandler,LexicalHandler
- Direct Known Subclasses:
DocbookLocalMediaObjectEditionHandler
Handler to enhance the rich text attachments.
Add the content id and the data path to the local attachment's attribute
-
Field Summary
FieldsFields inherited from class org.ametys.cms.transformation.htmledition.AbstractHTMLEditionHandler
_contentHandler, _context, _lexicalHandler, _manager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetRichTextByUUIDURL(String uuid) Retrieves the URL to retrieve a rich text attachment by its UUIDvoidservice(ServiceManager manager) voidvoidstartElement(String uri, String loc, String raw, Attributes attrs) Methods inherited from class org.ametys.cms.transformation.htmledition.AbstractHTMLEditionHandler
characters, comment, contextualize, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, setLexicalHandler, skippedEntity, startCDATA, startDTD, startEntity, startPrefixMappingMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
_dataContext
the context of the data being edited
-
-
Constructor Details
-
DocbookLocalMediaObjectEditionHandler
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractHTMLEditionHandler- Throws:
ServiceException
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classAbstractHTMLEditionHandler- Throws:
SAXException
-
startElement
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classAbstractHTMLEditionHandler- Throws:
SAXException
-
getRichTextByUUIDURL
Retrieves the URL to retrieve a rich text attachment by its UUID- Parameters:
uuid- the UUID of the rich text's attachment- Returns:
- the URL to retrieve a rich text attachment by its UUID
-