Class V5CollectionController


  • @RestController
    public class V5CollectionController
    extends Object
    • 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