Interface GroupBackend

All Known Implementing Classes:
AbstractGroupBackend, InternalGroupBackend, SystemGroupBackend, UniversalGroupBackend

public interface GroupBackend
Implementations of GroupBackend provide lookup and membership accessors to a group system.
  • Method Details

    • handles

      boolean handles(AccountGroup.UUID uuid)
      Returns true if the backend can operate on the UUID.
    • get

      Looks up a group in the backend. If the group does not exist, null is returned.
      Parameters:
      uuid - the group identifier
      Returns:
      the group
    • suggest

      Collection<GroupReference> suggest(String name, ProjectState project)
      Returns suggestions for the group name sorted by name.
    • membershipsOf

      GroupMembership membershipsOf(CurrentUser user)
      Returns the group membership checker for the backend.
    • isVisibleToAll

      boolean isVisibleToAll(AccountGroup.UUID uuid)
      Returns true if the group with the given UUID is visible to all registered users.
    • isOrContainsExternalGroup

      default boolean isOrContainsExternalGroup(AccountGroup.UUID groupId)