use of io.hops.hopsworks.persistence.entity.remote.user.RemoteUserType in project hopsworks by logicalclocks.
the class Register method init.
@PostConstruct
public void init() {
this.roles = new ArrayList<>();
this.availableStatus = new ArrayList<>();
this.accountTypes = new ArrayList<>();
this.remoteUserTypes = new ArrayList<>();
for (RemoteUserType rt : RemoteUserType.values()) {
if (RemoteUserType.OAUTH2.equals(rt)) {
// OAuth2 not supported
continue;
}
this.remoteUserTypes.add(new SelectItem(rt.getValue(), rt.toString()));
}
for (UserAccountType t : UserAccountType.values()) {
this.accountTypes.add(new SelectItem(t.getValue(), t.toString()));
}
for (UserAccountStatus p : UserAccountStatus.values()) {
this.availableStatus.add(new SelectItem(p.getValue(), p.getUserStatus()));
}
for (BbcGroup value : bbcGroupFacade.findAll()) {
this.roles.add(value.getGroupName());
}
resetDefault();
}
Aggregations