Class WebsiteController
- java.lang.Object
-
- de.digitalcollections.cudami.server.controller.identifiable.entity.WebsiteController
-
@RestController @Api(description="The website controller", name="Website controller") public class WebsiteController extends Object
-
-
Constructor Summary
Constructors Constructor Description WebsiteController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcount()de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.Website>findAll(int pageNumber, int pageSize, String sortField, de.digitalcollections.model.api.paging.enums.Direction sortDirection, de.digitalcollections.model.api.paging.enums.NullHandling nullHandling)de.digitalcollections.model.api.identifiable.entity.WebsitefindById(UUID uuid)de.digitalcollections.model.api.identifiable.entity.Websitesave(de.digitalcollections.model.api.identifiable.entity.Website website, org.springframework.validation.BindingResult errors)de.digitalcollections.model.api.identifiable.entity.Websiteupdate(UUID uuid, de.digitalcollections.model.api.identifiable.entity.Website website, org.springframework.validation.BindingResult errors)
-
-
-
Method Detail
-
findAll
@ApiMethod(description="Get all websites") @GetMapping(value={"/latest/websites","/v2/websites"}, produces="application/json") @ApiResponseObject public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.Website> findAll(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize, @RequestParam(name="sortField",required=false,defaultValue="lastModified") String sortField, @RequestParam(name="sortDirection",required=false,defaultValue="DESC") de.digitalcollections.model.api.paging.enums.Direction sortDirection, @RequestParam(name="nullHandling",required=false,defaultValue="NATIVE") de.digitalcollections.model.api.paging.enums.NullHandling nullHandling)
-
findById
@ApiMethod(description="Get website by uuid") @GetMapping(value={"/latest/websites/{uuid}","/v2/websites/{uuid}"}, produces="application/json") @ApiResponseObject public de.digitalcollections.model.api.identifiable.entity.Website findById(@PathVariable UUID uuid)
-
save
@ApiMethod(description="Save a newly created website") @PostMapping(value={"/latest/websites","/v2/websites"}, produces="application/json") @ApiResponseObject public de.digitalcollections.model.api.identifiable.entity.Website save(@RequestBody de.digitalcollections.model.api.identifiable.entity.Website website, org.springframework.validation.BindingResult errors) throws IdentifiableServiceException- Throws:
IdentifiableServiceException
-
update
@ApiMethod(description="Update a website") @PutMapping(value={"/latest/websites/{uuid}","/v2/websites/{uuid}"}, produces="application/json") @ApiResponseObject public de.digitalcollections.model.api.identifiable.entity.Website update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.api.identifiable.entity.Website website, org.springframework.validation.BindingResult errors) throws IdentifiableServiceException- Throws:
IdentifiableServiceException
-
count
@ApiMethod(description="Get count of content trees") @GetMapping(value={"/latest/websites/count","/v2/websites/count"}, produces="application/json") @ApiResponseObject public long count()
-
-