return userNatures;
}
+ public void updateUserNatures(List<UserNature> userNaturesData) {
+ UserNature.updateUserNaturesWithCheck(userNatures, userNaturesData);
+ }
+
public List<String> getRoles() {
return roles;
}
}
public static ArgeoUser asArgeoUser(Authentication authentication) {
+ if (authentication == null)
+ return null;
+
if (authentication.getPrincipal() instanceof ArgeoUser) {
return new SimpleArgeoUser((ArgeoUser) authentication
.getPrincipal());