Class CMSItemController
java.lang.Object
de.hybris.platform.cmswebservices.cmsitems.controller.CMSItemController
@Controller
@RequestMapping("/v1/sites/{siteId}/cmsitems")
public class CMSItemController
extends Object
Generic controller to deal with CMS items (Components, Pages, Restrictions, etc...). Any item that extends CMSItem is
supported using this interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCMSItem(Map<String, Object> inputMap, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) findCmsItems(CMSItemSearchWsDTO cmsItemSearchInfo, PageableWsDTO pageableInfo) getCMSItemByUUid(String uuid, String fields) getCMSItemByUUidAndVersion(String versionId, String uuid) protected CMSItemFacadeprotected org.springframework.beans.factory.ObjectFactory<CMSVersionData>protected CMSVersionFacadeprotected DataMapperprotected LocationHeaderResourceprotected WebPaginationUtilsvoidremoveCMSItembyUUid(String uuid) voidsetCmsItemFacade(CMSItemFacade cmsItemFacade) voidsetCmsVersionDataDataFactory(org.springframework.beans.factory.ObjectFactory<CMSVersionData> cmsVersionDataDataFactory) voidsetCmsVersionFacade(CMSVersionFacade cmsVersionFacade) voidsetDataMapper(DataMapper dataMapper) voidsetLocationHeaderResource(LocationHeaderResource locationHeaderResource) voidsetWebPaginationUtils(WebPaginationUtils webPaginationUtils) updateCMSItem(String uuid, Map<String, Object> inputMap) validateCMSItemForCreation(Boolean dryRun, Map<String, Object> inputMap, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
Constructor Details
-
CMSItemController
public CMSItemController()
-
-
Method Details
-
getCMSItemByUUid
@RequestMapping(value="/{uuid}", method=GET) @ResponseStatus(OK) @ResponseBody public Map<String,Object> getCMSItemByUUid(@PathVariable String uuid, @RequestParam(required=false) String fields) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
getCMSItemByUUidAndVersion
-
removeCMSItembyUUid
@RequestMapping(value="/{uuid}", method=DELETE) @ResponseStatus(NO_CONTENT) public void removeCMSItembyUUid(@PathVariable String uuid) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
createCMSItem
@RequestMapping(method=POST) @ResponseStatus(CREATED) @ResponseBody public Map<String,Object> createCMSItem(@RequestBody Map<String, Object> inputMap, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
validateCMSItemForCreation
@RequestMapping(method=POST, params="dryRun=true") @ResponseStatus(OK) @ResponseBody public Map<String,Object> validateCMSItemForCreation(@RequestParam("dryRun") Boolean dryRun, @RequestBody Map<String, Object> inputMap, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
updateCMSItem
@RequestMapping(value="/{uuid}", method=PUT) @ResponseStatus(OK) @ResponseBody public Map<String,Object> updateCMSItem(@PathVariable String uuid, @RequestBody Map<String, Object> inputMap) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
validateCMSItemForUpdate
@RequestMapping(value="/{uuid}", method=PUT, params="dryRun=true") @ResponseStatus(OK) @ResponseBody public Map<String,Object> validateCMSItemForUpdate(@RequestParam("dryRun") Boolean dryRun, @PathVariable String uuid, @RequestBody Map<String, Object> inputMap) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
findCmsItemsByUuidsInBody
@RequestMapping(value="/uuids", method=POST) @ResponseBody public Map<String,Object> findCmsItemsByUuidsInBody(@RequestBody CMSItemUuidListWsDTO dto) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
findCmsItems
@RequestMapping(method=GET, params={"pageSize","currentPage"}) @ResponseBody public Map<String,Object> findCmsItems(@ModelAttribute CMSItemSearchWsDTO cmsItemSearchInfo, @ModelAttribute PageableWsDTO pageableInfo) -
getCmsItemFacade
-
setCmsItemFacade
-
getDataMapper
-
setDataMapper
-
getWebPaginationUtils
-
setWebPaginationUtils
-
getLocationHeaderResource
-
setLocationHeaderResource
-
getCmsVersionFacade
-
setCmsVersionFacade
-
getCmsVersionDataDataFactory
protected org.springframework.beans.factory.ObjectFactory<CMSVersionData> getCmsVersionDataDataFactory() -
setCmsVersionDataDataFactory
public void setCmsVersionDataDataFactory(org.springframework.beans.factory.ObjectFactory<CMSVersionData> cmsVersionDataDataFactory)
-