// Project Member Management
projectMemberController = new GroupController(ureq, getWindowControl(), true, false, true, project.getProjectParticipantGroup());
listenTo(projectMemberController);
myContent.put("projectMemberController", projectMemberController.getInitialComponent());
// add mail templates used when adding and removing users
MailTemplate partAddUserMailTempl = ProjectBrokerManagerFactory.getProjectBrokerEmailer().createAddParticipantMailTemplate(project, ureq.getIdentity(), this.getTranslator());
projectMemberController.setAddUserMailTempl(partAddUserMailTempl);
MailTemplate partRemoveUserMailTempl = ProjectBrokerManagerFactory.getProjectBrokerEmailer().createRemoveParticipantMailTemplate(project, ureq.getIdentity(), this.getTranslator());
projectMemberController.setRemoveUserMailTempl(partRemoveUserMailTempl);
// Project Candidates Management
if (projectBrokerModuleConfiguration.isAcceptSelectionManually()) {
projectCandidatesController = new WaitingGroupController(ureq, getWindowControl(), true, false, true, project.getCandidateGroup());
listenTo(projectCandidatesController);
myContent.put("projectCandidatesController", projectCandidatesController.getInitialComponent());
// add mail templates used when adding and removing users
MailTemplate waitAddUserMailTempl = ProjectBrokerManagerFactory.getProjectBrokerEmailer().createAddCandidateMailTemplate(project, ureq.getIdentity(), this.getTranslator());
projectCandidatesController.setAddUserMailTempl(waitAddUserMailTempl);
MailTemplate waitRemoveUserMailTempl = ProjectBrokerManagerFactory.getProjectBrokerEmailer().createRemoveAsCandiadateMailTemplate(project, ureq.getIdentity(), this.getTranslator());
projectCandidatesController.setRemoveUserMailTempl(waitRemoveUserMailTempl);
MailTemplate waitTransferUserMailTempl = ProjectBrokerManagerFactory.getProjectBrokerEmailer().createAcceptCandiadateMailTemplate(project, ureq.getIdentity(), this.getTranslator());
projectCandidatesController.setTransferUserMailTempl(waitTransferUserMailTempl);
}
putInitialPanel(myContent);
}