Class CRMUserAttributeHome

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

public final class CRMUserAttributeHome extends Object
CRMUserAttributeHome
  • Method Details

    • 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.