use of org.olat.modules.vitero.manager.VmsNotAvailableException in project openolat by klemens.
the class ViteroUserToGroupController method signIn.
private void signIn(List<Identity> identities) {
try {
ResourceMembers members = ((UserToGroupDataModel) tableCtr.getTableDataModel()).getMembers();
for (Identity identity : identities) {
boolean upgrade = members.getCoaches().contains(identity) || members.getOwners().contains(identity);
GroupRole role = upgrade ? GroupRole.teamleader : null;
ViteroStatus status = viteroManager.addToRoom(booking, identity, role);
if (status.isOk()) {
showInfo("signin.ok");
} else {
showInfo("signin.nok");
break;
}
}
loadModel();
} catch (VmsNotAvailableException e) {
showError(VmsNotAvailableException.I18N_KEY);
}
}
Aggregations