Class DefaultPageContentSlotTypeRestrictionsFacade
java.lang.Object
de.hybris.platform.cmsfacades.pagescontentslotstyperestrictions.impl.DefaultPageContentSlotTypeRestrictionsFacade
- All Implemented Interfaces:
PageContentSlotTypeRestrictionsFacade
public class DefaultPageContentSlotTypeRestrictionsFacade
extends Object
implements PageContentSlotTypeRestrictionsFacade
Default implementation of
PageContentSlotTypeRestrictionsFacade.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CatalogLevelServiceprotected CatalogVersionServiceprotected CMSAdminContentSlotServiceprotected CMSAdminPageServiceprotected CMSAdminSiteServiceprotected CMSAdminTypeRestrictionsServiceprotected CMSCatalogVersionServiceprotected SessionSearchRestrictionsDisablergetTypeRestrictionsForContentSlots(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.protected ContentSlotTypeRestrictionsDataGet the type restrictions for the given slot.voidsetCatalogLevelService(CatalogLevelService catalogLevelService) voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetCmsAdminContentSlotService(CMSAdminContentSlotService cmsAdminContentSlotService) voidsetCmsAdminPageService(CMSAdminPageService cmsAdminPageService) voidsetCmsAdminSiteService(CMSAdminSiteService cmsAdminSiteService) voidsetCmsAdminTypeRestrictionsService(CMSAdminTypeRestrictionsService cmsAdminTypeRestrictionsService) voidsetCmsCatalogVersionService(CMSCatalogVersionService cmsCatalogVersionService) voidsetCmsContentSlotTypeRestrictionsGetValidator(ContentSlotTypeRestrictionsGetValidator cmsContentSlotTypeRestrictionsGetValidator) voidsetFacadeValidationService(FacadeValidationService facadeValidationService) voidsetSessionSearchRestrictionsDisabler(SessionSearchRestrictionsDisabler sessionSearchRestrictionsDisabler)
-
Constructor Details
-
DefaultPageContentSlotTypeRestrictionsFacade
public DefaultPageContentSlotTypeRestrictionsFacade()
-
-
Method Details
-
getTypeRestrictionsForContentSlotUID
public ContentSlotTypeRestrictionsData getTypeRestrictionsForContentSlotUID(String pageUid, String contentSlotUid) throws CMSItemNotFoundException Description copied from interface:PageContentSlotTypeRestrictionsFacadeFetches 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.- Specified by:
getTypeRestrictionsForContentSlotUIDin interfacePageContentSlotTypeRestrictionsFacade- 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
public List<ContentSlotTypeRestrictionsData> getTypeRestrictionsForContentSlots(CMSPageContentSlotListData contentSlotListData) throws CMSItemNotFoundException Description copied from interface:PageContentSlotTypeRestrictionsFacadeFetches 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.- Specified by:
getTypeRestrictionsForContentSlotsin interfacePageContentSlotTypeRestrictionsFacade- 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
-
getTypeRestrictionsForSlot
protected ContentSlotTypeRestrictionsData getTypeRestrictionsForSlot(AbstractPageModel page, ContentSlotModel slot) Get the type restrictions for the given slot.- Parameters:
page- - The page where to look for the given slotslot- - The slot whose type restrictions to retrieve- Returns:
- An object containing the list of type restrictions applicable to the given slot.
-
getCmsAdminTypeRestrictionsService
-
setCmsAdminTypeRestrictionsService
public void setCmsAdminTypeRestrictionsService(CMSAdminTypeRestrictionsService cmsAdminTypeRestrictionsService) -
getCmsAdminContentSlotService
-
setCmsAdminContentSlotService
-
getCmsAdminPageService
-
setCmsAdminPageService
-
getCatalogLevelService
-
setCatalogLevelService
-
getSessionSearchRestrictionsDisabler
-
setSessionSearchRestrictionsDisabler
public void setSessionSearchRestrictionsDisabler(SessionSearchRestrictionsDisabler sessionSearchRestrictionsDisabler) -
getCmsAdminSiteService
-
setCmsAdminSiteService
-
getCmsCatalogVersionService
-
setCmsCatalogVersionService
-
getCatalogVersionService
-
setCatalogVersionService
-
getFacadeValidationService
-
setFacadeValidationService
-
getCmsContentSlotTypeRestrictionsGetValidator
-
setCmsContentSlotTypeRestrictionsGetValidator
public void setCmsContentSlotTypeRestrictionsGetValidator(ContentSlotTypeRestrictionsGetValidator cmsContentSlotTypeRestrictionsGetValidator)
-