UserProfileHandler userProfileHandler = service.getUserProfileHandler();
if (userProfileHandler==null) {
SpagoBITracer.warning(SpagoBIConstants.NAME_MODULE, SecurityProviderUtilities.class.getName(),
"getUserProfileAttributes", " UserProfileHandler null");
} else {
UserProfile exoUserProfile = null;
try {
exoUserProfile = userProfileHandler.findUserProfileByName(userUniqueIdentifier);
} catch (Exception e) {
SpagoBITracer.critical(SpagoBIConstants.NAME_MODULE, SecurityProviderUtilities.class.getName(),
"getUserProfileAttributes", " Error while recovering user profile by name '"
+ userUniqueIdentifier + "'", e);
return userAttributes;
}
if (exoUserProfile == null){
SpagoBITracer.critical(SpagoBIConstants.NAME_MODULE, SecurityProviderUtilities.class.getName(),
"getUserProfileAttributes", " exoUserProfile not found for user "
+ userUniqueIdentifier);
return userAttributes;
} else {
Map userInfoMap = exoUserProfile.getUserInfoMap();
Set infoKeys = userInfoMap.keySet();
Iterator infoKeyIter = infoKeys.iterator();
while(infoKeyIter.hasNext()) {
String labelcode = infoKeyIter.next().toString();
String value = userInfoMap.get(labelcode) != null ?