Class PageContentSlotTypeRestrictionController
java.lang.Object
de.hybris.platform.cmswebservices.pagescontentslotstyperestrictions.controller.PageContentSlotTypeRestrictionController
@Controller
@RequestMapping("/v1/catalogs/{catalogId}/versions/{versionId}/pages/{pageId}")
public class PageContentSlotTypeRestrictionController
extends Object
Controller that provides type restrictions for CMS content slots.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DataMapperprotected PageContentSlotTypeRestrictionsFacadegetTypeRestrictionsForContentSlot(String pageId, String slotId) searchTypeRestrictionBySlotIds(String pageId, CMSContentSlotIdListWsDTO data) voidsetDataMapper(DataMapper dataMapper) voidsetPageContentSlotTypeRestrictionsFacade(PageContentSlotTypeRestrictionsFacade pageContentSlotTypeRestrictionsFacade)
-
Constructor Details
-
PageContentSlotTypeRestrictionController
public PageContentSlotTypeRestrictionController()
-
-
Method Details
-
getTypeRestrictionsForContentSlot
@RequestMapping(value="/contentslots/{slotId}/typerestrictions", method=GET) @ResponseBody @ResponseStatus(OK) public ContentSlotTypeRestrictionsWsDTO getTypeRestrictionsForContentSlot(@PathVariable String pageId, @PathVariable String slotId) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
searchTypeRestrictionBySlotIds
@RequestMapping(value="/typerestrictions", method=POST) @ResponseBody @ResponseStatus(OK) public List<ContentSlotTypeRestrictionsWsDTO> searchTypeRestrictionBySlotIds(@PathVariable String pageId, @RequestBody CMSContentSlotIdListWsDTO data) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
getDataMapper
-
setDataMapper
-
getPageContentSlotTypeRestrictionsFacade
-
setPageContentSlotTypeRestrictionsFacade
public void setPageContentSlotTypeRestrictionsFacade(PageContentSlotTypeRestrictionsFacade pageContentSlotTypeRestrictionsFacade)
-