public class CreateProject extends java.lang.Object implements RestCollectionCreateView<TopLevelResource,ProjectResource,ProjectInput>
Modifier and Type | Method and Description |
---|---|
Response<ProjectInfo> |
apply(TopLevelResource resource,
IdString id,
ProjectInput input)
Process the view operation by creating the resource.
|
public Response<ProjectInfo> apply(TopLevelResource resource, IdString id, ProjectInput input) throws RestApiException, java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
RestCollectionCreateView
apply
in interface RestCollectionCreateView<TopLevelResource,ProjectResource,ProjectInput>
resource
- parent resource of the resource that should be createdinput
- input after parsing from request.BinaryResult
to avoid automatic conversion
to JSON.RestApiException
- if the resource creation is rejectedjava.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException