public class CRMUserAttributeDAO extends Object implements ICRMUserAttributeDAO
Constructor and Description |
---|
CRMUserAttributeDAO() |
Modifier and Type | Method and Description |
---|---|
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
|
void |
delete(int nIdCRMUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(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
|
public void insert(int nIdCRMUser, String strUserAttributeKey, String strUserAttributeValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface ICRMUserAttributeDAO
nIdCRMUser
- the id crm userstrUserAttributeKey
- user attribute keystrUserAttributeValue
- user attribute valueplugin
- the Pluginpublic void delete(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface ICRMUserAttributeDAO
nIdCRMUser
- int identifier of the CRMUser to deleteplugin
- the Pluginpublic Map<String,String> load(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface ICRMUserAttributeDAO
nIdCRMUser
- The identifier of the CRMUserplugin
- the Pluginpublic int countAttributeValueInstances(String strUserAttributeValue, String strUserAttributeKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
countAttributeValueInstances
in interface ICRMUserAttributeDAO
strUserAttributeValue
- The value of the attributestrUserAttributeKey
- The key of the attributeplugin
- The pluginCopyright © 2019 City of Paris. All rights reserved.