Class RankingCMSRestrictionService
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.DefaultCMSRestrictionService
de.hybris.platform.acceleratorcms.services.impl.RankingCMSRestrictionService
- All Implemented Interfaces:
CMSRestrictionService,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
Subclass of the DefaultCMSRestrictionService that selects the Page that matches the most restrictions.
In the DefaultCMSRestrictionService where multiple pages are allowed to be matched due to satisfied restrictions the
first matching page is returned. In the RankingCMSRestrictionService this behaviour is changes so that the page that
has the most restrictions is returned.
- 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 voidevaluatePageRestrictions(RestrictionData data, NavigableMap<Integer, List<AbstractPageModel>> allowedPages, AbstractPageModel page, List<AbstractRestrictionModel> restrictions) evaluatePages(Collection<AbstractPageModel> pages, RestrictionData data) Evaluate pages forRestrictionDatacontext object.Methods inherited from class de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSRestrictionService
createMoreThanOneDefaultPageWarning, evaluate, evaluate, evaluateAnyRestriction, evaluateCMSComponent, evaluateCMSComponents, getCategoryCodesForRestriction, getCmsCatalogLevelService, getCmsComponentService, getCmsItemCatalogLevelComparator, getCmsRestrictionDao, getDefaultPages, getMultiCountryRestrictedPages, getOwnRestrictionsForComponents, getOwnRestrictionsForPage, getProductCodesForRestriction, getRestrictedPages, getSortedPagesByCatalogLevel, relatedSharedSlots, setCmsCatalogLevelService, setCmsComponentService, setCmsItemCatalogLevelComparator, setCmsRestrictionDao, setEvaluatorRegistryMethods 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
-
RankingCMSRestrictionService
public RankingCMSRestrictionService()
-
-
Method Details
-
evaluatePages
public Collection<AbstractPageModel> evaluatePages(Collection<AbstractPageModel> pages, RestrictionData data) Description copied from class:DefaultCMSRestrictionServiceEvaluate pages forRestrictionDatacontext object.- Specified by:
evaluatePagesin interfaceCMSRestrictionService- Overrides:
evaluatePagesin classDefaultCMSRestrictionService- Parameters:
pages- the pagesdata- the data- Returns:
- the collection
-