public class SetParent extends java.lang.Object implements RestModifyView<ProjectResource,SetParent.Input>
Modifier and Type | Class and Description |
---|---|
static class |
SetParent.Input |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
apply(ProjectResource rsrc,
SetParent.Input input)
Process the view operation by altering the resource.
|
java.lang.String |
apply(ProjectResource rsrc,
SetParent.Input input,
boolean checkIfAdmin) |
void |
validateParentUpdate(Project.NameKey project,
IdentifiedUser user,
java.lang.String newParent,
boolean checkIfAdmin) |
public java.lang.String apply(ProjectResource rsrc, SetParent.Input input) throws AuthException, ResourceConflictException, ResourceNotFoundException, UnprocessableEntityException, java.io.IOException, PermissionBackendException
RestModifyView
apply
in interface RestModifyView<ProjectResource,SetParent.Input>
rsrc
- resource to modify.input
- input after parsing from request.BinaryResult
to avoid automatic conversion
to JSON.AuthException
- the client is not permitted to access this view.ResourceConflictException
- the resource state does not permit this view to make the
changes at this time.ResourceNotFoundException
UnprocessableEntityException
java.io.IOException
PermissionBackendException
public java.lang.String apply(ProjectResource rsrc, SetParent.Input input, boolean checkIfAdmin) throws AuthException, ResourceConflictException, ResourceNotFoundException, UnprocessableEntityException, java.io.IOException, PermissionBackendException
AuthException
ResourceConflictException
ResourceNotFoundException
UnprocessableEntityException
java.io.IOException
PermissionBackendException
public void validateParentUpdate(Project.NameKey project, IdentifiedUser user, java.lang.String newParent, boolean checkIfAdmin) throws AuthException, ResourceConflictException, UnprocessableEntityException, PermissionBackendException