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_dataContextthe context of the data being editedprotected AmetysObjectResolver_resolverAmetys 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 StringgetRichTextByUUIDURL(String uuid)Retrieves the URL to retrieve a rich text attachment by its UUIDvoidservice(ServiceManager manager)voidstartDocument()voidstartElement(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:
 servicein interfaceServiceable- Overrides:
 servicein classAbstractHTMLEditionHandler- Throws:
 ServiceException
 
- 
startDocument
public void startDocument() throws SAXException
- Specified by:
 startDocumentin interfaceContentHandler- Overrides:
 startDocumentin classAbstractHTMLEditionHandler- Throws:
 SAXException
 
- 
startElement
public void startElement(String uri, String loc, String raw, Attributes attrs) throws SAXException
- Specified by:
 startElementin interfaceContentHandler- Overrides:
 startElementin 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
 
 
 - 
 
 -