Class V5TopicController


  • @RestController
    public class V5TopicController
    extends Object
    • Constructor Detail

      • V5TopicController

        public V5TopicController​(LocaleService localeService,
                                 TopicService topicService,
                                 com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • Method Detail

      • find

        @GetMapping(value={"/v5/topics","/v2/topics","/latest/topics"},
                    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="25")
                                                                    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
      • findEntities

        @GetMapping(value={"/v5/topics/{uuid}/entities","/v3/topics/{uuid}/entities","/latest/topics/{uuid}/entities"},
                    produces="application/json")
        public org.springframework.http.ResponseEntity<String> findEntities​(@PathVariable("uuid")
                                                                            UUID topicUuid,
                                                                            @RequestParam(name="pageNumber",required=false,defaultValue="0")
                                                                            int pageNumber,
                                                                            @RequestParam(name="pageSize",required=false,defaultValue="25")
                                                                            int pageSize,
                                                                            @RequestParam(name="entityType",required=false)
                                                                            de.digitalcollections.model.list.filtering.FilterCriterion<String> entityType)
                                                                     throws CudamiControllerException
        Throws:
        CudamiControllerException
      • findSubtopics

        @GetMapping(value="/v5/topics/{uuid}/subtopics",
                    produces="application/json")
        public org.springframework.http.ResponseEntity<String> findSubtopics​(@PathVariable("uuid")
                                                                             UUID topicUuid,
                                                                             @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.list.sorting.Order> sortBy,
                                                                             @RequestParam(name="searchTerm",required=false)
                                                                             String searchTerm)
                                                                      throws CudamiControllerException
        Throws:
        CudamiControllerException
      • findFileResources

        @GetMapping(value={"/v5/topics/{uuid}/fileresources","/v3/topics/{uuid}/fileresources","/latest/topics/{uuid}/fileresources"},
                    produces="application/json")
        public org.springframework.http.ResponseEntity<String> findFileResources​(@PathVariable
                                                                                 UUID uuid,
                                                                                 @RequestParam(name="pageNumber",required=false,defaultValue="0")
                                                                                 int pageNumber,
                                                                                 @RequestParam(name="pageSize",required=false,defaultValue="25")
                                                                                 int pageSize)
                                                                          throws CudamiControllerException
        Throws:
        CudamiControllerException
      • findTopTopics

        @GetMapping(value={"/v5/topics/top","/v3/topics/top","/latest/topics/top"},
                    produces="application/json")
        public org.springframework.http.ResponseEntity<String> findTopTopics​(@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