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
public class ProjectMembersGenerator extends ServiceableGenerator
Generator used sax project member
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentTypeExtensionPoint
_cTypeEP
The content type extension pointprotected GroupManager
_groupManager
The group managerprotected ProjectManager
_projectManager
The project manager componentprotected ProjectMemberManager
_projectMemberManager
The project member managerprotected RightManager
_rightManager
The right managerprotected UserSignUpConfiguration
_signupConfig
The sign up configurationprotected UserDirectoryHelper
_userDirectoryHelper
The user directory helperprotected UserHelper
_userHelper
The user helper-
Fields 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
Constructors Constructor Description ProjectMembersGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
_saxUser(User user, String lang)
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 Detail
-
_projectManager
protected ProjectManager _projectManager
The project manager component
-
_projectMemberManager
protected ProjectMemberManager _projectMemberManager
The project member manager
-
_userHelper
protected UserHelper _userHelper
The user helper
-
_userDirectoryHelper
protected UserDirectoryHelper _userDirectoryHelper
The user directory helper
-
_cTypeEP
protected ContentTypeExtensionPoint _cTypeEP
The content type extension point
-
_groupManager
protected GroupManager _groupManager
The group manager
-
_signupConfig
protected UserSignUpConfiguration _signupConfig
The sign up configuration
-
_rightManager
protected RightManager _rightManager
The right manager
-
-
Constructor Detail
-
ProjectMembersGenerator
public ProjectMembersGenerator()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
generate
public void generate() throws IOException, SAXException, ProcessingException
-
_getMembersPageId
protected String _getMembersPageId(Project project)
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
-
-