Class SetAccessUtil
java.lang.Object
com.google.gerrit.server.restapi.project.SetAccessUtil
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetParentName(IdentifiedUser identifiedUser, ProjectConfig config, Project.NameKey projectName, Project.NameKey newParentProjectName, boolean checkAdmin) Updates the parent project in the given config.
- 
Method Details- 
setParentNamepublic 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 user
- config- the config to modify
- projectName- the project for which to change access.
- newParentProjectName- the new parent to set; passing null will make this a nop
- checkAdmin- if set, verify that user has administrateServer permission
- Throws:
- ResourceConflictException
- AuthException
- PermissionBackendException
- BadRequestException
 
 
-