Class DefaultPageTemplateFacade
java.lang.Object
de.hybris.platform.cmsfacades.pagetemplates.impl.DefaultPageTemplateFacade
- All Implemented Interfaces:
PageTemplateFacade
Default implementation of
PageTemplateFacade.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TypePermissionExceptioncreateTypePermissionException(String permissionName, String itemType) Creates a newTypePermissionExceptionwith a localized error messagefindPageTemplateByPageUuid(String pageUuid) Retrieves the page template matching the given page.findPageTemplates(PageTemplateDTO pageTemplateDTO) Retrieves the list of page templates matching the given filters and filtered by type.protected Collection<PageTemplateModel>getAllPageTemplates(CMSPageTypeModel pageType) protected CMSAdminPageServiceprotected List<PageTemplateData>getPageTemplateByPageType(CMSPageTypeModel pageType, Boolean active) protected Converter<PageTemplateModel,PageTemplateData> protected PermissionCRUDServiceprotected SessionSearchRestrictionsDisablerprotected UniqueItemIdentifierServicevoidsetCmsAdminPageService(CMSAdminPageService cmsAdminPageService) voidsetPageTemplateModelConverter(Converter<PageTemplateModel, PageTemplateData> pageTemplateModelConverter) voidsetPermissionCRUDService(PermissionCRUDService permissionCRUDService) voidsetSessionSearchRestrictionsDisabler(SessionSearchRestrictionsDisabler sessionSearchRestrictionsDisabler) voidsetUniqueItemIdentifierService(UniqueItemIdentifierService uniqueItemIdentifierService)
-
Constructor Details
-
DefaultPageTemplateFacade
public DefaultPageTemplateFacade()
-
-
Method Details
-
findPageTemplates
Description copied from interface:PageTemplateFacadeRetrieves the list of page templates matching the given filters and filtered by type. If the user does not have access to the provided page typeCode, thenTypePermissionExceptionis thrown.- Specified by:
findPageTemplatesin interfacePageTemplateFacade- Parameters:
pageTemplateDTO- dto containing search restrictions- Returns:
- a list of
PageTemplateData
-
findPageTemplateByPageUuid
Description copied from interface:PageTemplateFacadeRetrieves the page template matching the given page.- Specified by:
findPageTemplateByPageUuidin interfacePageTemplateFacade- Parameters:
pageUuid- the uuid of a page- Returns:
PageTemplateData
-
getPageTemplateByPageType
protected List<PageTemplateData> getPageTemplateByPageType(CMSPageTypeModel pageType, Boolean active) -
getAllPageTemplates
-
createTypePermissionException
protected TypePermissionException createTypePermissionException(String permissionName, String itemType) Creates a newTypePermissionExceptionwith a localized error message- Parameters:
permissionName- The permission name defined byPermissionsConstantsitemType- The type code of the item- Returns:
- a new
TypePermissionException
-
getCmsAdminPageService
-
setCmsAdminPageService
-
getPageTemplateModelConverter
-
setPageTemplateModelConverter
public void setPageTemplateModelConverter(Converter<PageTemplateModel, PageTemplateData> pageTemplateModelConverter) -
getSessionSearchRestrictionsDisabler
-
setSessionSearchRestrictionsDisabler
public void setSessionSearchRestrictionsDisabler(SessionSearchRestrictionsDisabler sessionSearchRestrictionsDisabler) -
getPermissionCRUDService
-
setPermissionCRUDService
-
getUniqueItemIdentifierService
-
setUniqueItemIdentifierService
-