return pkPropertyIds;
}
private UserRequest getRequest(Map<String, Object> properties) {
if (properties == null) {
return new UserRequest(null);
}
UserRequest request = new UserRequest ((String) properties.get(USER_USERNAME_PROPERTY_ID));
request.setPassword((String) properties.get(USER_PASSWORD_PROPERTY_ID));
request.setOldPassword((String) properties.get(USER_OLD_PASSWORD_PROPERTY_ID));
// TODO - support array/sets directly out of the request
if (null != properties.get(USER_ROLES_PROPERTY_ID)) {
HashSet<String> roles = new HashSet<String>();
Collections.addAll(roles, ((String) properties.get(USER_ROLES_PROPERTY_ID)).split(","));
request.setRoles(roles);
}
return request;
}