Class V3WebpageController
java.lang.Object
de.digitalcollections.cudami.server.controller.identifiable.web.V3WebpageController
@RestController
public class V3WebpageController
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description V3WebpageController(LocaleService localeService, WebpageService webpageService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and Type Method Description org.springframework.http.ResponseEntity<java.lang.String>getWebpageChildren(java.util.UUID uuid, int pageNumber, int pageSize, java.util.List<de.digitalcollections.model.paging.Order> sortBy, java.lang.String active)org.springframework.http.ResponseEntity<java.lang.String>getWebpageChildrenTree(java.util.UUID uuid, java.lang.String active)org.springframework.http.ResponseEntity<java.lang.String>getWebpageJson(java.util.UUID uuid, java.util.Locale pLocale, java.lang.String active)org.springframework.http.ResponseEntity<java.lang.String>getWebpageXml(java.util.UUID uuid, java.util.Locale pLocale, java.lang.String active)
-
Constructor Details
-
V3WebpageController
public V3WebpageController(LocaleService localeService, WebpageService webpageService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getWebpageJson
@GetMapping(value="/v3/webpages/{uuid}", produces="application/json") public org.springframework.http.ResponseEntity<java.lang.String> getWebpageJson(@PathVariable("uuid") java.util.UUID uuid, @RequestParam(name="pLocale",required=false) java.util.Locale pLocale, @RequestParam(name="active",required=false) java.lang.String active) throws IdentifiableServiceException, com.fasterxml.jackson.core.JsonProcessingException- Throws:
IdentifiableServiceExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
getWebpageXml
@GetMapping(value="/v3/webpages/{uuid}", produces="application/xml") public org.springframework.http.ResponseEntity<java.lang.String> getWebpageXml(@PathVariable("uuid") java.util.UUID uuid, @RequestParam(name="pLocale",required=false) java.util.Locale pLocale, @RequestParam(name="active",required=false) java.lang.String active) throws IdentifiableServiceException, java.io.IOException- Throws:
IdentifiableServiceExceptionjava.io.IOException
-
getWebpageChildren
@GetMapping(value={"/v3/webpages/{uuid}/children","/latest/webpages/{uuid}/children"}, produces="application/json") public org.springframework.http.ResponseEntity<java.lang.String> getWebpageChildren(@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="sortBy",required=false) java.util.List<de.digitalcollections.model.paging.Order> sortBy, @RequestParam(name="active",required=false) java.lang.String active) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getWebpageChildrenTree
@GetMapping(value="/v3/webpages/{uuid}/childrentree", produces="application/json") public org.springframework.http.ResponseEntity<java.lang.String> getWebpageChildrenTree(@PathVariable("uuid") java.util.UUID uuid, @RequestParam(name="active",required=false) java.lang.String active) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-