public class OrgUnitGenerator extends ContentGenerator
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_resolver
The ametys object resolver
|
protected SourceResolver |
_srcResolver
The source resolver
|
_contentHelper, _contentTypeExtensionPoint, _cTypesHelper, _DC_DATE_FORMAT, _languageManager, _metadataManager, _workflowProvider, _worklflowHelper
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
OrgUnitGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
_saxChildOrgUnits(Content content)
Sax child orgUnits from the orgUnit content
|
protected void |
_saxOtherData(Content content)
SAX any other data needed by the view.
|
protected void |
_saxUsers(Content content)
Sax users from the orgUnit content
|
protected void |
saxContent(Content content,
String metadataSetName)
SAX the HTML content of a
Content |
protected void |
saxContent(Content content,
String metadataSetName,
String format)
SAX a
Content to given format |
protected void |
saxOrgUnit(String orgUnitId,
String metadataSetName)
SAX a orgUnit content
|
protected void |
saxUser(String userId,
String role,
String metadataSetName)
SAX a user content
|
void |
service(ServiceManager serviceManager) |
getDefaultLocale
_addAttributeIfNotNull, _generateContent, _getCurrentStep, _getMetadataSet, _saxContent, _saxContentComments, _saxDublinCoreMetadata, _saxIfNotNull, _saxIfNotNull, _saxIfNotNull, _saxLanguage, _saxMetadata, _saxMetadataComments, _saxWorkflowStep, generate
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected AmetysObjectResolver _resolver
protected SourceResolver _srcResolver
public OrgUnitGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ContentGenerator
ServiceException
protected void _saxOtherData(Content content) throws SAXException, ProcessingException
ContentGenerator
Default implementation does nothing.
_saxOtherData
in class ContentGenerator
content
- the content.SAXException
- if an error occurs while SAXing.ProcessingException
- if an error occurs.protected void _saxChildOrgUnits(Content content) throws SAXException
content
- the contentSAXException
- if an error occurredprotected void saxOrgUnit(String orgUnitId, String metadataSetName) throws SAXException
orgUnitId
- the orgUnit id.metadataSetName
- the metadata set nameSAXException
- if an error occursprotected void _saxUsers(Content content) throws SAXException
content
- the contentSAXException
- if an error occurredprotected void saxUser(String userId, String role, String metadataSetName) throws SAXException
userId
- the user id.role
- the user rolemetadataSetName
- the metadata set nameSAXException
- if an error occursprotected void saxContent(Content content, String metadataSetName) throws SAXException, IOException
Content
content
- the contentmetadataSetName
- the metadata set nameSAXException
- If an error occurred saxing the contentIOException
- If an error occurred resolving the contentprotected void saxContent(Content content, String metadataSetName, String format) throws SAXException, IOException
Content
to given formatcontent
- the contentmetadataSetName
- the metadata set nameformat
- the output formatSAXException
- If an error occurred saxing the contentIOException
- If an error occurred resolving the content