public class CreateGroup extends java.lang.Object implements RestCollectionCreateView<TopLevelResource,GroupResource,GroupInput>
Modifier and Type | Method and Description |
---|---|
CreateGroup |
addOption(ListGroupsOption o) |
CreateGroup |
addOptions(java.util.Collection<ListGroupsOption> o) |
GroupInfo |
apply(TopLevelResource resource,
IdString id,
GroupInput input)
Process the view operation by creating the resource.
|
public CreateGroup addOption(ListGroupsOption o)
public CreateGroup addOptions(java.util.Collection<ListGroupsOption> o)
public GroupInfo apply(TopLevelResource resource, IdString id, GroupInput input) throws AuthException, BadRequestException, UnprocessableEntityException, ResourceConflictException, com.google.gwtorm.server.OrmException, java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException, ResourceNotFoundException, PermissionBackendException
RestCollectionCreateView
apply
in interface RestCollectionCreateView<TopLevelResource,GroupResource,GroupInput>
resource
- parent resource of the resource that should be createdinput
- input after parsing from request.BinaryResult
to avoid automatic conversion
to JSON.AuthException
BadRequestException
UnprocessableEntityException
ResourceConflictException
com.google.gwtorm.server.OrmException
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
ResourceNotFoundException
PermissionBackendException