Class RBACRoleDAO

java.lang.Object
fr.paris.lutece.portal.business.rbac.RBACRoleDAO
All Implemented Interfaces:
IRBACRoleDAO

@ApplicationScoped public final class RBACRoleDAO extends Object implements IRBACRoleDAO
This class provides Data Access methods for RBACRole objects
  • Constructor Details

    • RBACRoleDAO

      public RBACRoleDAO()
  • Method Details

    • insert

      public void insert(RBACRole role)
      Insert a new record in the table.
      Specified by:
      insert in interface IRBACRoleDAO
      Parameters:
      role - The role object
    • load

      public RBACRole load(String strRoleKey)
      Load the data of RBACRole from the table
      Specified by:
      load in interface IRBACRoleDAO
      Parameters:
      strRoleKey - The identifier of RBACRole
      Returns:
      the instance of the RBACRole
    • delete

      public void delete(String strRoleKey)
      Delete a record from the table
      Specified by:
      delete in interface IRBACRoleDAO
      Parameters:
      strRoleKey - The role key
    • store

      public void store(String strRoleKey, RBACRole role)
      Update the record identified by the given role key with the given role in the table
      Specified by:
      store in interface IRBACRoleDAO
      Parameters:
      strRoleKey - the key of the role to modify
      role - The reference of role to be the new one
    • selectRoleList

      public Collection<RBACRole> selectRoleList()
      Load the list of roles
      Specified by:
      selectRoleList in interface IRBACRoleDAO
      Returns:
      The Collection of the Roles
    • checkExistRole

      public boolean checkExistRole(String strRoleKey)
      Check that the given key points to an existing role
      Specified by:
      checkExistRole in interface IRBACRoleDAO
      Parameters:
      strRoleKey - the role key
      Returns:
      true if the role exists, false otherwise