use of org.olat.modules.vitero.model.ViteroUser in project openolat by klemens.
the class ViteroManager method convert.
private final ViteroUser convert(Usertype userType) {
ViteroUser vu = new ViteroUser();
vu.setUserId(userType.getId());
vu.setFirstName(userType.getFirstname());
vu.setLastName(userType.getSurname());
vu.setEmail(userType.getEmail());
return vu;
}
use of org.olat.modules.vitero.model.ViteroUser in project openolat by klemens.
the class ViteroAdminBookingMembersController method event.
@Override
protected void event(UserRequest ureq, Controller source, Event event) {
if (source == tableCtr) {
if (event instanceof TableEvent) {
TableEvent e = (TableEvent) event;
int row = e.getRowId();
ViteroUser identity = (ViteroUser) tableCtr.getTableDataModel().getObject(row);
if ("signout".equals(e.getActionId())) {
signOut(Collections.singletonList(identity));
}
} else if (event instanceof TableMultiSelectEvent) {
TableMultiSelectEvent e = (TableMultiSelectEvent) event;
List<ViteroUser> identities = new ArrayList<ViteroUser>();
for (int i = e.getSelection().nextSetBit(0); i >= 0; i = e.getSelection().nextSetBit(i + 1)) {
ViteroUser identity = (ViteroUser) tableCtr.getTableDataModel().getObject(i);
identities.add(identity);
}
if ("signout".equals(e.getAction())) {
signOut(identities);
}
}
}
super.event(ureq, source, event);
}
use of org.olat.modules.vitero.model.ViteroUser in project OpenOLAT by OpenOLAT.
the class ViteroManager method convert.
private final ViteroUser convert(Usertype userType) {
ViteroUser vu = new ViteroUser();
vu.setUserId(userType.getId());
vu.setFirstName(userType.getFirstname());
vu.setLastName(userType.getSurname());
vu.setEmail(userType.getEmail());
return vu;
}
use of org.olat.modules.vitero.model.ViteroUser in project OpenOLAT by OpenOLAT.
the class ViteroAdminBookingMembersController method event.
@Override
protected void event(UserRequest ureq, Controller source, Event event) {
if (source == tableCtr) {
if (event instanceof TableEvent) {
TableEvent e = (TableEvent) event;
int row = e.getRowId();
ViteroUser identity = (ViteroUser) tableCtr.getTableDataModel().getObject(row);
if ("signout".equals(e.getActionId())) {
signOut(Collections.singletonList(identity));
}
} else if (event instanceof TableMultiSelectEvent) {
TableMultiSelectEvent e = (TableMultiSelectEvent) event;
List<ViteroUser> identities = new ArrayList<ViteroUser>();
for (int i = e.getSelection().nextSetBit(0); i >= 0; i = e.getSelection().nextSetBit(i + 1)) {
ViteroUser identity = (ViteroUser) tableCtr.getTableDataModel().getObject(i);
identities.add(identity);
}
if ("signout".equals(e.getAction())) {
signOut(identities);
}
}
}
super.event(ureq, source, event);
}
Aggregations