As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
if(serviceRegistry.getAuthorityService().getAuthoritiesForUser(theUserName) != null){ Set<String> theSet = serviceRegistry.getAuthorityService().getAuthoritiesForUser(theUserName); if ((theSet.size() < 1) || (theSet.size() > 2)){ this.getLogger().logTechnicalError(EnumTraitementMetierLevel.ERREUR.getCode(), "L'utilisateur est dans plusieurs groupes : " + theSet.size()); return ""; }else{ String[] myElt = new String[Constantes.NB_MAX_GROUP_PER_USER]; int i = 0; String theGroup = ""; Iterator<String> it = theSet.iterator(); while (it.hasNext()) { myElt[i] = (String) it.next(); i++; } for (int j=0;j<myElt.length;j++){ if (!Constantes.THE_GROUP_EVERYONE.equals(myElt[j])){ theGroup = myElt[j].substring(Constantes.INT_COUNT_WORD_GROUP); } } return theGroup; } }
<authentication runas="admin">user</authentication>