Interface ICRMUserAttributeDAO

All Known Implementing Classes:
CRMUserAttributeDAO

public interface ICRMUserAttributeDAO
ICRMUserAttributeDAO
  • Method Summary

    Modifier and Type
    Method
    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.
    load(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
  • Method Details

    • insert

      void insert(int nIdCRMUser, String strUserAttributeKey, String strUserAttributeValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Parameters:
      nIdCRMUser - the id crm user
      strUserAttributeKey - user attribute key
      strUserAttributeValue - user attribute value
      plugin - the Plugin
    • delete

      void delete(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Parameters:
      nIdCRMUser - int identifier of the CRMUser to delete
      plugin - the Plugin
    • load

      Map<String,String> load(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Parameters:
      nIdCRMUser - The identifier of the CRMUser
      plugin - the Plugin
      Returns:
      The instance of the CRMUser
    • countAttributeValueInstances

      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
      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.