Class CRMUserAttributeHome
java.lang.Object
fr.paris.lutece.plugins.crm.business.user.CRMUserAttributeHome
CRMUserAttributeHome
-
Method Summary
Modifier and TypeMethodDescriptionstatic intcountAttributeValueInstances(String strUserAttributeValue, String strUserAttributeKey) Count the number of instance of a given value of an attributestatic voidInsert a new record in the table.findByPrimaryKey(int nIdCRMUser) Load the data from the tablestatic voidremove(int nIdCRMUser) Delete a record from the table
-
Method Details
-
create
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
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.
-