Class RightDAO

java.lang.Object
fr.paris.lutece.portal.business.right.RightDAO
All Implemented Interfaces:
IRightDAO

@ApplicationScoped public final class RightDAO extends Object implements IRightDAO
This class provides Data Access methods for right objects
  • Constructor Details

    • RightDAO

      public RightDAO()
  • Method Details

    • insert

      public void insert(Right right)
      Insert a new record in the table.
      Specified by:
      insert in interface IRightDAO
      Parameters:
      right - instance of the right to insert
    • load

      public Right load(String strId)
      load the data of the right from the table
      Specified by:
      load in interface IRightDAO
      Parameters:
      strId - The identifier of the admin right
      Returns:
      The instance of the admin right
    • delete

      public void delete(String strIdRight)
      Delete a record from the table
      Specified by:
      delete in interface IRightDAO
      Parameters:
      strIdRight - string identifier of the admin right to delete
    • store

      public void store(Right right)
      Update the record in the table
      Specified by:
      store in interface IRightDAO
      Parameters:
      right - the reference of the admin right
    • selectRightsList

      public Collection<Right> selectRightsList()
      Loads the data of all the rights and returns them in form of a collection
      Specified by:
      selectRightsList in interface IRightDAO
      Returns:
      the collection which contains the data of all the rights
    • selectRightsList

      public Collection<Right> selectRightsList(int nLevel)
      Loads the data of all the rights with level greater or equal than nLevel and returns them in form of a collection
      Specified by:
      selectRightsList in interface IRightDAO
      Parameters:
      nLevel - The right level
      Returns:
      the collection which contains the data of all the rights
    • selectExternalRightsList

      public Collection<Right> selectExternalRightsList()
      Loads the data of all the external admin features and returns them in form of a collection
      Returns:
      the collection which contains the data of all the external admin features
    • selectExternalRightsList

      public Collection<Right> selectExternalRightsList(int nLevel)
      Loads the data of all the external admin features with level greater or equal than nLevel and returns them in form of a collection
      Specified by:
      selectExternalRightsList in interface IRightDAO
      Parameters:
      nLevel - The right level
      Returns:
      the collection which contains the data of all the external admin features
    • selectRightsList

      public Collection<Right> selectRightsList(String strFeatureGroup)
      Loads the data of all the rights with the specified feature group and returns them in form of a collection
      Specified by:
      selectRightsList in interface IRightDAO
      Parameters:
      strFeatureGroup - the name of the feature group
      Returns:
      the collection which contains the data of all the rights