Class CRMUserDAO

    • Constructor Detail

      • CRMUserDAO

        public CRMUserDAO()
    • Method Detail

      • newPrimaryKey

        public int newPrimaryKey​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Generates a new primary key
        Specified by:
        newPrimaryKey in interface ICRMUserDAO
        Parameters:
        plugin - The Plugin
        Returns:
        The new primary key
      • insert

        public int insert​(CRMUser user,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Specified by:
        insert in interface ICRMUserDAO
        Parameters:
        user - instance of the CRMUser object to insert
        plugin - the Plugin
        Returns:
        the key of the newly created notification
      • load

        public CRMUser load​(int nIdCRMUser,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface ICRMUserDAO
        Parameters:
        nIdCRMUser - The identifier of the CRMUser
        plugin - the Plugin
        Returns:
        The instance of the CRMUser
      • loadByUserGuid

        public CRMUser loadByUserGuid​(String strUserGuid,
                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from a given user guid
        Specified by:
        loadByUserGuid in interface ICRMUserDAO
        Parameters:
        strUserGuid - the user guid
        plugin - the Plugin
        Returns:
        The instance of the CRMUser
      • store

        public void store​(CRMUser user,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface ICRMUserDAO
        Parameters:
        user - the reference of the CRMUser
        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 ICRMUserDAO
        Parameters:
        nIdCRMUser - int identifier of the CRMUser to delete
        plugin - the Plugin
      • selectAll

        public List<CRMUser> selectAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Find all.
        Specified by:
        selectAll in interface ICRMUserDAO
        Parameters:
        plugin - the plugin
        Returns:
        the list
      • selectListIdsCRMUserByFilter

        public List<Integer> selectListIdsCRMUserByFilter​(CRMUserFilter filter,
                                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Find list ids crm user by filter.
        Specified by:
        selectListIdsCRMUserByFilter in interface ICRMUserDAO
        Parameters:
        filter - the filter
        plugin - the plugin
        Returns:
        the list
      • selectByListIds

        public List<CRMUser> selectByListIds​(List<Integer> listIdsCRMUser,
                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Select by list ids.
        Specified by:
        selectByListIds in interface ICRMUserDAO
        Parameters:
        listIdsCRMUser - the list ids crm user
        plugin - the plugin
        Returns:
        the list