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
public class DocbookLocalMediaObjectEditionHandler extends AbstractHTMLEditionHandler
Handler to enhance the rich text attachments. Add the content id and the data path to the local attachment's attribute
-
-
Field Summary
Fields Modifier and Type Field Description protected DataContext
_dataContext
the context of the data being editedprotected AmetysObjectResolver
_resolver
Ametys object resolver-
Fields inherited from class org.ametys.cms.transformation.htmledition.AbstractHTMLEditionHandler
_contentHandler, _context, _lexicalHandler, _manager
-
-
Constructor Summary
Constructors Constructor Description DocbookLocalMediaObjectEditionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getRichTextByUUIDURL(String uuid)
Retrieves the URL to retrieve a rich text attachment by its UUIDvoid
service(ServiceManager manager)
void
startDocument()
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
-
-
-
-
Field Detail
-
_resolver
protected AmetysObjectResolver _resolver
Ametys object resolver
-
_dataContext
protected DataContext _dataContext
the context of the data being edited
-
-
Constructor Detail
-
DocbookLocalMediaObjectEditionHandler
public DocbookLocalMediaObjectEditionHandler()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractHTMLEditionHandler
- Throws:
ServiceException
-
startDocument
public void startDocument() throws SAXException
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classAbstractHTMLEditionHandler
- Throws:
SAXException
-
startElement
public void startElement(String uri, String loc, String raw, Attributes attrs) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classAbstractHTMLEditionHandler
- Throws:
SAXException
-
getRichTextByUUIDURL
protected String getRichTextByUUIDURL(String uuid)
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
-
-