public class CreateBranch extends 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, IOException, PermissionBackendException, NoSuchProjectException
RestCollectionCreateViewapply 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.BadRequestExceptionAuthExceptionResourceConflictExceptionIOExceptionPermissionBackendExceptionNoSuchProjectException