Class V3CollectionController
- java.lang.Object
-
- de.digitalcollections.cudami.server.controller.identifiable.entity.V3CollectionController
-
@RestController public class V3CollectionController extends Object
-
-
Constructor Summary
Constructors Constructor Description V3CollectionController(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>findAll(int pageNumber, int pageSize, List<de.digitalcollections.model.paging.Order> sortBy, String active)org.springframework.http.ResponseEntity<String>findCollections(int pageNumber, int pageSize, List<de.digitalcollections.model.paging.Order> sortBy, String searchTerm, String active)org.springframework.http.ResponseEntity<String>getDigitalObjects(UUID collectionUuid, int pageNumber, int pageSize, String searchTerm)org.springframework.http.ResponseEntity<String>getSubcollections(UUID collectionUuid, int pageNumber, int pageSize, String active)
-
-
-
Constructor Detail
-
V3CollectionController
public V3CollectionController(CollectionService collectionService, LocaleService localeService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
getDigitalObjects
@GetMapping(value={"/v3/collections/{uuid}/digitalobjects","/latest/collections/{uuid}/digitalobjects"}, produces="application/json") public org.springframework.http.ResponseEntity<String> getDigitalObjects(@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 com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getSubcollections
@GetMapping(value={"/v3/collections/{uuid}/subcollections","/latest/collections/{uuid}/subcollections"}, produces="application/json") public org.springframework.http.ResponseEntity<String> getSubcollections(@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) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
findAll
@GetMapping(value={"/v3/collections","/latest/collections"}, produces="application/json") public org.springframework.http.ResponseEntity<String> findAll(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize, @RequestParam(name="sortBy",required=false) List<de.digitalcollections.model.paging.Order> sortBy, @RequestParam(name="active",required=false) String active) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
findCollections
@GetMapping(value={"/v3/collections/search","/latest/collections/search"}, produces="application/json") public org.springframework.http.ResponseEntity<String> findCollections(@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.paging.Order> sortBy, @RequestParam(name="searchTerm",required=false) String searchTerm, @RequestParam(name="active",required=false) String active) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-