fr.paris.lutece.plugins.crm.business.user
Class CRMUserAttributeDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.crm.business.user.CRMUserAttributeDAO
All Implemented Interfaces:
ICRMUserAttributeDAO

public class CRMUserAttributeDAO
extends Object
implements ICRMUserAttributeDAO

CRMUserAttributeDAO


Constructor Summary
CRMUserAttributeDAO()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRMUserAttributeDAO

public CRMUserAttributeDAO()
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:
insert in interface ICRMUserAttributeDAO
Parameters:
nIdCRMUser - the id crm user
strUserAttributeKey - user attribute key
strUserAttributeValue - user attribute value
plugin - the Plugin

delete

public void delete(int nIdCRMUser,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Specified by:
delete in interface ICRMUserAttributeDAO
Parameters:
nIdCRMUser - int identifier of the CRMUser to delete
plugin - 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:
load in interface ICRMUserAttributeDAO
Parameters:
nIdCRMUser - The identifier of the CRMUser
plugin - 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:
countAttributeValueInstances in interface ICRMUserAttributeDAO
Parameters:
strUserAttributeValue - The value of the attribute
strUserAttributeKey - The key of the attribute
plugin - The plugin
Returns:
The number of instances of attributes with the given value for the given attribute key.


Copyright © 2013 Mairie de Paris. All Rights Reserved.