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 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) |
Set<String> |
getNames() |
Set<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) |
Collection<GroupReference> |
suggest(String name,
ProjectControl project) |
isVisibleToAll
public static final 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 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 Collection<GroupReference> suggest(String name, ProjectControl project)
public GroupMembership membershipsOf(IdentifiedUser user)