fr.paris.lutece.plugins.directory.service.security
Class DirectoryUserAttributesManager

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.service.security.DirectoryUserAttributesManager

public final class DirectoryUserAttributesManager
extends java.lang.Object

DirectoryUserAttributesManager


Method Summary
 java.lang.String getAttribute(java.lang.String strUserId, java.lang.String strAttribute)
          Get the attribute
 java.util.Map<java.lang.String,java.lang.String> getAttributes(java.lang.String strUserId)
          Get the attributes
static DirectoryUserAttributesManager getManager()
          Get the instance of the service
 boolean isEnabled()
          Check if the UserAttributesService is enabled
 void setUserAttributesService(fr.paris.lutece.portal.service.security.UserAttributesService userAttributesService)
          Set the UserAttributesService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getManager

public static DirectoryUserAttributesManager getManager()
Get the instance of the service

Returns:
the service

isEnabled

public boolean isEnabled()
Check if the UserAttributesService is enabled

Returns:
true if the service is enabled, false otherwise

setUserAttributesService

public void setUserAttributesService(fr.paris.lutece.portal.service.security.UserAttributesService userAttributesService)
Set the UserAttributesService

Parameters:
userAttributesService - the UserAttributesService

getAttribute

public java.lang.String getAttribute(java.lang.String strUserId,
                                     java.lang.String strAttribute)
Get the attribute

Parameters:
strUserId - the id user guid
strAttribute - the attribute
Returns:
the attribute value

getAttributes

public java.util.Map<java.lang.String,java.lang.String> getAttributes(java.lang.String strUserId)
Get the attributes

Parameters:
strUserId - the user id
Returns:
a map of attribute key - attribute value


Copyright © 2011 Mairie de Paris. All Rights Reserved.