Interface GroupDAO

All Superinterfaces:
AnyDAO<Group>, DAO<Group>
All Known Subinterfaces:
GroupRepo, GroupRepo

public interface GroupDAO extends AnyDAO<Group>
  • Method Details

    • findKey

      Optional<String> findKey(String name)
    • findByName

      Optional<? extends Group> findByName(String name)
    • securityChecks

      void securityChecks(Set<String> authRealms, String key, String realm)
      Checks if the calling user is authorized to access the Group matching the provided key, under the given realm.
      Parameters:
      authRealms - realms for which the calling user owns entitlement(s) to check
      key - Group key
      realm - Group's realm full path
    • countByRealm

      Map<String,Long> countByRealm()
    • findKeysByNamePattern

      List<String> findKeysByNamePattern(String pattern)
    • findOwnedByUser

      List<Group> findOwnedByUser(String userKey)
    • findOwnedByGroup

      List<Group> findOwnedByGroup(String groupKey)
    • findAMemberships

      List<AMembership> findAMemberships(Group group)
    • findUMemberships

      List<UMembership> findUMemberships(Group group)
    • findAMembers

      List<String> findAMembers(String groupKey)
    • findUMembers

      List<String> findUMembers(String groupKey)
    • existsAMembership

      boolean existsAMembership(String anyObjectKey, String groupKey)
    • existsUMembership

      boolean existsUMembership(String userKey, String groupKey)
    • findADynMembers

      List<String> findADynMembers(Group group)
    • countAMembers

      long countAMembers(String groupKey)
    • countUMembers

      long countUMembers(String groupKey)
    • countADynMembers

      long countADynMembers(Group group)
    • countUDynMembers

      long countUDynMembers(Group group)
    • clearADynMembers

      void clearADynMembers(Group group)
    • refreshDynMemberships

      Pair<Set<String>,Set<String>> refreshDynMemberships(AnyObject anyObject)
      Evaluates all the dynamic group membership conditions against the given anyObject (invoked during save).
      Parameters:
      anyObject - anyObject being saved
      Returns:
      pair of groups dynamically assigned before and after refresh
    • removeDynMemberships

      Set<String> removeDynMemberships(AnyObject anyObject)
      Removes the dynamic group memberships of the given anyObject (invoked during delete).
      Parameters:
      anyObject - anyObject being deleted
      Returns:
      groups dynamically assigned before refresh
    • findUDynMembers

      List<String> findUDynMembers(Group group)
    • clearUDynMembers

      void clearUDynMembers(Group group)
    • refreshDynMemberships

      Pair<Set<String>,Set<String>> refreshDynMemberships(User user)
      Evaluates all the dynamic group membership conditions against the given user (invoked during save).
      Parameters:
      user - user being saved
      Returns:
      pair of groups dynamically assigned before and after refresh
    • removeDynMemberships

      Set<String> removeDynMemberships(User user)
      Removes the dynamic group memberships of the given anyObject (invoked during delete).
      Parameters:
      user - user being deleted
      Returns:
      groups dynamically assigned before refresh
    • saveAndRefreshDynMemberships

      Group saveAndRefreshDynMemberships(Group group)
      Saves the provided group and refreshes all User and AnyObject members.
      Parameters:
      group - group to save
      Returns:
      merged group
    • findTypeExtensions

      List<TypeExtension> findTypeExtensions(AnyTypeClass anyTypeClass)
    • findAllResourceKeys

      Collection<String> findAllResourceKeys(String key)
      Specified by:
      findAllResourceKeys in interface AnyDAO<Group>