Class CRMUserAttributeDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.crm.business.user.CRMUserAttributeDAO
-
- All Implemented Interfaces:
ICRMUserAttributeDAO
public class CRMUserAttributeDAO extends Object implements ICRMUserAttributeDAO
CRMUserAttributeDAO
-
-
Constructor Summary
Constructors Constructor Description CRMUserAttributeDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcountAttributeValueInstances(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.Map<String,String>load(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the table
-
-
-
Method Detail
-
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
public Map<String,String> load(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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.
-
-