use of org.olat.basesecurity.events.SingleIdentityChosenEvent in project openolat by klemens.
the class BGUserManagementController method extractIdentities.
private List<Identity> extractIdentities(Event event) {
if (event instanceof SingleIdentityChosenEvent) {
SingleIdentityChosenEvent chosenEvent = (SingleIdentityChosenEvent) event;
Identity identity = chosenEvent.getChosenIdentity();
return Collections.singletonList(identity);
}
if (event instanceof MultiIdentityChosenEvent) {
MultiIdentityChosenEvent chosenEvent = (MultiIdentityChosenEvent) event;
List<Identity> identities = chosenEvent.getChosenIdentities();
return identities;
}
return Collections.emptyList();
}
Aggregations