Package org.ametys.cms.content
Class SAXContentHelper
- java.lang.Object
-
- org.ametys.cms.content.SAXContentHelper
-
- All Implemented Interfaces:
Component,Serviceable,ThreadSafe
public class SAXContentHelper extends Object implements Component, ThreadSafe, Serviceable
Component helper for saxing content's properties
-
-
Field Summary
Fields Modifier and Type Field Description private ContentTypeExtensionPoint_contentTypeExtensionPointprivate I18nUtils_i18nUtilsprivate LanguagesManager_languagesManagerprivate UserHelper_userHelperprivate WorkflowProvider_workflowProviderstatic StringROLEThe avalon ROLE
-
Constructor Summary
Constructors Constructor Description SAXContentHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsaxComments(ContentHandler contentHandler, Content content)SAX the content's commentsvoidsaxContentCurrentState(ContentHandler contentHandler, Content content)SAX workflow current step of aContentvoidsaxContentLanguage(ContentHandler contentHandler, Content content)SAX the content languagevoidsaxContentTypes(ContentHandler contentHandler, Content content)SAX the content's content typesvoidsaxContentTypesAndMixins(ContentHandler contentHandler, Content content)SAX the content's mixins and content typesvoidsaxContributor(ContentHandler contentHandler, Content content)SAX the contributorvoidsaxCreationDate(ContentHandler contentHandler, Content content)SAX the date of creationvoidsaxCreator(ContentHandler contentHandler, Content content)SAX the creatorvoidsaxLastModified(ContentHandler contentHandler, Content content)SAX the last modified datevoidsaxMixinTypes(ContentHandler contentHandler, Content content)SAX the content's mixinsvoidservice(ServiceManager smanager)
-
-
-
Field Detail
-
_userHelper
private UserHelper _userHelper
-
_workflowProvider
private WorkflowProvider _workflowProvider
-
_languagesManager
private LanguagesManager _languagesManager
-
_contentTypeExtensionPoint
private ContentTypeExtensionPoint _contentTypeExtensionPoint
-
_i18nUtils
private I18nUtils _i18nUtils
-
-
Constructor Detail
-
SAXContentHelper
public SAXContentHelper()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
saxContentTypes
public void saxContentTypes(ContentHandler contentHandler, Content content) throws SAXException
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
public void saxMixinTypes(ContentHandler contentHandler, Content content) throws SAXException
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
public void saxCreator(ContentHandler contentHandler, Content content) throws SAXException
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
public void saxContributor(ContentHandler contentHandler, Content content) throws SAXException
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
public void saxLastModified(ContentHandler contentHandler, Content content) throws SAXException
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
public void saxCreationDate(ContentHandler contentHandler, Content content) throws SAXException
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
public void saxComments(ContentHandler contentHandler, Content content) throws SAXException
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
public void saxContentLanguage(ContentHandler contentHandler, Content content) throws SAXException
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, 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 SAXingRepositoryException- if an error occurs while retrieving current step
-
-