Package org.ametys.cms.content
Class SAXContentHelper
java.lang.Object
org.ametys.cms.content.SAXContentHelper
- All Implemented Interfaces:
Component
,Serviceable
,ThreadSafe
Component helper for saxing content's properties
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
saxComments
(ContentHandler contentHandler, Content content) SAX the content's commentsvoid
saxContentCurrentState
(ContentHandler contentHandler, Content content) SAX workflow current step of aContent
void
saxContentLanguage
(ContentHandler contentHandler, Content content) SAX the content languagevoid
saxContentTypes
(ContentHandler contentHandler, Content content) SAX the content's content typesvoid
saxContentTypesAndMixins
(ContentHandler contentHandler, Content content) SAX the content's mixins and content typesvoid
saxContributor
(ContentHandler contentHandler, Content content) SAX the contributorvoid
saxCreationDate
(ContentHandler contentHandler, Content content) SAX the date of creationvoid
saxCreator
(ContentHandler contentHandler, Content content) SAX the creatorvoid
saxLastModified
(ContentHandler contentHandler, Content content) SAX the last modified datevoid
saxMixinTypes
(ContentHandler contentHandler, Content content) SAX the content's mixinsvoid
service
(ServiceManager smanager)
-
Field Details
-
ROLE
The avalon ROLE
-
-
Constructor Details
-
SAXContentHelper
public SAXContentHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
saxContentTypes
SAX the content's content types- Parameters:
contentHandler
- The content handler where to saxcontent
- the content The content concerned- Throws:
SAXException
- if an error occurred while saxing
-
saxMixinTypes
SAX the content's mixins- Parameters:
contentHandler
- The content handler where to saxcontent
- the content The content concerned- Throws:
SAXException
- if an error occurred while saxing
-
saxContentTypesAndMixins
public void saxContentTypesAndMixins(ContentHandler contentHandler, Content content) throws SAXException SAX the content's mixins and content types- Parameters:
contentHandler
- The content handler where to saxcontent
- the content The content concerned- Throws:
SAXException
- if an error occurred while saxing
-
saxCreator
SAX the creator- Parameters:
contentHandler
- The content handler where to saxcontent
- the content The content concerned- Throws:
SAXException
- if an error occurred while saxing
-
saxContributor
SAX the contributor- Parameters:
contentHandler
- The content handler where to saxcontent
- the content The content concerned- Throws:
SAXException
- if an error occurred while saxing
-
saxLastModified
SAX the last modified date- Parameters:
contentHandler
- The content handler where to saxcontent
- the content The content concerned- Throws:
SAXException
- if an error occurred while saxing
-
saxCreationDate
SAX the date of creation- Parameters:
contentHandler
- The content handler where to saxcontent
- the content The content concerned- Throws:
SAXException
- if an error occurred while saxing
-
saxComments
SAX the content's comments- Parameters:
contentHandler
- The content handler where to saxcontent
- the content The content concerned- Throws:
SAXException
- if an error occurred while saxing
-
saxContentLanguage
SAX the content language- Parameters:
contentHandler
- The content handler where to saxcontent
- the content The content concerned- Throws:
SAXException
- if an error occurred while saxing
-
saxContentCurrentState
public void saxContentCurrentState(ContentHandler contentHandler, Content content) throws SAXException, javax.jcr.RepositoryException SAX workflow current step of aContent
- Parameters:
contentHandler
- The content handler where to saxcontent
- the content The content concerned- Throws:
SAXException
- if an error occurs while SAXingjavax.jcr.RepositoryException
- if an error occurs while retrieving current step
-