Class AbstractCMSPageService
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSPageService
- All Implemented Interfaces:
Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
DefaultCMSContentPageService,DefaultCMSPageService
Abstract implementation of the business service to manage pages
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO -
Field Summary
Fields inherited from class de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
CURRENTCATALOGVERSION, CURRENTSITEFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CatalogVersionServiceprotected Comparator<AbstractPageModel>protected CMSPageDaoprotected CMSRestrictionServiceprotected CMSVersionDaoprotected CMSVersionServiceprotected CMSVersionSessionContextProviderprotected <T> TgetItemByCriteria(PagePreviewCriteriaData pagePreviewCriteria, ThrowableSupplier<T> defaultSupplier, ThrowableSupplier<T> versionSupplier) Returns a value that executes the function with one of the provided suppliers.protected AbstractPageModelgetPageForId(String uid) Returns the page associated to a given uid.protected AbstractPageModelgetPageForVersionUid(String versionUid) Return the page associated to a given version uid.protected SessionSearchRestrictionsDisablervoidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetCmsItemCatalogLevelComparator(Comparator<AbstractPageModel> cmsItemCatalogLevelComparator) voidsetCmsPageDao(CMSPageDao cmsPageDao) voidsetCmsRestrictionService(CMSRestrictionService cmsRestrictionService) voidsetCmsVersionDao(CMSVersionDao cmsVersionDao) voidsetCmsVersionService(CMSVersionService cmsVersionService) voidsetCmsVersionSessionContextProvider(CMSVersionSessionContextProvider cmsVersionSessionContextProvider) voidsetSessionSearchRestrictionsDisabler(SessionSearchRestrictionsDisabler sessionSearchRestrictionsDisabler) Methods inherited from class de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
getBaseSiteService, getCurrentCatalogVersion, getCurrentSite, getSearchRestrictionService, getUserService, setBaseSiteService, setSearchRestrictionService, setUserServiceMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Constructor Details
-
AbstractCMSPageService
public AbstractCMSPageService()
-
-
Method Details
-
getItemByCriteria
protected <T> T getItemByCriteria(PagePreviewCriteriaData pagePreviewCriteria, ThrowableSupplier<T> defaultSupplier, ThrowableSupplier<T> versionSupplier) Returns a value that executes the function with one of the provided suppliers. It executes a supplier if its associated predicate returns true. It can also throw aCMSItemNotFoundExceptionpassed on by one of the suppliers if any.- Parameters:
pagePreviewCriteria- thePagePreviewCriteriaDataobject.defaultSupplier- aSupplierinvoked no other suppliers is executed.versionSupplier- aSupplierinvoked if the providedPagePreviewCriteriaDatacontains a valid versionUid.- Returns:
- the result returned after one of the suppliers' execution; never null
- Throws:
CMSItemNotFoundException- when one of the suppliers throws an exception
-
getPageForId
Returns the page associated to a given uid.- Parameters:
uid- the page id- Returns:
- the page matching the provided uid
- Throws:
CMSItemNotFoundException- thrown when item was not found
-
getPageForVersionUid
protected AbstractPageModel getPageForVersionUid(String versionUid) throws CMSVersionNotFoundException Return the page associated to a given version uid.- Parameters:
versionUid- the uid of theCMSVersionModel.- Returns:
- AbstractPageModel the
AbstractPageModelthat represents the page. - Throws:
CMSVersionNotFoundException
-
getCatalogVersionService
-
getCmsItemCatalogLevelComparator
-
setCmsItemCatalogLevelComparator
public void setCmsItemCatalogLevelComparator(Comparator<AbstractPageModel> cmsItemCatalogLevelComparator) -
setCatalogVersionService
-
getCmsPageDao
-
setCmsPageDao
-
getCmsRestrictionService
-
setCmsRestrictionService
-
getCmsVersionDao
-
setCmsVersionDao
-
getCmsVersionService
-
setCmsVersionService
-
getCmsVersionSessionContextProvider
-
setCmsVersionSessionContextProvider
public void setCmsVersionSessionContextProvider(CMSVersionSessionContextProvider cmsVersionSessionContextProvider) -
getSessionSearchRestrictionsDisabler
-
setSessionSearchRestrictionsDisabler
public void setSessionSearchRestrictionsDisabler(SessionSearchRestrictionsDisabler sessionSearchRestrictionsDisabler)
-