fr.paris.lutece.plugins.crm.business.user
Class CRMUserAttributeHome

java.lang.Object
  extended by fr.paris.lutece.plugins.crm.business.user.CRMUserAttributeHome

public final class CRMUserAttributeHome
extends Object

CRMUserAttributeHome


Method Summary
static int countAttributeValueInstances(String strUserAttributeValue, String strUserAttributeKey)
          Count the number of instance of a given value of an attribute
static void create(int nIdCRMUser, String strUserAttributeKey, String strUserAttributeValue)
          Insert a new record in the table.
static Map<String,String> findByPrimaryKey(int nIdCRMUser)
          Load the data from the table
static void remove(int nIdCRMUser)
          Delete a record from the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static void create(int nIdCRMUser,
                          String strUserAttributeKey,
                          String strUserAttributeValue)
Insert a new record in the table.

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

remove

public static void remove(int nIdCRMUser)
Delete a record from the table

Parameters:
nIdCRMUser - int identifier of the CRMUser to delete

findByPrimaryKey

public static Map<String,String> findByPrimaryKey(int nIdCRMUser)
Load the data from the table

Parameters:
nIdCRMUser - The identifier of the CRMUser
Returns:
The user attributes

countAttributeValueInstances

public static int countAttributeValueInstances(String strUserAttributeValue,
                                               String strUserAttributeKey)
Count the number of instance of a given value of an attribute

Parameters:
strUserAttributeValue - The value of the attribute
strUserAttributeKey - The key of the attribute
Returns:
The number of instances of attributes with the given value for the given attribute key.


Copyright © 2013 Mairie de Paris. All Rights Reserved.