public class SetAccessUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
setParentName(IdentifiedUser identifiedUser,
ProjectConfig config,
Project.NameKey projectName,
Project.NameKey newParentProjectName,
boolean checkAdmin)
Updates the parent project in the given config.
|
public void setParentName(IdentifiedUser identifiedUser, ProjectConfig config, Project.NameKey projectName, Project.NameKey newParentProjectName, boolean checkAdmin) throws ResourceConflictException, AuthException, PermissionBackendException, BadRequestException
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 permissionResourceConflictExceptionAuthExceptionPermissionBackendExceptionBadRequestException