Class CRMUserAttributeHome
- java.lang.Object
-
- fr.paris.lutece.plugins.crm.business.user.CRMUserAttributeHome
-
public final class CRMUserAttributeHome extends Object
CRMUserAttributeHome
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcountAttributeValueInstances(String strUserAttributeValue, String strUserAttributeKey)Count the number of instance of a given value of an attributestatic voidcreate(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 tablestatic voidremove(int nIdCRMUser)Delete a record from the table
-
-
-
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 userstrUserAttributeKey- user attribute keystrUserAttributeValue- 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 attributestrUserAttributeKey- The key of the attribute- Returns:
- The number of instances of attributes with the given value for the given attribute key.
-
-