fireEvent(urequest, Event.CHANGED_EVENT );
} else if (event instanceof IdentitiesRemoveEvent) {
ProjectBrokerManagerFactory.getProjectGroupManager().removeCandidates(((IdentitiesRemoveEvent)event).getRemovedIdentities(), project);
fireEvent(urequest, Event.CHANGED_EVENT );
} else if (event instanceof IdentitiesMoveEvent) {
IdentitiesMoveEvent identitiesMoveEvent = (IdentitiesMoveEvent) event;
ProjectBrokerManagerFactory.getProjectGroupManager().acceptCandidates(identitiesMoveEvent.getChosenIdentities(), project, urequest.getIdentity(),
projectBrokerModuleConfiguration.isAutoSignOut(), projectBrokerModuleConfiguration.isAcceptSelectionManually());
identitiesMoveEvent.setMovedIdentities(identitiesMoveEvent.getChosenIdentities());
identitiesMoveEvent.setNotMovedIdentities(new ArrayList());
// send mail for all of them
MailerWithTemplate mailer = MailerWithTemplate.getInstance();
MailTemplate mailTemplate = identitiesMoveEvent.getMailTemplate();
if (mailTemplate != null) {
List<Identity> ccIdentities = new ArrayList<Identity>();
if(mailTemplate.getCpfrom()) {
// add sender as CC
ccIdentities.add(urequest.getIdentity());
} else {
ccIdentities = null;
}
MailerResult mailerResult = mailer.sendMailAsSeparateMails(identitiesMoveEvent.getMovedIdentities(), ccIdentities, null, mailTemplate, null);
MailHelper.printErrorsAndWarnings(mailerResult, getWindowControl(), urequest.getLocale());
}
fireEvent(urequest, Event.CHANGED_EVENT );
// Participant and waiting-list were changed => reload both
projectMemberController.reloadData();