Class CRMUserAttributeDAO
java.lang.Object
fr.paris.lutece.plugins.crm.business.user.CRMUserAttributeDAO
- All Implemented Interfaces:
ICRMUserAttributeDAO
CRMUserAttributeDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcountAttributeValueInstances(String strUserAttributeValue, String strUserAttributeKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count the number of instance of a given value of an attributevoiddelete(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidinsert(int nIdCRMUser, String strUserAttributeKey, String strUserAttributeValue, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the table
-
Constructor Details
-
CRMUserAttributeDAO
public CRMUserAttributeDAO()
-
-
Method Details
-
insert
public void insert(int nIdCRMUser, String strUserAttributeKey, String strUserAttributeValue, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.- Specified by:
insertin interfaceICRMUserAttributeDAO- Parameters:
nIdCRMUser- the id crm userstrUserAttributeKey- user attribute keystrUserAttributeValue- user attribute valueplugin- the Plugin
-
delete
public void delete(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceICRMUserAttributeDAO- Parameters:
nIdCRMUser- int identifier of the CRMUser to deleteplugin- the Plugin
-
load
Load the data from the table- Specified by:
loadin interfaceICRMUserAttributeDAO- Parameters:
nIdCRMUser- The identifier of the CRMUserplugin- the Plugin- Returns:
- The instance of the CRMUser
-
countAttributeValueInstances
public int countAttributeValueInstances(String strUserAttributeValue, String strUserAttributeKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count the number of instance of a given value of an attribute- Specified by:
countAttributeValueInstancesin interfaceICRMUserAttributeDAO- Parameters:
strUserAttributeValue- The value of the attributestrUserAttributeKey- The key of the attributeplugin- The plugin- Returns:
- The number of instances of attributes with the given value for the given attribute key.
-