public class DefaultBTGEvaluationService extends java.lang.Object implements BTGEvaluationService
| Constructor and Description |
|---|
DefaultBTGEvaluationService() |
| Modifier and Type | Method and Description |
|---|---|
void |
evaluateAllSegments(UserGroupModel userGroup,
CMSSiteModel website,
BTGEvaluationContext context,
java.util.Collection<CatalogVersionModel> catalogVersion)
Evaluates for all users in userGroup all active segments for specific website and scope using evaluation method
|
void |
evaluateAllSegments(UserModel user,
CMSSiteModel website,
BTGEvaluationContext context)
Evaluates for user all active segments for specific website and scope using evaluation method
|
void |
evaluateAllSegments(UserModel user,
CMSSiteModel website,
BTGEvaluationContext context,
java.util.Collection<CatalogVersionModel> catalogVersion)
Evaluates for user all active segments for specific website and scope using evaluation method
|
void |
evaluateAllSegments(UserModel user,
java.util.List<CMSSiteModel> websites,
BTGEvaluationContext context)
Evaluates for user all active segments for specific websites and scope using evaluation method
|
void |
evaluateAllSegments(UserModel user,
java.util.List<CMSSiteModel> websites,
BTGEvaluationContext context,
java.util.Collection<CatalogVersionModel> catalogVersion)
Evaluates for user all active segments for specific websites and scope using evaluation method
|
boolean |
evaluateRule(UserModel user,
BTGRuleModel rule,
BTGEvaluationContext context)
Evaluate specified rule for user by using evaluation method and scope
|
boolean |
evaluateSegment(UserModel user,
BTGSegmentModel segment,
BTGEvaluationContext context)
Evaluate specified segment for user by using evaluation method and scope
|
void |
setCatalogVersionService(CatalogVersionService catalogVersionService) |
void |
setRuleEvaluatorRegistry(RuleEvaluatorRegistry ruleEvaluatorRegistry) |
void |
setSegmentEvaluatorRegistry(SegmentEvaluatorRegistry segmentEvaluatorRegistry) |
void |
setSegmentService(SegmentService segmentService) |
public void evaluateAllSegments(UserModel user, CMSSiteModel website, BTGEvaluationContext context) throws SegmentEvaluationException
BTGEvaluationServiceevaluateAllSegments in interface BTGEvaluationServiceuser - User for which the segments should be evaluatedwebsite - Evaluate segments for this websitecontext - Context object containing settings for the evaluationSegmentEvaluationExceptionpublic void evaluateAllSegments(UserModel user, CMSSiteModel website, BTGEvaluationContext context, java.util.Collection<CatalogVersionModel> catalogVersion) throws SegmentEvaluationException
BTGEvaluationServiceevaluateAllSegments in interface BTGEvaluationServiceuser - User for which the segments should be evaluatedwebsite - Evaluate segments for this websitecontext - Context object containing settings for the evaluationcatalogVersion - catalog version for which segments are evaluatedSegmentEvaluationExceptionpublic void evaluateAllSegments(UserModel user, java.util.List<CMSSiteModel> websites, BTGEvaluationContext context) throws SegmentEvaluationException
BTGEvaluationServiceevaluateAllSegments in interface BTGEvaluationServiceuser - User for which the segments should be evaluatedwebsites - Evaluate segments for those websitescontext - Context object containing settings for the evaluationSegmentEvaluationExceptionpublic void evaluateAllSegments(UserModel user, java.util.List<CMSSiteModel> websites, BTGEvaluationContext context, java.util.Collection<CatalogVersionModel> catalogVersion) throws SegmentEvaluationException
BTGEvaluationServiceevaluateAllSegments in interface BTGEvaluationServiceuser - User for which the segments should be evaluatedwebsites - Evaluate segments for those websitescontext - Context object containing settings for the evaluationcatalogVersion - catalog version for which segments are evaluatedSegmentEvaluationExceptionpublic void evaluateAllSegments(UserGroupModel userGroup, CMSSiteModel website, BTGEvaluationContext context, java.util.Collection<CatalogVersionModel> catalogVersion) throws SegmentEvaluationException
BTGEvaluationServiceevaluateAllSegments in interface BTGEvaluationServiceuserGroup - userGroup for which the segments should be evaluatedwebsite - Evaluate segments for this websitecontext - Context object containing settings for the evaluationcatalogVersion - catalog version for which segments are evaluatedSegmentEvaluationExceptionpublic boolean evaluateSegment(UserModel user, BTGSegmentModel segment, BTGEvaluationContext context) throws SegmentEvaluationException
BTGEvaluationServiceevaluateSegment in interface BTGEvaluationServiceuser - User that can fulfilled segmentsegment - Segment we are checkingcontext - Context object containing settings for the evaluationSegmentEvaluationExceptionpublic boolean evaluateRule(UserModel user, BTGRuleModel rule, BTGEvaluationContext context) throws RuleEvaluationException
BTGEvaluationServiceevaluateRule in interface BTGEvaluationServiceuser - User that can fulfilled segmentrule - Rule we are checkingcontext - Context object containing settings for the evaluationRuleEvaluationExceptionpublic void setSegmentEvaluatorRegistry(SegmentEvaluatorRegistry segmentEvaluatorRegistry)
segmentEvaluatorRegistry - the segmentEvaluatorRegistry to setpublic void setCatalogVersionService(CatalogVersionService catalogVersionService)
catalogVersionService - the catalogVersionService to setpublic void setRuleEvaluatorRegistry(RuleEvaluatorRegistry ruleEvaluatorRegistry)
public void setSegmentService(SegmentService segmentService)
segmentService - the segmentService to setCopyright © 2018 SAP SE. All Rights Reserved.