@RestController public class TopicController extends AbstractEntityController<de.digitalcollections.model.identifiable.entity.Topic>
  • Field Summary

    Fields inherited from class de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController

    LOGGER
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<Boolean>
    addChild(UUID parentTopicUuid, UUID subtopicUuid)
     
    org.springframework.http.ResponseEntity
    addEntities(UUID topicUuid, List<de.digitalcollections.model.identifiable.entity.Entity> entities)
     
    org.springframework.http.ResponseEntity
    addEntity(UUID topicUuid, UUID entityUuid)
     
    org.springframework.http.ResponseEntity
    addFileResource(UUID topicUuid, UUID fileResourceUuid)
     
    org.springframework.http.ResponseEntity
    addFileResources(UUID topicUuid, List<de.digitalcollections.model.identifiable.resource.FileResource> fileResources)
     
    long
     
    de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic>
    find(int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, de.digitalcollections.model.list.filtering.Filtering filtering)
     
    de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Entity>
    findEntities(UUID topicUuid, int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, de.digitalcollections.model.list.filtering.Filtering filtering)
     
    de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource>
    findFileResources(UUID topicUuid, int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, de.digitalcollections.model.list.filtering.Filtering filtering)
     
    de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic>
    findSubtopics(UUID topicUuid, int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, de.digitalcollections.model.list.filtering.Filtering filtering)
     
    de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic>
    findTopTopics(int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, de.digitalcollections.model.list.filtering.Filtering filtering)
     
    org.springframework.http.ResponseEntity<de.digitalcollections.model.view.BreadcrumbNavigation>
     
    org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.Topic>
    getByRefId(long refId)
     
    org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.Topic>
    getByUuid(UUID uuid, Locale pLocale)
     
    List<de.digitalcollections.model.identifiable.entity.Topic>
     
     
     
    de.digitalcollections.model.identifiable.entity.Topic
     
    protected EntityService<de.digitalcollections.model.identifiable.entity.Topic>
     
    org.springframework.http.ResponseEntity<String>
     
    List<de.digitalcollections.model.identifiable.entity.Topic>
     
    List<de.digitalcollections.model.identifiable.entity.Topic>
     
     
    org.springframework.http.ResponseEntity<Boolean>
    removeChild(UUID parentTopicUuid, UUID subtopicUuid)
     
    org.springframework.http.ResponseEntity
    removeEntity(UUID topicUuid, UUID entityUuid)
     
    org.springframework.http.ResponseEntity
    removeFileResource(UUID topicUuid, UUID fileResourceUuid)
     
    de.digitalcollections.model.identifiable.entity.Topic
    save(de.digitalcollections.model.identifiable.entity.Topic topic, org.springframework.validation.BindingResult errors)
     
    de.digitalcollections.model.identifiable.entity.Topic
    saveWithParentTopic(UUID parentTopicUuid, de.digitalcollections.model.identifiable.entity.Topic topic, org.springframework.validation.BindingResult errors)
     
    org.springframework.http.ResponseEntity
    setEntities(UUID uuid, List<de.digitalcollections.model.identifiable.entity.Entity> entities)
     
    org.springframework.http.ResponseEntity
    setFileresources(UUID uuid, List<de.digitalcollections.model.identifiable.resource.FileResource> fileResources)
     
    de.digitalcollections.model.identifiable.entity.Topic
    update(UUID uuid, de.digitalcollections.model.identifiable.entity.Topic topic, org.springframework.validation.BindingResult errors)
     

    Methods inherited from class de.digitalcollections.cudami.server.controller.identifiable.AbstractIdentifiableController

    extractNamespaceAndId, getByIdentifier, getLanguages

    Methods inherited from class de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController

    buildExampleWithUuid, delete, delete, getByUuid, getByUuidAndLocale

    Methods inherited from class de.digitalcollections.cudami.server.controller.AbstractPagingAndSortingController

    createPageRequest, getFieldType, mergeFilters

    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={"/v6/topics/{parentTopicUuid}/subtopic/{subtopicUuid}","/v5/topics/{parentTopicUuid}/subtopic/{subtopicUuid}","/v3/topics/{parentTopicUuid}/subtopic/{subtopicUuid}","/latest/topics/{parentTopicUuid}/subtopic/{subtopicUuid}"}, produces="application/json") public org.springframework.http.ResponseEntity<Boolean> addChild(@PathVariable UUID parentTopicUuid, @PathVariable UUID subtopicUuid) throws ServiceException
      Throws:
      ServiceException
    • addEntity

      @PostMapping(value="/v6/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}$}/entities/{entityUuid}", produces="application/json") public org.springframework.http.ResponseEntity addEntity(@PathVariable("uuid") UUID topicUuid, @PathVariable("entityUuid") UUID entityUuid) throws ServiceException
      Throws:
      ServiceException
    • addEntities

      @PostMapping(value="/v6/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}$}/entities", produces="application/json") public org.springframework.http.ResponseEntity addEntities(@PathVariable("uuid") UUID topicUuid, @RequestBody List<de.digitalcollections.model.identifiable.entity.Entity> entities) throws ServiceException
      Throws:
      ServiceException
    • addFileResource

      @PostMapping(value="/v6/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}$}/fileresources/{fileResourceUuid}", produces="application/json") public org.springframework.http.ResponseEntity addFileResource(@PathVariable("uuid") UUID topicUuid, @PathVariable("fileResourceUuid") UUID fileResourceUuid) throws ServiceException
      Throws:
      ServiceException
    • addFileResources

      @PostMapping(value="/v6/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}$}/fileresources", produces="application/json") public org.springframework.http.ResponseEntity addFileResources(@PathVariable("uuid") UUID topicUuid, @RequestBody List<de.digitalcollections.model.identifiable.resource.FileResource> fileResources) throws ServiceException
      Throws:
      ServiceException
    • count

      @GetMapping(value={"/v6/topics/count","/v5/topics/count","/v2/topics/count","/latest/topics/count"}, produces="application/json") public long count() throws ServiceException
      Overrides:
      count in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.Topic>
      Throws:
      ServiceException
    • find

      @GetMapping(value="/v6/topics", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> 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="filter",required=false) List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, @RequestParam(name="filtering",required=false) de.digitalcollections.model.list.filtering.Filtering filtering) throws ServiceException
      Overrides:
      find in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.Topic>
      Throws:
      ServiceException
    • findEntities

      @GetMapping(value="/v6/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}$}/entities", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Entity> 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="sortBy",required=false) List<de.digitalcollections.model.list.sorting.Order> sortBy, @RequestParam(name="filter",required=false) List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, @RequestParam(name="filtering",required=false) de.digitalcollections.model.list.filtering.Filtering filtering) throws ServiceException
      Throws:
      ServiceException
    • findFileResources

      @GetMapping(value="/v6/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}$}/fileresources", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource> findFileResources(@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="filter",required=false) List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, @RequestParam(name="filtering",required=false) de.digitalcollections.model.list.filtering.Filtering filtering) throws ServiceException
      Throws:
      ServiceException
    • findSubtopics

      @GetMapping(value="/v6/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}$}/subtopics", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> 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="filter",required=false) List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, @RequestParam(name="filtering",required=false) de.digitalcollections.model.list.filtering.Filtering filtering) throws ServiceException
      Throws:
      ServiceException
    • findTopTopics

      @GetMapping(value="/v6/topics/top", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> 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="filter",required=false) List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, @RequestParam(name="filtering",required=false) de.digitalcollections.model.list.filtering.Filtering filtering) throws ServiceException
      Throws:
      ServiceException
    • getBreadcrumbNavigation

      @GetMapping(value={"/v6/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}$}/breadcrumb","/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}$}/breadcrumb","/v3/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}$}/breadcrumb","/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}$}/breadcrumb"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.view.BreadcrumbNavigation> getBreadcrumbNavigation(@PathVariable("uuid") UUID uuid, @RequestParam(name="pLocale",required=false) Locale pLocale) throws ServiceException
      Throws:
      ServiceException
    • getByRefId

      @GetMapping(value={"/v6/topics/{refId:[0-9]+}","/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> getByRefId(@PathVariable long refId) throws ServiceException
      Overrides:
      getByRefId in class AbstractEntityController<de.digitalcollections.model.identifiable.entity.Topic>
      Throws:
      ServiceException
    • getByUuid

      @GetMapping(value={"/v6/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}$}","/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> getByUuid(@PathVariable("uuid") UUID uuid, @RequestParam(name="pLocale",required=false) Locale pLocale) throws ServiceException
      Throws:
      ServiceException
    • getChildren

      @GetMapping(value={"/v6/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}$}/children","/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}$}/children","/v3/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}$}/children","/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}$}/children"}, produces="application/json") public List<de.digitalcollections.model.identifiable.entity.Topic> getChildren(@PathVariable UUID uuid) throws ServiceException
      Throws:
      ServiceException
    • getLanguagesOfEntities

      @GetMapping(value={"/v6/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}$}/entities/languages","/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}$}/entities/languages"}, produces="application/json") public List<Locale> getLanguagesOfEntities(@PathVariable UUID uuid) throws ServiceException
      Throws:
      ServiceException
    • getLanguagesOfFileResources

      @GetMapping(value={"/v6/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}$}/fileresources/languages","/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}$}/fileresources/languages"}, produces="application/json") public List<Locale> getLanguagesOfFileResources(@PathVariable UUID uuid) throws ServiceException
      Throws:
      ServiceException
    • getParent

      @GetMapping(value={"/v6/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}$}/parent","/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}$}/parent","/v3/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}$}/parent","/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}$}/parent"}, produces="application/json") public de.digitalcollections.model.identifiable.entity.Topic getParent(@PathVariable UUID uuid) throws ServiceException
      Throws:
      ServiceException
    • getService

      protected EntityService<de.digitalcollections.model.identifiable.entity.Topic> getService()
      Specified by:
      getService in class AbstractEntityController<de.digitalcollections.model.identifiable.entity.Topic>
    • getSubtopics

      @GetMapping(value="/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}$}/subtopics", produces="application/json") public org.springframework.http.ResponseEntity<String> getSubtopics(@PathVariable UUID uuid)
    • getTopicsOfEntity

      @GetMapping(value={"/v6/topics/entity/{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}$}","/v5/topics/entity/{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}$}","/v3/topics/entity/{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/entity/{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 List<de.digitalcollections.model.identifiable.entity.Topic> getTopicsOfEntity(@PathVariable UUID uuid) throws ServiceException
      Throws:
      ServiceException
    • getTopicsOfFileResource

      @GetMapping(value={"/v6/topics/fileresource/{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}$}","/v5/topics/fileresource/{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}$}","/v3/topics/fileresource/{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/fileresource/{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 List<de.digitalcollections.model.identifiable.entity.Topic> getTopicsOfFileResource(@PathVariable UUID uuid) throws ServiceException
      Throws:
      ServiceException
    • getTopTopicsLanguages

      @GetMapping(value={"/v6/topics/top/languages","/v5/topics/top/languages","/v3/topics/top/languages","/latest/topics/top/languages"}, produces="application/json") public List<Locale> getTopTopicsLanguages() throws ServiceException
      Throws:
      ServiceException
    • removeChild

      @DeleteMapping(value={"/v6/topics/{parentTopicUuid}/children/{subtopicUuid}","/v5/topics/{parentTopicUuid}/children/{subtopicUuid}","/v3/topics/{parentTopicUuid}/children/{subtopicUuid}","/latest/topics/{parentTopicUuid}/children/{subtopicUuid}"}, produces="application/json") public org.springframework.http.ResponseEntity<Boolean> removeChild(@PathVariable UUID parentTopicUuid, @PathVariable UUID subtopicUuid) throws ServiceException
      Throws:
      ServiceException
    • removeEntity

      @DeleteMapping(value="/v6/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}$}/entities/{entityUuid}", produces="application/json") public org.springframework.http.ResponseEntity removeEntity(@PathVariable("uuid") UUID topicUuid, @PathVariable("entityUuid") UUID entityUuid) throws ServiceException
      Throws:
      ServiceException
    • removeFileResource

      @DeleteMapping(value="/v6/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}$}/fileresources/{fileResourceUuid}", produces="application/json") public org.springframework.http.ResponseEntity removeFileResource(@PathVariable("uuid") UUID topicUuid, @PathVariable("fileResourceUuid") UUID fileResourceUuid) throws ServiceException
      Throws:
      ServiceException
    • save

      @PostMapping(value={"/v6/topics","/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 ServiceException, ValidationException
      Overrides:
      save in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.Topic>
      Throws:
      ServiceException
      ValidationException
    • saveWithParentTopic

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

      @PutMapping(value={"/v6/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}$}/entities","/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}$}/entities","/v3/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}$}/entities","/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}$}/entities"}, produces="application/json") public org.springframework.http.ResponseEntity setEntities(@PathVariable UUID uuid, @RequestBody List<de.digitalcollections.model.identifiable.entity.Entity> entities) throws ServiceException
      Throws:
      ServiceException
    • setFileresources

      @PutMapping(value={"/v6/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}$}/fileresources","/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}$}/fileresources","/v3/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}$}/fileresources","/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}$}/fileresources"}, produces="application/json") public org.springframework.http.ResponseEntity setFileresources(@PathVariable UUID uuid, @RequestBody List<de.digitalcollections.model.identifiable.resource.FileResource> fileResources) throws ServiceException
      Throws:
      ServiceException
    • update

      @PutMapping(value={"/v6/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}$}","/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 de.digitalcollections.model.identifiable.entity.Topic update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.identifiable.entity.Topic topic, org.springframework.validation.BindingResult errors) throws ServiceException, ValidationException
      Overrides:
      update in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.Topic>
      Throws:
      ServiceException
      ValidationException