Class AccessControllerDAO

java.lang.Object
fr.paris.lutece.plugins.accesscontrol.business.AccessControllerDAO
All Implemented Interfaces:
IAccessControllerDAO

@ApplicationScoped public final class AccessControllerDAO extends Object implements IAccessControllerDAO
This class provides Data Access methods for AccessController objects
  • Constructor Details

    • AccessControllerDAO

      public AccessControllerDAO()
  • Method Details

    • insert

      public void insert(AccessController accessController, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IAccessControllerDAO
      Parameters:
      accessController - instance of the AccessController object to insert
      plugin - the Plugin
    • load

      public AccessController load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface IAccessControllerDAO
      Parameters:
      nKey - The identifier of the accessController
      plugin - the Plugin
      Returns:
      The instance of the accessController
    • delete

      public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface IAccessControllerDAO
      Parameters:
      nKey - The identifier of the AccessController to delete
      plugin - the Plugin
    • store

      public void store(AccessController accessController, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IAccessControllerDAO
      Parameters:
      accessController - the reference of the AccessController
      plugin - the Plugin
    • selectAccessControllersList

      public List<AccessController> selectAccessControllersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the accessController objects and returns them as a list
      Specified by:
      selectAccessControllersList in interface IAccessControllerDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the accessController objects
    • selectIdAccessControllersList

      public List<Integer> selectIdAccessControllersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the accessController objects and returns them as a list
      Specified by:
      selectIdAccessControllersList in interface IAccessControllerDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the id of all the accessController objects
    • selectAccessControllersReferenceList

      public fr.paris.lutece.util.ReferenceList selectAccessControllersReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the accessController objects and returns them as a referenceList
      Specified by:
      selectAccessControllersReferenceList in interface IAccessControllerDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The referenceList which contains the data of all the accessController objects
    • selectAccessControllersListByAccessControl

      public List<AccessController> selectAccessControllersListByAccessControl(int idAccessControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IAccessControllerDAO
      Load the data of all the accessController objects of an accesscontrol and returns them as a list
      Specified by:
      selectAccessControllersListByAccessControl in interface IAccessControllerDAO
      plugin - the Plugin
      Returns:
      The list which contains the data of all the accessController objects