Class SetAccessUtil
java.lang.Object
com.google.gerrit.server.restapi.project.SetAccessUtil
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setParentName
(IdentifiedUser identifiedUser, ProjectConfig config, Project.NameKey projectName, Project.NameKey newParentProjectName, boolean checkAdmin) Updates the parent project in the given config.
-
Method Details
-
setParentName
public void setParentName(IdentifiedUser identifiedUser, ProjectConfig config, Project.NameKey projectName, Project.NameKey newParentProjectName, boolean checkAdmin) throws ResourceConflictException, AuthException, PermissionBackendException, BadRequestException Updates the parent project in the given config.- Parameters:
identifiedUser
- the userconfig
- the config to modifyprojectName
- the project for which to change access.newParentProjectName
- the new parent to set; passing null will make this a nopcheckAdmin
- if set, verify that user has administrateServer permission- Throws:
ResourceConflictException
AuthException
PermissionBackendException
BadRequestException
-