Interface IRBACDAO

  • All Known Implementing Classes:
    RBACDAO

    public interface IRBACDAO
    Interface for RBAC DAO
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(int nRBACId)
      Delete a record from the table
      void deleteForResourceTypeAndId​(java.lang.String strResourceType, java.lang.String strResourceId)
      Remove all the entries of the given ressource type and ressource id
      void deleteForRoleKey​(java.lang.String strRoleKey)
      Remove all the entries of the given role key
      void insert​(RBAC rBAC)
      Insert a new record in the table.
      RBAC load​(int nRBACId)
      Load the data of RBAC from the table
      java.util.Collection<RBAC> selectByPermissionsAndRoles​(java.util.Collection<java.lang.String> permissions, java.util.Collection<java.lang.String> roles)
      Find all entries for a given collection of permissions and roles
      java.util.Collection<RBAC> selectRBACList()
      Load the list of rBACs
      java.util.Collection<RBAC> selectRBACListByRoleKey​(java.lang.String strRoleKey)
      Find all the entries for a given role key
      java.util.Collection<java.lang.String> selectRoleKeys​(java.lang.String strTypeCode, java.lang.String strId, java.lang.String strPermission)  
      void store​(RBAC rBAC)
      Update the record in the table
      void updateRoleKey​(java.lang.String strOldRoleKey, java.lang.String strNewRoleKey)
      Update the role key of all the entries of a given role key
    • Method Detail

      • delete

        void delete​(int nRBACId)
        Delete a record from the table
        Parameters:
        nRBACId - The id of RBAC object to delete
      • deleteForRoleKey

        void deleteForRoleKey​(java.lang.String strRoleKey)
        Remove all the entries of the given role key
        Parameters:
        strRoleKey - the role key of the entries to remove
      • insert

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

        RBAC load​(int nRBACId)
        Load the data of RBAC from the table
        Parameters:
        nRBACId - The identifier of RBAC
        Returns:
        the instance of the RBAC
      • selectRBACList

        java.util.Collection<RBAC> selectRBACList()
        Load the list of rBACs
        Returns:
        The Collection of the RBACs
      • selectRBACListByRoleKey

        java.util.Collection<RBAC> selectRBACListByRoleKey​(java.lang.String strRoleKey)
        Find all the entries for a given role key
        Parameters:
        strRoleKey - the role key to search for
        Returns:
        A collection of rBACs
      • selectByPermissionsAndRoles

        java.util.Collection<RBAC> selectByPermissionsAndRoles​(java.util.Collection<java.lang.String> permissions,
                                                               java.util.Collection<java.lang.String> roles)
        Find all entries for a given collection of permissions and roles
        Parameters:
        permissions - the permissions collection
        roles - the roles collection
        Returns:
        A collection of RBACs
      • selectRoleKeys

        java.util.Collection<java.lang.String> selectRoleKeys​(java.lang.String strTypeCode,
                                                              java.lang.String strId,
                                                              java.lang.String strPermission)
        Parameters:
        strTypeCode - The type code
        strId - the id
        strPermission - th permission
        Returns:
        listRoleKeys
      • store

        void store​(RBAC rBAC)
        Update the record in the table
        Parameters:
        rBAC - The reference of rBAC
      • updateRoleKey

        void updateRoleKey​(java.lang.String strOldRoleKey,
                           java.lang.String strNewRoleKey)
        Update the role key of all the entries of a given role key
        Parameters:
        strOldRoleKey - the role key to update
        strNewRoleKey - the new role key
      • deleteForResourceTypeAndId

        void deleteForResourceTypeAndId​(java.lang.String strResourceType,
                                        java.lang.String strResourceId)
        Remove all the entries of the given ressource type and ressource id
        Parameters:
        strResourceType - the resource type
        strResourceId - the resource id