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

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

    Constructors 
    Constructor Description
    WebsiteController​(WebsiteService websiteService)  
  • Method Summary

    Modifier and Type Method Description
    long count()  
    de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.entity.Website> findAll​(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.Website> findById​(java.util.UUID uuid)  
    java.util.List<java.util.Locale> getLanguages()  
    de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.web.Webpage> getRootPages​(java.util.UUID uuid, int pageNumber, int pageSize, java.lang.String searchTerm)  
    de.digitalcollections.model.identifiable.entity.Website save​(de.digitalcollections.model.identifiable.entity.Website website, org.springframework.validation.BindingResult errors)  
    de.digitalcollections.model.identifiable.entity.Website update​(java.util.UUID uuid, de.digitalcollections.model.identifiable.entity.Website website, org.springframework.validation.BindingResult errors)  
    org.springframework.http.ResponseEntity updateRootPagesOrder​(java.util.UUID uuid, java.util.List<de.digitalcollections.model.identifiable.web.Webpage> rootPages)  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • count

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

      @GetMapping(value="/v5/websites", produces="application/json") public de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.entity.Website> 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)
    • findById

      @GetMapping(value="/v5/websites/{uuid}", produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.Website> findById​(@PathVariable java.util.UUID uuid) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • getLanguages

      @GetMapping(value={"/v5/websites/languages","/v2/websites/languages","/latest/websites/languages"}, produces="application/json") public java.util.List<java.util.Locale> getLanguages()
    • getRootPages

      @GetMapping(value="/v5/websites/{uuid}/rootpages", produces="application/json") public de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.web.Webpage> getRootPages​(@PathVariable("uuid") java.util.UUID uuid, @RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize, @RequestParam(name="searchTerm",required=false) java.lang.String searchTerm)
    • save

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

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

      @PutMapping(value={"/v5/websites/{uuid}/rootpages","/v3/websites/{uuid}/rootpages","/latest/websites/{uuid}/rootpages"}, produces="application/json") public org.springframework.http.ResponseEntity updateRootPagesOrder​(@PathVariable("uuid") java.util.UUID uuid, @RequestBody java.util.List<de.digitalcollections.model.identifiable.web.Webpage> rootPages)