public class GroupResolver
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
GroupDescription.Basic |
parse(java.lang.String id)
Parses a group ID from a request body and returns the group.
|
GroupDescription.Basic |
parseId(java.lang.String id)
Parses a group ID and returns the group without making any permission check whether the current
user can see the group.
|
GroupDescription.Internal |
parseInternal(java.lang.String id)
Parses a group ID from a request body and returns the group if it is a Gerrit internal group.
|
public GroupDescription.Basic parse(java.lang.String id) throws UnprocessableEntityException
id
- ID of the group, can be a group UUID, a group name or a legacy group IDUnprocessableEntityException
- thrown if the group ID cannot be resolved or if the group
is not visible to the calling userpublic GroupDescription.Internal parseInternal(java.lang.String id) throws UnprocessableEntityException
id
- ID of the group, can be a group UUID, a group name or a legacy group IDUnprocessableEntityException
- thrown if the group ID cannot be resolved, if the group is
not visible to the calling user or if it's an external grouppublic GroupDescription.Basic parseId(java.lang.String id)
id
- ID of the group, can be a group UUID, a group name or a legacy group ID