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:
java.io.Serializable
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
DefaultCMSContentPageService
,DefaultCMSPageService
public abstract class AbstractCMSPageService extends AbstractCMSService
Abstract implementation of the business service to manage pages- See Also:
- Serialized Form
-
-
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, CURRENTSITE
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManager
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant
-
-
Constructor Summary
Constructors Constructor Description AbstractCMSPageService()
-
Method Summary
-
Methods inherited from class de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
getBaseSiteService, getCurrentCatalogVersion, getCurrentSite, getSearchRestrictionService, getUserService, setBaseSiteService, setSearchRestrictionService, setUserService
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
-
-
-
Method Detail
-
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 aCMSItemNotFoundException
passed on by one of the suppliers if any.- Parameters:
pagePreviewCriteria
- thePagePreviewCriteriaData
object.defaultSupplier
- aSupplier
invoked no other suppliers is executed.versionSupplier
- aSupplier
invoked if the providedPagePreviewCriteriaData
contains 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
protected AbstractPageModel getPageForId(java.lang.String uid) throws CMSItemNotFoundException
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(java.lang.String versionUid) throws CMSVersionNotFoundException
Return the page associated to a given version uid.- Parameters:
versionUid
- the uid of theCMSVersionModel
.- Returns:
- AbstractPageModel the
AbstractPageModel
that represents the page. - Throws:
CMSVersionNotFoundException
-
getCatalogVersionService
protected CatalogVersionService getCatalogVersionService()
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
getCmsPageDao
protected CMSPageDao getCmsPageDao()
-
setCmsPageDao
public void setCmsPageDao(CMSPageDao cmsPageDao)
-
getCmsRestrictionService
protected CMSRestrictionService getCmsRestrictionService()
-
setCmsRestrictionService
public void setCmsRestrictionService(CMSRestrictionService cmsRestrictionService)
-
getCmsVersionDao
protected CMSVersionDao getCmsVersionDao()
-
setCmsVersionDao
public void setCmsVersionDao(CMSVersionDao cmsVersionDao)
-
getCmsVersionService
protected CMSVersionService getCmsVersionService()
-
setCmsVersionService
public void setCmsVersionService(CMSVersionService cmsVersionService)
-
getCmsVersionSessionContextProvider
protected CMSVersionSessionContextProvider getCmsVersionSessionContextProvider()
-
setCmsVersionSessionContextProvider
public void setCmsVersionSessionContextProvider(CMSVersionSessionContextProvider cmsVersionSessionContextProvider)
-
getSessionSearchRestrictionsDisabler
protected SessionSearchRestrictionsDisabler getSessionSearchRestrictionsDisabler()
-
setSessionSearchRestrictionsDisabler
public void setSessionSearchRestrictionsDisabler(SessionSearchRestrictionsDisabler sessionSearchRestrictionsDisabler)
-
-