org.broadleafcommerce.cms.structure.service
Interface StructuredContentRuleProcessor
- All Known Implementing Classes:
- AbstractStructuredContentRuleProcessor, StructuredContentDefaultRuleProcessor
public interface StructuredContentRuleProcessor
StructuredContent rule processors check each content item to see if it qualifies
for inclusion in the result set.
This is called by StructuredContentService to determine if a given content item
should be returned to the caller.
BLC created rule processors to solve a dependency issue. Some variables to be used
in rule processing are within the scope of the CMS module while others are not.
For example, checking for cart rules would tie the CMS rules engine with a direct
dependency on the cart.
Instead, we've opted to create this interface which allows other components to
add rule-processors as needed.
- Author:
- bpolster.
- See Also:
StructuredContentDefaultRuleProcessor}
checkForMatch
boolean checkForMatch(StructuredContentDTO sc,
Map<String,Object> valueMap)
- Returns true if the passed in
StructuredContent is valid according
to this rule processor.
- Parameters:
sc -
- Returns:
Copyright © 2013. All Rights Reserved.