Interface InternalGroupDao

All Superinterfaces:
GroupDao
All Known Implementing Classes:
GroupDAOHibernate

public interface InternalGroupDao extends GroupDao
Persistance methods necessary to modify an InternalDirectory group.
  • Method Details

    • findByName

      InternalGroup findByName(long directoryId, String groupName) throws GroupNotFoundException
      Finds internal group by directory id and group name.
      Specified by:
      findByName in interface GroupDao
      Parameters:
      directoryId - Directory id.
      groupName - Group name.
      Returns:
      An internal group.
      Throws:
      GroupNotFoundException - If the group cannot be found.
    • findGroupAttributes

      Set<InternalGroupAttribute> findGroupAttributes(long groupId)
      Finds group attributes of the given group identified by group id.
      Parameters:
      groupId - Group id.
      Returns:
      Set of group attributes.
    • removeAll

      void removeAll(long directoryId)
      Removes all groups from a directory, but does not audit group removal operation
      Parameters:
      directoryId - Directory Id.
    • addAll

      Bulk add of groups and their attributes.
      Parameters:
      groups - Groups with attributes.
      Returns:
      Batch result.
    • findByNames

      Collection<InternalGroup> findByNames(long directoryId, Collection<String> groupnames)
      Bulk find of groups using SQL disjunction.
      Parameters:
      directoryId - the directory to search for the groups.
      groupnames - names of groups to find
      Returns:
      collection of found groups.
    • findByIds

      Collection<InternalGroup> findByIds(Collection<Long> groupIds)
      Bulk find of groups with the specified database identifiers. The result collection may be smaller than the input if ids that did not match with any groups were supplied
      Parameters:
      groupIds - identifiers of groups that will be found
      Returns:
      the matching groups