public class CreateBranch extends java.lang.Object implements RestCollectionCreateView<ProjectResource,BranchResource,BranchInput>
Modifier and Type | Method and Description |
---|---|
BranchInfo |
apply(ProjectResource rsrc,
IdString id,
BranchInput input)
Process the view operation by creating the resource.
|
public BranchInfo apply(ProjectResource rsrc, IdString id, BranchInput input) throws BadRequestException, AuthException, ResourceConflictException, java.io.IOException, PermissionBackendException, NoSuchProjectException
RestCollectionCreateView
apply
in interface RestCollectionCreateView<ProjectResource,BranchResource,BranchInput>
rsrc
- parent resource of the resource that should be createdinput
- input after parsing from request.BinaryResult
to avoid automatic conversion
to JSON.BadRequestException
AuthException
ResourceConflictException
java.io.IOException
PermissionBackendException
NoSuchProjectException