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
Modifier and TypeFieldDescriptionprotected DataContext
the context of the data being editedprotected AmetysObjectResolver
Ametys object resolverFields inherited from class org.ametys.cms.transformation.htmledition.AbstractHTMLEditionHandler
_contentHandler, _context, _lexicalHandler, _manager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getRichTextByUUIDURL
(String uuid) Retrieves the URL to retrieve a rich text attachment by its UUIDvoid
service
(ServiceManager manager) void
void
startElement
(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, startPrefixMapping
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
_resolver
Ametys object resolver -
_dataContext
the context of the data being edited
-
-
Constructor Details
-
DocbookLocalMediaObjectEditionHandler
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractHTMLEditionHandler
- Throws:
ServiceException
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classAbstractHTMLEditionHandler
- Throws:
SAXException
-
startElement
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in 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
-