public class ProjectMembersGenerator extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
protected ContentTypeExtensionPoint |
_cTypeEP
The content type extension point
|
protected GroupManager |
_groupManager
The group manager
|
protected MetadataManager |
_metadataManager
The metadata manager
|
protected ProjectManager |
_projectManager
The project manager component
|
protected ProjectMemberManager |
_projectMemberManager
The project member manager
|
protected RightManager |
_rightManager
The right manager
|
protected UserSignUpConfiguration |
_signupConfig
The sign up configuration
|
protected UserDirectoryHelper |
_userDirectoryHelper
The user directory helper
|
protected UserHelper |
_userHelper
The user helper
|
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
ProjectMembersGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
_saxMember(ProjectMemberManager.ProjectMember member,
UserIdentity[] managers,
String lang)
SAX a member
|
protected void |
_saxUser(User user,
String lang)
Sax user
|
void |
generate() |
void |
service(ServiceManager serviceManager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected ProjectManager _projectManager
protected ProjectMemberManager _projectMemberManager
protected UserHelper _userHelper
protected UserDirectoryHelper _userDirectoryHelper
protected MetadataManager _metadataManager
protected ContentTypeExtensionPoint _cTypeEP
protected GroupManager _groupManager
protected UserSignUpConfiguration _signupConfig
protected RightManager _rightManager
public ProjectMembersGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
protected void _saxMember(ProjectMemberManager.ProjectMember member, UserIdentity[] managers, String lang) throws SAXException, AmetysRepositoryException, IOException
member
- the membermanagers
- the user identities of project's managerlang
- the current languageSAXException
- if an error occurred while saxingAmetysRepositoryException
- if an error occurredIOException
- if failed to sax user contentprotected void _saxUser(User user, String lang) throws SAXException, AmetysRepositoryException, IOException
user
- the userlang
- the langSAXException
- if an error occurs saxing dataAmetysRepositoryException
- if an repository error occursIOException
- if an IO exception error occurs