Class ProjectMembersGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.apache.cocoon.generation.ServiceableGenerator
org.ametys.plugins.workspaces.members.ProjectMembersGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
Generator used sax project member
-
Field Summary
Modifier and TypeFieldDescriptionprotected ContentTypeExtensionPoint
The content type extension pointprotected GroupManager
The group managerprotected ProjectManager
The project manager componentprotected ProjectMemberManager
The project member managerprotected RightManager
The right managerprotected UserSignUpConfiguration
The sign up configurationprotected UserDirectoryHelper
The user directory helperprotected UserHelper
The user helperFields inherited from class org.apache.cocoon.generation.ServiceableGenerator
manager
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
_getMembersPageId
(Project project) Get the id of member page if exists and current user has accessprotected void
_saxMember
(ProjectMemberManager.ProjectMember member, UserIdentity[] managers, String lang) SAX a memberprotected void
Sax uservoid
generate()
void
service
(ServiceManager serviceManager) Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
Field Details
-
_projectManager
The project manager component -
_projectMemberManager
The project member manager -
_userHelper
The user helper -
_userDirectoryHelper
The user directory helper -
_cTypeEP
The content type extension point -
_groupManager
The group manager -
_signupConfig
The sign up configuration -
_rightManager
The right manager
-
-
Constructor Details
-
ProjectMembersGenerator
public ProjectMembersGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
generate
-
_getMembersPageId
Get the id of member page if exists and current user has access- Parameters:
project
- The project- Returns:
- the id of member page. Can be null.
-
_saxMember
protected void _saxMember(ProjectMemberManager.ProjectMember member, UserIdentity[] managers, String lang) throws SAXException, AmetysRepositoryException, IOException SAX a member- Parameters:
member
- the membermanagers
- the user identities of project's managerlang
- the current language- Throws:
SAXException
- if an error occurred while saxingAmetysRepositoryException
- if an error occurredIOException
- if failed to sax user content
-
_saxUser
protected void _saxUser(User user, String lang) throws SAXException, AmetysRepositoryException, IOException Sax user- Parameters:
user
- the userlang
- the lang- Throws:
SAXException
- if an error occurs saxing dataAmetysRepositoryException
- if an repository error occursIOException
- if an IO exception error occurs
-