Interface RoleSetDAO

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3RoleSetDAO

public interface RoleSetDAO extends GrouperDAO
attribute def name set, links up attributes with other attributes (probably for privs)
  • Method Details

    • deleteByIfHasRole

      void deleteByIfHasRole(Role role)
      delete role sets by owner, so the role can be deleted
      Parameters:
      role -
    • saveOrUpdate

      void saveOrUpdate(RoleSet roleSet)
      insert or update an attribute def name set
      Parameters:
      roleSet -
    • delete

      void delete(RoleSet roleSet)
      delete a role set
      Parameters:
      roleSet -
    • findById

      RoleSet findById(String id, boolean exceptionIfNotFound) throws RoleSetNotFoundException
      Parameters:
      id -
      exceptionIfNotFound -
      Returns:
      the attribute def name set or null if not there
      Throws:
      RoleSetNotFoundException
    • findByIfHasRoleId

      Set<RoleSet> findByIfHasRoleId(String id)
      find by set owner
      Parameters:
      id -
      Returns:
      the role set or null if not there
    • findByThenHasRoleId

      Set<RoleSet> findByThenHasRoleId(String id)
      find by member
      Parameters:
      id -
      Returns:
      the role set or null if not there
    • findByIfThenHasRoleId

      Set<RoleSet> findByIfThenHasRoleId(String roleSetForThens, String roleSetForIfs)
       this will help with deletes.  It will find sets who have if's which match thens provided, and thens which 
       match ifs provided.
       
       So if there is this path: A -> B -> C -> D
       And the inputs here are B and C (removing that path)
       Then return A -> C, A -> D, B -> C, B -> D
       
       
      Parameters:
      roleSetForThens -
      roleSetForIfs -
      Returns:
      the attribute def name set or null if not there
    • findByIfThenImmediate

      RoleSet findByIfThenImmediate(String roleIdIf, String roleIdThen, boolean exceptionIfNotFound)
      find by if and then (not same) with depth of 1 (immediate)
      Parameters:
      roleIdIf -
      roleIdThen -
      exceptionIfNotFound -
      Returns:
      the roleSet
    • rolesInheritPermissionsToThis

      Set<Role> rolesInheritPermissionsToThis(String roleId)
      get all the IF rows from rowSet about this id. So if this is seniorLoanAdministator, loanAdministrator would be returned. Dont return the role for the id passed in
      Parameters:
      roleId -
      Returns:
      the role
    • rolesInheritPermissionsToThisImmediate

      Set<Role> rolesInheritPermissionsToThisImmediate(String roleId)
      get all the IF rows from rowSet about this id (immediate only). So if this is seniorLoanAdministator, loanAdministrator would be returned. Dont return the role for the id passed in
      Parameters:
      roleId -
      Returns:
      the role
    • rolesInheritPermissionsFromThis

      Set<Role> rolesInheritPermissionsFromThis(String roleId)
      get all the THEN rows from rowSet about this id. So if this is loanAdministrator, seniorLoanAdministator would be returned. Dont return the role for the id passed in
      Parameters:
      roleId -
      Returns:
      the role
    • rolesInheritPermissionsFromThisImmediate

      Set<Role> rolesInheritPermissionsFromThisImmediate(String roleId)
      get all the THEN rows from rowSet about this id (immediate only). So if this is loanAdministrator, seniorLoanAdministator would be returned. Dont return the role for the id passed in
      Parameters:
      roleId -
      Returns:
      the role
    • findByUuidOrKey

      RoleSet findByUuidOrKey(String id, String ifHasRoleId, String thenHasRoleId, String parentRoleSetId, int depth, boolean exceptionIfNull)
      find a record by uuid or key
      Parameters:
      id -
      ifHasRoleId -
      thenHasRoleId -
      parentRoleSetId -
      depth -
      exceptionIfNull -
      Returns:
      the roleset or null
    • saveUpdateProperties

      void saveUpdateProperties(RoleSet roleSet)
      save the update properties which are auto saved when business method is called
      Parameters:
      roleSet -
    • findSelfRoleSet

      RoleSet findSelfRoleSet(String groupId, boolean exceptionIfNotFound)
      Parameters:
      groupId -
      exceptionIfNotFound -
      Returns:
      roleSet
    • findByIfHasRoleIdImmediate

      Set<RoleSet> findByIfHasRoleIdImmediate(String id)
      Parameters:
      id -
      Returns:
      set of rolesets
    • findByThenHasRoleIdImmediate

      Set<RoleSet> findByThenHasRoleIdImmediate(String id)
      Parameters:
      id -
      Returns:
      set of rolesets