Class CRMUserAttributeDAO

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