Interface CMSAdminTypeRestrictionsService
-
- All Known Implementing Classes:
DefaultCMSAdminTypeRestrictionsService
public interface CMSAdminTypeRestrictionsServiceService to get the type restrictions for content slots.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<CMSComponentTypeModel>getTypeRestrictionsContentSlotForPage(AbstractPageModel page, ContentSlotModel contentSlot)Get all component type restrictions for a given page and content slot.java.util.Set<CMSComponentTypeModel>getTypeRestrictionsContentSlotForTemplate(PageTemplateModel pageTemplate, ContentSlotModel contentSlot)Get all component type restrictions for a given template and content slot.java.util.Set<CMSComponentTypeModel>getTypeRestrictionsForContentSlot(AbstractPageModel page, ContentSlotModel contentSlot)Get all component type restrictions for a given content slot from two sources of the given page and its master template.
-
-
-
Method Detail
-
getTypeRestrictionsContentSlotForPage
java.util.Set<CMSComponentTypeModel> getTypeRestrictionsContentSlotForPage(AbstractPageModel page, ContentSlotModel contentSlot) throws CMSItemNotFoundException
Get all component type restrictions for a given page and content slot.- Parameters:
page- - the page that contains the content slot for which we want the type restrictionscontentSlot- - the content slot for which we want the type restrictions- Returns:
- a set of component types representing the type restrictions for the content slot or an empty set
- Throws:
CMSItemNotFoundException- when a required CMS item could not be found
-
getTypeRestrictionsContentSlotForTemplate
java.util.Set<CMSComponentTypeModel> getTypeRestrictionsContentSlotForTemplate(PageTemplateModel pageTemplate, ContentSlotModel contentSlot) throws CMSItemNotFoundException
Get all component type restrictions for a given template and content slot.- Parameters:
pageTemplate- - the template that contains the content slot for which we want the type restrictionscontentSlot- - the content slot for which we want the type restrictions- Returns:
- a set of component types representing the type restrictions for the content slot or an empty set
- Throws:
CMSItemNotFoundException- when a required CMS item could not be found
-
getTypeRestrictionsForContentSlot
java.util.Set<CMSComponentTypeModel> getTypeRestrictionsForContentSlot(AbstractPageModel page, ContentSlotModel contentSlot) throws CMSItemNotFoundException
Get all component type restrictions for a given content slot from two sources of the given page and its master template.- Parameters:
page- - the page that contains the content slot for which we want the type restrictionscontentSlot- - the content slot for which we want the type restrictions- Returns:
- a set of component types representing the type restrictions for the content slot or an empty set
- Throws:
CMSItemNotFoundException- when a required CMS item could not be found
-
-