fr.paris.lutece.plugins.crm.service.user
Class CRMUserAttributesService

java.lang.Object
  extended by fr.paris.lutece.plugins.crm.service.user.CRMUserAttributesService
All Implemented Interfaces:
fr.paris.lutece.portal.service.security.UserAttributesService

public final class CRMUserAttributesService
extends java.lang.Object
implements fr.paris.lutece.portal.service.security.UserAttributesService

CRMUserAttributesService


Method Summary
 void create(int nIdCRMUser, java.lang.String strUserAttributeKey, java.lang.String strUserAttributeValue)
          Create a new user attribute
 java.lang.String getAttribute(java.lang.String strUserId, java.lang.String strAttribute)
          
 java.util.Map<java.lang.String,java.lang.String> getAttributes(int nIdCRMUser)
          Get the user attributes from a given id crm user
 java.util.Map<java.lang.String,java.lang.String> getAttributes(java.lang.String strUserId)
          
static CRMUserAttributesService getService()
          Get the instance of CRMUserAttributesService
 java.util.List<java.lang.String> getUserAttributeKeys()
          Get the list of user attribute keys defined in crm.properties
 void remove(int nIdCRMUser)
          Remove the user attributes of the crm user
 void setCRMUserService(CRMUserService crmUserService)
          Set the CRMUserService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getService

public static CRMUserAttributesService getService()
Get the instance of CRMUserAttributesService

Returns:
the instance of CRMUserAttributesService

setCRMUserService

public void setCRMUserService(CRMUserService crmUserService)
Set the CRMUserService

Parameters:
crmUserService - the CRMUserService

getAttribute

public java.lang.String getAttribute(java.lang.String strUserId,
                                     java.lang.String strAttribute)

Specified by:
getAttribute in interface fr.paris.lutece.portal.service.security.UserAttributesService

getAttributes

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

Specified by:
getAttributes in interface fr.paris.lutece.portal.service.security.UserAttributesService

getAttributes

public java.util.Map<java.lang.String,java.lang.String> getAttributes(int nIdCRMUser)
Get the user attributes from a given id crm user

Parameters:
nIdCRMUser - the id crm user
Returns:
a map of user attribute key, user attribute value

remove

public void remove(int nIdCRMUser)
Remove the user attributes of the crm user

Parameters:
nIdCRMUser - the id crm user

create

public void create(int nIdCRMUser,
                   java.lang.String strUserAttributeKey,
                   java.lang.String strUserAttributeValue)
Create a new user attribute

Parameters:
nIdCRMUser - the id crm user
strUserAttributeKey - the user attribute key
strUserAttributeValue - the user attribute value

getUserAttributeKeys

public java.util.List<java.lang.String> getUserAttributeKeys()
Get the list of user attribute keys defined in crm.properties

Returns:
a list of user attribute keys


Copyright © 2011 Mairie de Paris. All Rights Reserved.