Package com.google.gerrit.server.group
Class GroupResolver
java.lang.Object
com.google.gerrit.server.group.GroupResolver
-
Method Summary
Modifier and TypeMethodDescriptionParses a group ID from a request body and returns the group.Parses a group ID and returns the group without making any permission check whether the current user can see the group.parseInternal
(String id) Parses a group ID from a request body and returns the group if it is a Gerrit internal group.
-
Method Details
-
parse
Parses a group ID from a request body and returns the group.- Parameters:
id
- ID of the group, can be a group UUID, a group name or a legacy group ID- Returns:
- the group
- Throws:
UnprocessableEntityException
- thrown if the group ID cannot be resolved or if the group is not visible to the calling user
-
parseInternal
Parses a group ID from a request body and returns the group if it is a Gerrit internal group.- Parameters:
id
- ID of the group, can be a group UUID, a group name or a legacy group ID- Returns:
- the group
- Throws:
UnprocessableEntityException
- thrown if the group ID cannot be resolved, if the group is not visible to the calling user or if it's an external group
-
parseId
Parses a group ID and returns the group without making any permission check whether the current user can see the group.- Parameters:
id
- ID of the group, can be a group UUID, a group name or a legacy group ID- Returns:
- the group, null if no group is found for the given group ID
-