Interface CMSRestrictionService
-
- All Known Implementing Classes:
DefaultCMSRestrictionService,RankingCMSRestrictionService
public interface CMSRestrictionServiceThe Interface CMSRestrictionService. Provides methods for managing CMS2 restrictions.- Spring Bean ID:
- cmsRestrictionService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanevaluate(AbstractRestrictionModel restriction, RestrictionData restrictionDataInfo)Evaluates given restriction forRestrictionDatacontext object.booleanevaluateCMSComponent(AbstractCMSComponentModel component, RestrictionData data)Evaluate cms component forRestrictionDatacontext object.java.util.List<AbstractCMSComponentModel>evaluateCMSComponents(java.util.List<AbstractCMSComponentModel> components, RestrictionData data)Evaluate cms components forRestrictionDatacontext object.java.util.Collection<AbstractPageModel>evaluatePages(java.util.Collection<AbstractPageModel> pages, RestrictionData data)Evaluate pages forRestrictionDatacontext object.java.util.Collection<java.lang.String>getCategoryCodesForRestriction(CMSCategoryRestrictionModel restriction)Gets the category codes for restriction.java.util.Collection<java.lang.String>getProductCodesForRestriction(CMSProductRestrictionModel restriction)Gets the product codes for restriction.
-
-
-
Method Detail
-
evaluate
boolean evaluate(AbstractRestrictionModel restriction, RestrictionData restrictionDataInfo) throws RestrictionEvaluationException
Evaluates given restriction forRestrictionDatacontext object.- Parameters:
restriction- the restrictionrestrictionDataInfo- the restriction data info- Returns:
- true, if successful
- Throws:
RestrictionEvaluationException- the restriction evaluation exception
-
evaluateCMSComponent
boolean evaluateCMSComponent(AbstractCMSComponentModel component, RestrictionData data)
Evaluate cms component forRestrictionDatacontext object.- Parameters:
component- the componentdata- the data- Returns:
- true, if successful
-
evaluateCMSComponents
java.util.List<AbstractCMSComponentModel> evaluateCMSComponents(java.util.List<AbstractCMSComponentModel> components, RestrictionData data)
Evaluate cms components forRestrictionDatacontext object.- Parameters:
components- the componentsdata- the data- Returns:
- the list
-
evaluatePages
java.util.Collection<AbstractPageModel> evaluatePages(java.util.Collection<AbstractPageModel> pages, RestrictionData data)
Evaluate pages forRestrictionDatacontext object.- Parameters:
pages- the pagesdata- the data- Returns:
- the collection
-
getCategoryCodesForRestriction
java.util.Collection<java.lang.String> getCategoryCodesForRestriction(CMSCategoryRestrictionModel restriction)
Gets the category codes for restriction.- Parameters:
restriction- the restriction- Returns:
- the category codes for restriction
-
getProductCodesForRestriction
java.util.Collection<java.lang.String> getProductCodesForRestriction(CMSProductRestrictionModel restriction)
Gets the product codes for restriction.- Parameters:
restriction- the restriction- Returns:
- the product codes for restriction
-
-