Interface CMSAdminTypeRestrictionsService

    • 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 restrictions
        contentSlot - - 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 restrictions
        contentSlot - - 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 restrictions
        contentSlot - - 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