RoleSoap[] roles = roleService.getUserRoles(Integer.parseInt(userId));
String[] roleNames = new String[roles.length];
if (roles != null) {
int i = 0;
while (i<roles.length) {
RoleSoap role=roles[i];
logger.debug("ruolo.getName()="+ role.getName());
logger.debug("ruolo.getDescription()="+ role.getDescription());
logger.debug("ruolo.getRoleId()=" + role.getRoleId());
roleNames[i++] = role.getName();
}
}
else {
logger.warn("THE LIST OF ROLES IS EMPTY, CHECK THE PROFILING CONFIGURATION...");
}