Class WebsiteController

    • Constructor Detail

      • WebsiteController

        public WebsiteController​(WebsiteService websiteService)
    • Method Detail

      • count

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

        @GetMapping(value="/v6/websites",
                    produces="application/json")
        public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Website> 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,
                                                                                                                                  @RequestParam(name="label",required=false)
                                                                                                                                  String labelTerm,
                                                                                                                                  @RequestParam(name="labelLanguage",required=false)
                                                                                                                                  Locale labelLanguage)
      • findRootPages

        @GetMapping(value="/v6/websites/{uuid}/rootpages",
                    produces="application/json")
        public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.web.Webpage> findRootPages​(@PathVariable("uuid")
                                                                                                                                        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)
                                                                                                                                        String searchTerm)
      • getByUuid

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

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

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

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