Interface PageContentSlotTypeRestrictionsFacade
- All Known Implementing Classes:
DefaultPageContentSlotTypeRestrictionsFacade
public interface PageContentSlotTypeRestrictionsFacade
CMS Content slot facade used to fetch content slot details (ie: positions), and reposition components from slot to
slot.
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<ContentSlotTypeRestrictionsData>getTypeRestrictionsForContentSlots(CMSPageContentSlotListData contentSlotListData) Fetches type restrictions for each content slot.getTypeRestrictionsForContentSlotUID(String pageUid, String contentSlotUid) Fetches type restrictions for the given content slot on a given page.
-
Method Details
-
getTypeRestrictionsForContentSlotUID
ContentSlotTypeRestrictionsData getTypeRestrictionsForContentSlotUID(String pageUid, String contentSlotUid) throws CMSItemNotFoundException Fetches type restrictions for the given content slot on a given page. The content slot is searched on the current catalog version and all the active versions of each of the parent catalogs.- Parameters:
pageUid- Page UIDcontentSlotUid- Content slot UID- Returns:
- Type restrictions for the given content slot on the page; never null
- Throws:
CMSItemNotFoundException- Thrown in case not find type restrictions passing pageUID
-
getTypeRestrictionsForContentSlots
default List<ContentSlotTypeRestrictionsData> getTypeRestrictionsForContentSlots(CMSPageContentSlotListData contentSlotListData) throws CMSItemNotFoundException Fetches type restrictions for each content slot. The content slots are searched on the current catalog version and all the active versions of each of the parent catalogs. Note: Can retrieve type restrictions for page or template slots.- Parameters:
contentSlotListData- - Object containing the information about the slots for which to retrieve their type restrictions- Returns:
- Type restrictions for every content slots; never null
- Throws:
CMSItemNotFoundException- Thrown in case not find type restrictions passing pageUID
-