public class SystemGroupBackend extends AbstractGroupBackend
Modifier and Type | Class and Description |
---|---|
static class |
SystemGroupBackend.NameCheck |
Modifier and Type | Field and Description |
---|---|
static AccountGroup.UUID |
ANONYMOUS_USERS
Common UUID assigned to the "Anonymous Users" group.
|
static AccountGroup.UUID |
CHANGE_OWNER
Common UUID assigned to the "Change Owner" placeholder group.
|
static AccountGroup.UUID |
PROJECT_OWNERS
Common UUID assigned to the "Project Owners" placeholder group.
|
static AccountGroup.UUID |
REGISTERED_USERS
Common UUID assigned to the "Registered Users" group.
|
static java.lang.String |
SYSTEM_GROUP_SCHEME |
Constructor and Description |
---|
SystemGroupBackend(org.eclipse.jgit.lib.Config cfg) |
Modifier and Type | Method and Description |
---|---|
GroupDescription.Basic |
get(AccountGroup.UUID uuid)
Looks up a group in the backend.
|
GroupReference |
getGroup(AccountGroup.UUID uuid) |
java.util.Set<java.lang.String> |
getNames() |
java.util.Set<java.lang.String> |
getReservedNames() |
boolean |
handles(AccountGroup.UUID uuid) |
static boolean |
isAnonymousOrRegistered(AccountGroup.UUID uuid) |
static boolean |
isAnonymousOrRegistered(GroupReference ref) |
static boolean |
isSystemGroup(AccountGroup.UUID uuid) |
GroupMembership |
membershipsOf(IdentifiedUser user) |
java.util.Collection<GroupReference> |
suggest(java.lang.String name,
ProjectState project) |
isVisibleToAll
public static final java.lang.String SYSTEM_GROUP_SCHEME
public static final AccountGroup.UUID ANONYMOUS_USERS
public static final AccountGroup.UUID REGISTERED_USERS
public static final AccountGroup.UUID PROJECT_OWNERS
public static final AccountGroup.UUID CHANGE_OWNER
@Inject public SystemGroupBackend(org.eclipse.jgit.lib.Config cfg)
public static boolean isSystemGroup(AccountGroup.UUID uuid)
public static boolean isAnonymousOrRegistered(GroupReference ref)
public static boolean isAnonymousOrRegistered(AccountGroup.UUID uuid)
public GroupReference getGroup(AccountGroup.UUID uuid)
public java.util.Set<java.lang.String> getNames()
public java.util.Set<java.lang.String> getReservedNames()
public boolean handles(AccountGroup.UUID uuid)
true
if the backend can operate on the UUID.public GroupDescription.Basic get(AccountGroup.UUID uuid)
GroupBackend
uuid
- the group identifierpublic java.util.Collection<GroupReference> suggest(java.lang.String name, ProjectState project)
public GroupMembership membershipsOf(IdentifiedUser user)