Class V5CollectionController
- java.lang.Object
-
- de.digitalcollections.cudami.server.controller.identifiable.entity.V5CollectionController
-
@RestController public class V5CollectionController extends Object
-
-
Constructor Summary
Constructors Constructor Description V5CollectionController(CollectionService collectionService, LocaleService localeService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<String>find(int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, String searchTerm, String active)org.springframework.http.ResponseEntity<String>findDigitalObjects(UUID collectionUuid, int pageNumber, int pageSize, String searchTerm)org.springframework.http.ResponseEntity<String>findSubcollections(UUID collectionUuid, int pageNumber, int pageSize, String active, List<de.digitalcollections.model.list.sorting.Order> sortBy, String searchTerm)org.springframework.http.ResponseEntity<String>findTopCollections(int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, String searchTerm)
-
-
-
Constructor Detail
-
V5CollectionController
public V5CollectionController(CollectionService collectionService, LocaleService localeService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
find
@GetMapping(value={"/v5/collections/search","/v5/collections"}, produces="application/json") public org.springframework.http.ResponseEntity<String> find(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="5") int pageSize, @RequestParam(name="sortBy",required=false) List<de.digitalcollections.model.list.sorting.Order> sortBy, @RequestParam(name="searchTerm",required=false) String searchTerm, @RequestParam(name="active",required=false) String active) throws CudamiControllerException- Throws:
CudamiControllerException
-
findDigitalObjects
@GetMapping(value="/v5/collections/{uuid}/digitalobjects", produces="application/json") public org.springframework.http.ResponseEntity<String> findDigitalObjects(@PathVariable("uuid") UUID collectionUuid, @RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize, @RequestParam(name="searchTerm",required=false) String searchTerm) throws CudamiControllerException- Throws:
CudamiControllerException
-
findSubcollections
@GetMapping(value="/v5/collections/{uuid}/subcollections", produces="application/json") public org.springframework.http.ResponseEntity<String> findSubcollections(@PathVariable("uuid") UUID collectionUuid, @RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize, @RequestParam(name="active",required=false) String active, @RequestParam(name="sortBy",required=false) List<de.digitalcollections.model.list.sorting.Order> sortBy, @RequestParam(name="searchTerm",required=false) String searchTerm) throws CudamiControllerException- Throws:
CudamiControllerException
-
findTopCollections
@GetMapping(value={"/v5/collections/top","/v2/collections/top","/latest/collections/top"}, produces="application/json") public org.springframework.http.ResponseEntity<String> findTopCollections(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="5") int pageSize, @RequestParam(name="sortBy",required=false) List<de.digitalcollections.model.list.sorting.Order> sortBy, @RequestParam(name="searchTerm",required=false) String searchTerm) throws CudamiControllerException- Throws:
CudamiControllerException
-
-