@RestController
@Api(description="The content tree controller",
name="ContentTree controller")
public class ContentTreeController
extends Object
| Constructor and Description |
|---|
ContentTreeController() |
| Modifier and Type | Method and Description |
|---|---|
de.digitalcollections.core.model.api.paging.PageResponse<ContentTree> |
findAll(int pageNumber,
int pageSize,
String sortField,
de.digitalcollections.core.model.api.paging.enums.Direction sortDirection,
de.digitalcollections.core.model.api.paging.enums.NullHandling nullHandling) |
ContentTree |
findById(UUID uuid) |
ContentTree |
save(ContentTree contentTree,
org.springframework.validation.BindingResult errors) |
ContentTree |
update(UUID uuid,
ContentTree contentTree,
org.springframework.validation.BindingResult errors) |
@ApiMethod(description="get all content trees")
@RequestMapping(value="/v1/contenttrees",
params={"pageNumber","pageSize","sortField","sortDirection","nullHandling"},
produces="application/json",
method={GET,POST})
@ApiResponseObject
public de.digitalcollections.core.model.api.paging.PageResponse<ContentTree> findAll(@RequestParam(name="pageNumber",required=false)
int pageNumber,
@RequestParam(name="pageSize",required=false)
int pageSize,
@RequestParam(name="sortField",required=false)
String sortField,
@RequestParam(name="sortDirection",required=false)
de.digitalcollections.core.model.api.paging.enums.Direction sortDirection,
@RequestParam(name="nullHandling",required=false)
de.digitalcollections.core.model.api.paging.enums.NullHandling nullHandling)
@ApiMethod(description="get content tree by uuid")
@RequestMapping(value="/v1/contenttrees/{uuid}",
produces="application/json",
method=GET)
@ApiResponseObject
public ContentTree findById(@PathVariable
UUID uuid)
@ApiMethod(description="save a newly created ContentTree")
@RequestMapping(value="/v1/contenttrees",
produces="application/json",
method=POST)
@ApiResponseObject
public ContentTree save(@RequestBody
ContentTree contentTree,
org.springframework.validation.BindingResult errors)
throws IdentifiableServiceException
IdentifiableServiceException@ApiMethod(description="update a content tree")
@RequestMapping(value="/v1/contenttrees/{uuid}",
produces="application/json",
method=PUT)
@ApiResponseObject
public ContentTree update(@PathVariable
UUID uuid,
@RequestBody
ContentTree contentTree,
org.springframework.validation.BindingResult errors)
throws IdentifiableServiceException
IdentifiableServiceExceptionCopyright © 2018. All rights reserved.