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