Class V3WebpageController
java.lang.Object
de.digitalcollections.cudami.server.controller.identifiable.web.V3WebpageController
-
Constructor Summary
ConstructorsConstructorDescriptionV3WebpageController(LocaleService localeService, WebpageService webpageService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String>findChildren(UUID uuid, int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, String active) org.springframework.http.ResponseEntity<String>getByUuidV3Json(UUID uuid, Locale pLocale, String active) org.springframework.http.ResponseEntity<String>getByUuidV3Xml(UUID uuid, Locale pLocale, String active) org.springframework.http.ResponseEntity<String>getChildrenTree(UUID uuid, String active)
-
Constructor Details
-
V3WebpageController
public V3WebpageController(LocaleService localeService, WebpageService webpageService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getByUuidV3Json
@GetMapping(value={"/v3/webpages/{uuid}.json","/v3/webpages/{uuid}"}, produces="application/json") public org.springframework.http.ResponseEntity<String> getByUuidV3Json(@PathVariable("uuid") UUID uuid, @RequestParam(name="pLocale",required=false) Locale pLocale, @RequestParam(name="active",required=false) String active) throws ServiceException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
ServiceExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
getByUuidV3Xml
@GetMapping(value={"/v3/webpages/{uuid}","/v3/webpages/{uuid}.xml"}, produces="application/xml") public org.springframework.http.ResponseEntity<String> getByUuidV3Xml(@PathVariable("uuid") UUID uuid, @RequestParam(name="pLocale",required=false) Locale pLocale, @RequestParam(name="active",required=false) String active) throws ServiceException, IOException - Throws:
ServiceExceptionIOException
-
findChildren
@GetMapping(value={"/v3/webpages/{uuid}/children","/latest/webpages/{uuid}/children"}, produces="application/json") public org.springframework.http.ResponseEntity<String> findChildren(@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.list.sorting.Order> sortBy, @RequestParam(name="active",required=false) String active) throws com.fasterxml.jackson.core.JsonProcessingException, CudamiControllerException, ServiceException - Throws:
com.fasterxml.jackson.core.JsonProcessingExceptionCudamiControllerExceptionServiceException
-
getChildrenTree
@GetMapping(value="/v3/webpages/{uuid}/childrentree", produces="application/json") public org.springframework.http.ResponseEntity<String> getChildrenTree(@PathVariable("uuid") UUID uuid, @RequestParam(name="active",required=false) String active) throws com.fasterxml.jackson.core.JsonProcessingException, ServiceException - Throws:
com.fasterxml.jackson.core.JsonProcessingExceptionServiceException
-