Interface IUserCodeControllerDataDAO

  • All Known Implementing Classes:
    UserCodeControllerDataDAO

    public interface IUserCodeControllerDataDAO
    IControllerUserCodeDataDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean checkUserCode​(java.lang.String strUser, java.lang.String strCode, int idAccessControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Checks if the pair user/code exists
      void delete​(java.lang.String strUser, int idAccessControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void deleteByAccessControl​(int idAccessControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(UserCodeControllerData userCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      UserCodeControllerData load​(java.lang.String strUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<UserCodeControllerData> loadAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<UserCodeControllerData> loadDateInvalid​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
    • Method Detail

      • insert

        void insert​(UserCodeControllerData userCode,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Parameters:
        userCode - instance of the ControllerUserCodeData object to insert
        plugin - the Plugin
      • delete

        void delete​(java.lang.String strUser,
                    int idAccessControl,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        strUser -
        idAccessControl -
        plugin - the Plugin
      • deleteByAccessControl

        void deleteByAccessControl​(int idAccessControl,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        idAccessControl -
        plugin - the Plugin
      • load

        UserCodeControllerData load​(java.lang.String strUser,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        strUser - The identifier of the ControllerUserCodeData
        plugin - the Plugin
        Returns:
        The instance of the ControllerUserCodeData
      • loadAll

        java.util.List<UserCodeControllerData> loadAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        plugin - the Plugin
        Returns:
        A list of instance of the ControllerUserCodeData
      • loadDateInvalid

        java.util.List<UserCodeControllerData> loadDateInvalid​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        plugin - the Plugin
        Returns:
        A list of instance of the ControllerUserCodeData
      • checkUserCode

        boolean checkUserCode​(java.lang.String strUser,
                              java.lang.String strCode,
                              int idAccessControl,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Checks if the pair user/code exists
        Parameters:
        strUser -
        strCode -
        idAccessControl -
        plugin -
        Returns: