@RestController
@RequestMapping(value="${crafter.core.rest.base.uri}/site/content_store")
public class SiteContentStoreRestController
extends org.craftercms.core.controller.rest.RestControllerBase
ContentStoreRestController that has already resolved the context automatically.| Constructor and Description |
|---|
SiteContentStoreRestController() |
| Modifier and Type | Method and Description |
|---|---|
List<org.craftercms.core.service.Item> |
getChildren(org.springframework.web.context.request.WebRequest request,
javax.servlet.http.HttpServletResponse response,
String url) |
protected String |
getCurrentContextId() |
org.dom4j.Document |
getDescriptor(org.springframework.web.context.request.WebRequest request,
javax.servlet.http.HttpServletResponse response,
String url) |
org.craftercms.core.service.Item |
getItem(org.springframework.web.context.request.WebRequest request,
javax.servlet.http.HttpServletResponse response,
String url) |
org.craftercms.core.service.Tree |
getTree(org.springframework.web.context.request.WebRequest request,
javax.servlet.http.HttpServletResponse response,
String url,
Integer depth) |
void |
setWrappedController(org.craftercms.core.controller.rest.ContentStoreRestController wrappedController) |
public static final String URL_ROOT
public void setWrappedController(org.craftercms.core.controller.rest.ContentStoreRestController wrappedController)
@RequestMapping(value="/descriptor",
method=GET)
public org.dom4j.Document getDescriptor(org.springframework.web.context.request.WebRequest request,
javax.servlet.http.HttpServletResponse response,
@RequestParam(value="url")
String url)
@RequestMapping(value="/item",
method=GET)
public org.craftercms.core.service.Item getItem(org.springframework.web.context.request.WebRequest request,
javax.servlet.http.HttpServletResponse response,
@RequestParam(value="url")
String url)
@RequestMapping(value="/children",
method=GET)
public List<org.craftercms.core.service.Item> getChildren(org.springframework.web.context.request.WebRequest request,
javax.servlet.http.HttpServletResponse response,
@RequestParam(value="url")
String url)
@RequestMapping(value="/tree",
method=GET)
public org.craftercms.core.service.Tree getTree(org.springframework.web.context.request.WebRequest request,
javax.servlet.http.HttpServletResponse response,
@RequestParam(value="url")
String url,
@RequestParam(value="depth",required=false)
Integer depth)
protected String getCurrentContextId()
Copyright © 2020 CrafterCMS. All rights reserved.