Class WikiUserAttributes

java.lang.Object
fr.paris.lutece.plugins.wiki.service.user.WikiUserAttributes

public final class WikiUserAttributes extends Object
Reads the directory attributes a signed-in user carries, from the information the authentication put in their session. Nothing is asked to the directory: an access check must stay cheap. The authentication stores those attributes under its own keys, so an attribute is looked up by the last segment of the key, which the mapping usually names after the directory attribute itself. A property declares the exceptions:
 wiki.userAttribute.alias.mdpDirOperationnelle=user.business-info.organizationUnit
 
  • Method Summary

    Modifier and Type
    Method
    Description
    static Map<String,String>
    getValues(fr.paris.lutece.portal.service.security.LuteceUser user)
    Returns the values a user carries for every searchable attribute, ready to be matched against the rules granting a permission to a whole population.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getValues

      public static Map<String,String> getValues(fr.paris.lutece.portal.service.security.LuteceUser user)
      Returns the values a user carries for every searchable attribute, ready to be matched against the rules granting a permission to a whole population. Attributes the session does not carry are read from the directory once and remembered for a while: an authentication rarely maps every attribute, and the levels it leaves out are exactly the ones holding the finest affectations.
      Parameters:
      user - the signed-in user
      Returns:
      the values keyed by attribute name, attributes the user does not carry left out