java.lang.Object
de.digitalcollections.cudami.server.controller.identifiable.entity.TopicController

@RestController
public class TopicController
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    TopicController​(LocaleService localeService, TopicService topicService)  
  • Method Summary

    Modifier and Type Method Description
    org.springframework.http.ResponseEntity<java.lang.Boolean> addChild​(java.util.UUID parentTopicUuid, java.util.UUID subtopicUuid)  
    long count()  
    de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> findAll​(int pageNumber, int pageSize, java.util.List<de.digitalcollections.model.paging.Order> sortBy, java.lang.String searchTerm)  
    de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> findAllTop​(int pageNumber, int pageSize, java.util.List<de.digitalcollections.model.paging.Order> sortBy, java.lang.String searchTerm)  
    org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.Topic> findById​(java.util.UUID uuid, java.util.Locale pLocale)  
    org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.Topic> findByRefId​(long refId)  
    org.springframework.http.ResponseEntity<de.digitalcollections.model.view.BreadcrumbNavigation> getBreadcrumb​(java.util.UUID uuid, java.util.Locale pLocale)  
    java.util.List<de.digitalcollections.model.identifiable.entity.Entity> getEntities​(java.util.UUID uuid)  
    de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Entity> getEntities​(java.util.UUID topicUuid, int pageNumber, int pageSize, de.digitalcollections.model.filter.FilterCriterion<java.lang.String> entityType)  
    de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource> getFileResources​(java.util.UUID uuid, int pageNumber, int pageSize)  
    java.util.List<java.util.Locale> getLanguagesOfEntities​(java.util.UUID uuid)  
    java.util.List<java.util.Locale> getLanguagesOfFileResources​(java.util.UUID uuid)  
    de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> getSubtopics​(java.util.UUID topicUuid, int pageNumber, int pageSize, java.util.List<de.digitalcollections.model.paging.Order> sortBy, java.lang.String searchTerm)  
    java.util.List<java.util.Locale> getTopTopicsLanguages()  
    de.digitalcollections.model.identifiable.entity.Topic save​(de.digitalcollections.model.identifiable.entity.Topic topic, org.springframework.validation.BindingResult errors)  
    java.util.List<de.digitalcollections.model.identifiable.entity.Entity> saveEntities​(java.util.UUID uuid, java.util.List<de.digitalcollections.model.identifiable.entity.Entity> entities)  
    java.util.List<de.digitalcollections.model.identifiable.resource.FileResource> saveFileresources​(java.util.UUID uuid, java.util.List<de.digitalcollections.model.identifiable.resource.FileResource> fileResources)  
    de.digitalcollections.model.identifiable.entity.Topic saveWithParentTopic​(java.util.UUID parentTopicUuid, de.digitalcollections.model.identifiable.entity.Topic topic, org.springframework.validation.BindingResult errors)  
    de.digitalcollections.model.identifiable.entity.Topic update​(java.util.UUID uuid, de.digitalcollections.model.identifiable.entity.Topic topic, org.springframework.validation.BindingResult errors)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • addChild

      @PostMapping(value={"/v5/topics/{parentTopicUuid}/subtopic/{subtopicUuid}","/v3/topics/{parentTopicUuid}/subtopic/{subtopicUuid}","/latest/topics/{parentTopicUuid}/subtopic/{subtopicUuid}"}, produces="application/json") public org.springframework.http.ResponseEntity<java.lang.Boolean> addChild​(@PathVariable java.util.UUID parentTopicUuid, @PathVariable java.util.UUID subtopicUuid) throws IdentifiableServiceException
      Throws:
      IdentifiableServiceException
    • count

      @GetMapping(value={"/v5/topics/count","/v2/topics/count","/latest/topics/count"}, produces="application/json") public long count()
    • findAll

      @GetMapping(value={"/v5/topics","/v2/topics","/latest/topics"}, produces="application/json") public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> findAll​(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize, @RequestParam(name="sortBy",required=false) java.util.List<de.digitalcollections.model.paging.Order> sortBy, @RequestParam(name="searchTerm",required=false) java.lang.String searchTerm)
    • findAllTop

      @GetMapping(value={"/v5/topics/top","/v3/topics/top","/latest/topics/top"}, produces="application/json") public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> findAllTop​(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="5") int pageSize, @RequestParam(name="sortBy",required=false) java.util.List<de.digitalcollections.model.paging.Order> sortBy, @RequestParam(name="searchTerm",required=false) java.lang.String searchTerm)
    • findById

      @GetMapping(value={"/v5/topics/{uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}}","/v2/topics/{uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}}","/latest/topics/{uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}}"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.Topic> findById​(@PathVariable("uuid") java.util.UUID uuid, @RequestParam(name="pLocale",required=false) java.util.Locale pLocale) throws IdentifiableServiceException
      Throws:
      IdentifiableServiceException
    • findByRefId

      @GetMapping(value={"/v5/topics/{refId:[0-9]+}","/v3/topics/{refId:[0-9]+}","/latest/topics/{refId:[0-9]+}"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.Topic> findByRefId​(@PathVariable long refId) throws IdentifiableServiceException
      Throws:
      IdentifiableServiceException
    • getSubtopics

      @GetMapping(value="/v5/topics/{uuid}/subtopics", produces="application/json") public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> getSubtopics​(@PathVariable("uuid") java.util.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) java.util.List<de.digitalcollections.model.paging.Order> sortBy, @RequestParam(name="searchTerm",required=false) java.lang.String searchTerm)
    • getBreadcrumb

      @GetMapping(value={"/v5/topics/{uuid}/breadcrumb","/v3/topics/{uuid}/breadcrumb","/latest/topics/{uuid}/breadcrumb"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.view.BreadcrumbNavigation> getBreadcrumb​(@PathVariable("uuid") java.util.UUID uuid, @RequestParam(name="pLocale",required=false) java.util.Locale pLocale)
    • getEntities

      @GetMapping(value={"/v5/topics/{uuid}/entities/all","/v3/topics/{uuid}/entities/all","/latest/topics/{uuid}/entities/all"}, produces="application/json") public java.util.List<de.digitalcollections.model.identifiable.entity.Entity> getEntities​(@PathVariable java.util.UUID uuid)
    • getEntities

      @GetMapping(value={"/v5/topics/{uuid}/entities","/v3/topics/{uuid}/entities","/latest/topics/{uuid}/entities"}, produces="application/json") public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Entity> getEntities​(@PathVariable("uuid") java.util.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.filter.FilterCriterion<java.lang.String> entityType)
    • getFileResources

      @GetMapping(value={"/v5/topics/{uuid}/fileresources","/v3/topics/{uuid}/fileresources","/latest/topics/{uuid}/fileresources"}, produces="application/json") public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource> getFileResources​(@PathVariable java.util.UUID uuid, @RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize)
    • getLanguagesOfEntities

      @GetMapping(value="/v5/topics/{uuid}/entities/languages", produces="application/json") public java.util.List<java.util.Locale> getLanguagesOfEntities​(@PathVariable java.util.UUID uuid)
    • getLanguagesOfFileResources

      @GetMapping(value="/v5/topics/{uuid}/fileresources/languages", produces="application/json") public java.util.List<java.util.Locale> getLanguagesOfFileResources​(@PathVariable java.util.UUID uuid)
    • getTopTopicsLanguages

      @GetMapping(value={"/v5/topics/top/languages","/v3/topics/top/languages","/latest/topics/top/languages"}, produces="application/json") public java.util.List<java.util.Locale> getTopTopicsLanguages()
    • save

      @PostMapping(value={"/v5/topics","/v2/topics","/latest/topics"}, produces="application/json") public de.digitalcollections.model.identifiable.entity.Topic save​(@RequestBody de.digitalcollections.model.identifiable.entity.Topic topic, org.springframework.validation.BindingResult errors) throws IdentifiableServiceException, ValidationException
      Throws:
      IdentifiableServiceException
      ValidationException
    • saveEntities

      @PostMapping(value={"/v5/topics/{uuid}/entities","/v3/topics/{uuid}/entities","/latest/topics/{uuid}/entities"}, produces="application/json") public java.util.List<de.digitalcollections.model.identifiable.entity.Entity> saveEntities​(@PathVariable java.util.UUID uuid, @RequestBody java.util.List<de.digitalcollections.model.identifiable.entity.Entity> entities)
    • saveFileresources

      @PostMapping(value={"/v5/topics/{uuid}/fileresources","/v3/topics/{uuid}/fileresources","/latest/topics/{uuid}/fileresources"}, produces="application/json") public java.util.List<de.digitalcollections.model.identifiable.resource.FileResource> saveFileresources​(@PathVariable java.util.UUID uuid, @RequestBody java.util.List<de.digitalcollections.model.identifiable.resource.FileResource> fileResources)
    • saveWithParentTopic

      @PostMapping(value={"/v5/topics/{parentTopicUuid}/subtopic","/v3/topics/{parentTopicUuid}/subtopic","/latest/topics/{parentTopicUuid}/subtopic"}, produces="application/json") public de.digitalcollections.model.identifiable.entity.Topic saveWithParentTopic​(@PathVariable java.util.UUID parentTopicUuid, @RequestBody de.digitalcollections.model.identifiable.entity.Topic topic, org.springframework.validation.BindingResult errors) throws IdentifiableServiceException, ValidationException
      Throws:
      IdentifiableServiceException
      ValidationException
    • update

      @PutMapping(value={"/v5/topics/{uuid}","/v2/topics/{uuid}","/latest/topics/{uuid}"}, produces="application/json") public de.digitalcollections.model.identifiable.entity.Topic update​(@PathVariable java.util.UUID uuid, @RequestBody de.digitalcollections.model.identifiable.entity.Topic topic, org.springframework.validation.BindingResult errors) throws IdentifiableServiceException, ValidationException
      Throws:
      IdentifiableServiceException
      ValidationException