public class DefaultCMSRestrictionService extends AbstractCMSService implements CMSRestrictionService
AbstractService.SerializableDTO| Modifier and Type | Field and Description |
|---|---|
protected CMSRestrictionDao |
cmsRestrictionDao
Deprecated.
Implement the CMSRestrictionDao as own property
|
CURRENTCATALOGVERSION, CURRENTSITEmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultCMSRestrictionService() |
getBaseSiteService, getCurrentCatalogVersion, getCurrentSite, getSearchRestrictionService, getUserService, setBaseSiteService, setSearchRestrictionService, setUserServicegetModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, setTenantScope, writeReplace@Deprecated protected CMSRestrictionDao cmsRestrictionDao
public boolean evaluate(AbstractRestrictionModel restriction, RestrictionData restrictionDataInfo) throws RestrictionEvaluationException
RestrictionData context object.evaluate in interface CMSRestrictionServicerestriction - the restrictionrestrictionDataInfo - the restriction data infoRestrictionEvaluationException - the restriction evaluation exception@Deprecated public boolean evaluate(CMSCatalogRestrictionModel restriction, RestrictionData data) throws RestrictionEvaluationException
evaluate(AbstractRestrictionModel, RestrictionData)
instead.CMSRestrictionServiceRestrictionData context object.evaluate in interface CMSRestrictionServicerestriction - the restrictiondata - the dataRestrictionEvaluationException - the restriction evaluation exception@Deprecated public boolean evaluate(CMSCategoryRestrictionModel restriction, RestrictionData data) throws RestrictionEvaluationException
evaluate(AbstractRestrictionModel, RestrictionData)
instead.CMSRestrictionServiceRestrictionData context object.evaluate in interface CMSRestrictionServicerestriction - the restrictiondata - the dataRestrictionEvaluationException - the restriction evaluation exception@Deprecated public boolean evaluate(CMSProductRestrictionModel restriction, RestrictionData data) throws RestrictionEvaluationException
evaluate(AbstractRestrictionModel, RestrictionData)
instead.CMSRestrictionServiceRestrictionData context object.evaluate in interface CMSRestrictionServicerestriction - the restrictiondata - the dataRestrictionEvaluationException - the restriction evaluation exception@Deprecated public boolean evaluate(CMSTimeRestrictionModel restriction) throws RestrictionEvaluationException
evaluate(AbstractRestrictionModel, RestrictionData)
instead.CMSRestrictionServiceRestrictionData context object.evaluate in interface CMSRestrictionServicerestriction - the restrictionRestrictionEvaluationException - the restriction evaluation exception@Deprecated public boolean evaluate(CMSUserGroupRestrictionModel restriction) throws RestrictionEvaluationException
evaluate(AbstractRestrictionModel, RestrictionData)
instead.CMSRestrictionServiceRestrictionData context object.evaluate in interface CMSRestrictionServicerestriction - the restrictionRestrictionEvaluationException - the restriction evaluation exception@Deprecated public boolean evaluate(CMSUserRestrictionModel restriction) throws RestrictionEvaluationException
evaluate(AbstractRestrictionModel, RestrictionData)
instead.CMSRestrictionServiceRestrictionData context object.evaluate in interface CMSRestrictionServicerestriction - the restrictionRestrictionEvaluationException - the restriction evaluation exceptionpublic boolean evaluateCMSComponent(AbstractCMSComponentModel component, RestrictionData data)
RestrictionData context object.evaluateCMSComponent in interface CMSRestrictionServicecomponent - the componentdata - the datapublic List<AbstractCMSComponentModel> evaluateCMSComponents(List<AbstractCMSComponentModel> components, RestrictionData data)
RestrictionData context object.evaluateCMSComponents in interface CMSRestrictionServicecomponents - the componentsdata - the datapublic Collection<AbstractPageModel> evaluatePages(Collection<AbstractPageModel> pages, RestrictionData data)
RestrictionData context object.evaluatePages in interface CMSRestrictionServicepages - the pagesdata - the datapublic Collection<String> getCategoryCodesForRestriction(CMSCategoryRestrictionModel restriction)
getCategoryCodesForRestriction in interface CMSRestrictionServicerestriction - the restrictionpublic Collection<String> getProductCodesForRestriction(CMSProductRestrictionModel restriction)
getProductCodesForRestriction in interface CMSRestrictionServicerestriction - the restriction@Deprecated public void setCmsRestrictionDao(CMSRestrictionDao cmsRestrictionDao)
public void setEvaluatorRegistry(CMSRestrictionEvaluatorRegistry evaluatorRegistry)
evaluatorRegistry - the evaluatorRegistry to setprotected boolean evaluate(List<AbstractRestrictionModel> restrictions, RestrictionData data, boolean oneRestrictionApply)
protected boolean evaluateAnyRestriction(AbstractRestrictionModel restrictionModel, RestrictionData context) throws RestrictionEvaluationException
RestrictionEvaluationExceptionprotected Collection<AbstractPageModel> getDefaultPages(Collection<AbstractPageModel> pages)
@Deprecated protected List<PrincipalGroupModel> getSubgroups(Collection<PrincipalGroupModel> groups)
protected String createMoreThanOneDefaultPageWarning(Collection<AbstractPageModel> defaultPages)
Copyright © 2017 SAP SE. All Rights Reserved.