Interface IRBACRoleDAO

  • All Known Implementing Classes:
    RBACRoleDAO

    public interface IRBACRoleDAO
    AdminRoleDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean checkExistRole​(java.lang.String strRoleKey)
      Check that the given key points to an existing role
      void delete​(java.lang.String strRoleKey)
      Delete a record from the table
      void insert​(RBACRole role)
      Insert a new record in the table.
      RBACRole load​(java.lang.String strRoleKey)
      Load the data of RBACRole from the table
      java.util.Collection<RBACRole> selectRoleList()
      Load the list of roles
      void store​(java.lang.String strRoleKey, RBACRole role)
      Update the record identified by the given role key with the given role in the table
    • Method Detail

      • checkExistRole

        boolean checkExistRole​(java.lang.String strRoleKey)
        Check that the given key points to an existing role
        Parameters:
        strRoleKey - The role key
        Returns:
        true if the role exists, false otherwise
      • delete

        void delete​(java.lang.String strRoleKey)
        Delete a record from the table
        Parameters:
        strRoleKey - The RBACRole object
      • insert

        void insert​(RBACRole role)
        Insert a new record in the table.
        Parameters:
        role - The role object
      • load

        RBACRole load​(java.lang.String strRoleKey)
        Load the data of RBACRole from the table
        Parameters:
        strRoleKey - The identifier of RBACRole
        Returns:
        the instance of the RBACRole
      • selectRoleList

        java.util.Collection<RBACRole> selectRoleList()
        Load the list of roles
        Returns:
        The Collection of the Roles
      • store

        void store​(java.lang.String strRoleKey,
                   RBACRole role)
        Update the record identified by the given role key with the given role in the table
        Parameters:
        strRoleKey - the key of the role to modify
        role - The reference of role to be the new one