public class DefaultBTGDao extends AbstractItemDao implements BTGDao
flexibleSearchService, modelService| Constructor and Description |
|---|
DefaultBTGDao() |
| Modifier and Type | Method and Description |
|---|---|
BTGConditionResultModel |
createConditionResult(UserModel user,
BTGExpressionModel condition,
BTGResultScope scope,
boolean result,
String jaloSessionId,
boolean forced)
Creates new condition evaluation result
|
BTGRuleResultModel |
createRuleResult(UserModel user,
BTGRuleModel rule,
BTGResultScope scope,
boolean result,
String jaloSessionId,
boolean forced)
Creates new rule evaluation result
|
BTGSegmentResultModel |
createSegmentResult(UserModel user,
BTGSegmentModel segment,
BTGResultScope scope,
boolean result,
String jaloSessionId,
boolean forced)
Creates new segment evaluation result
|
protected List<BTGConditionResultModel> |
findConditionResultEntries(UserModel user,
String sessionId,
BTGRuleModel rule) |
protected List<BTGRuleResultModel> |
findRuleResultEntries(UserModel user,
String sessionId,
BTGSegmentModel segment) |
protected List<BTGSegmentResultModel> |
findSegmentResultEntries(UserModel user,
String sessionId) |
BTGConditionResultModel |
getLastResult(UserModel user,
BTGConditionModel condition,
BTGResultScope resultScope,
String jaloSessionId)
Return last result entry for condition and user
|
BTGRuleResultModel |
getLastResult(UserModel user,
BTGRuleModel condition,
BTGResultScope resultScope,
String jaloSessionId)
Return last result entry for rule and user
|
BTGSegmentResultModel |
getLastResult(UserModel user,
BTGSegmentModel segment,
BTGResultScope resultScope,
String jaloSessionId)
Return last result entry for segment and user
|
Collection<BTGSegmentModel> |
getSegments(Collection<CMSSiteModel> websites,
BTGConditionEvaluationScope scope,
Collection<CatalogVersionModel> catalogVersions)
Return segments for specified arguments
|
boolean |
isConditionResultChanged(UserModel user,
BTGConditionModel condition,
BTGResultScope resultScope,
boolean currentResult,
String jaloSessionId)
|
boolean |
isRuleResultChanged(UserModel user,
BTGRuleModel rule,
BTGResultScope resultScope,
boolean currentResult,
String jaloSessionId)
|
boolean |
isSegmentResultChanged(UserModel user,
BTGSegmentModel segment,
BTGResultScope resultScope,
boolean currentResult,
String jaloSession)
|
void |
moveSessionResults(UserModel user,
String sessionId,
UserModel destUser,
BTGEvaluationContext destContext)
Moves the result data for segments, rules and conditions in the scope of the session with the given session ID to
a new user for the given context.
|
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServicepublic BTGSegmentResultModel getLastResult(UserModel user, BTGSegmentModel segment, BTGResultScope resultScope, String jaloSessionId)
BTGDaogetLastResult in interface BTGDaopublic BTGRuleResultModel getLastResult(UserModel user, BTGRuleModel condition, BTGResultScope resultScope, String jaloSessionId)
BTGDaogetLastResult in interface BTGDaopublic BTGConditionResultModel getLastResult(UserModel user, BTGConditionModel condition, BTGResultScope resultScope, String jaloSessionId)
BTGDaogetLastResult in interface BTGDaopublic boolean isConditionResultChanged(UserModel user, BTGConditionModel condition, BTGResultScope resultScope, boolean currentResult, String jaloSessionId)
BTGDaoisConditionResultChanged in interface BTGDaoresultScope - YTODOcurrentResult - new evaluation result (the most recent one)jaloSessionId - session identifierpublic boolean isRuleResultChanged(UserModel user, BTGRuleModel rule, BTGResultScope resultScope, boolean currentResult, String jaloSessionId)
BTGDaoisRuleResultChanged in interface BTGDaoresultScope - YTODOpublic boolean isSegmentResultChanged(UserModel user, BTGSegmentModel segment, BTGResultScope resultScope, boolean currentResult, String jaloSession)
BTGDaoisSegmentResultChanged in interface BTGDaoresultScope - YTODOpublic Collection<BTGSegmentModel> getSegments(Collection<CMSSiteModel> websites, BTGConditionEvaluationScope scope, Collection<CatalogVersionModel> catalogVersions)
BTGDaogetSegments in interface BTGDaowebsites - CMSSiteModelscope - BTGConditionEvaluationScope - Online or OfflinecatalogVersions - Catalog versionspublic void moveSessionResults(UserModel user, String sessionId, UserModel destUser, BTGEvaluationContext destContext)
BTGDaomoveSessionResults in interface BTGDaouser - the source usersessionId - the ID of the session for which we want to move the results fordestUser - the destination userdestContext - the destination contextprotected List<BTGSegmentResultModel> findSegmentResultEntries(UserModel user, String sessionId)
protected List<BTGRuleResultModel> findRuleResultEntries(UserModel user, String sessionId, BTGSegmentModel segment)
protected List<BTGConditionResultModel> findConditionResultEntries(UserModel user, String sessionId, BTGRuleModel rule)
public BTGConditionResultModel createConditionResult(UserModel user, BTGExpressionModel condition, BTGResultScope scope, boolean result, String jaloSessionId, boolean forced)
BTGDaocreateConditionResult in interface BTGDaopublic BTGRuleResultModel createRuleResult(UserModel user, BTGRuleModel rule, BTGResultScope scope, boolean result, String jaloSessionId, boolean forced)
BTGDaocreateRuleResult in interface BTGDaopublic BTGSegmentResultModel createSegmentResult(UserModel user, BTGSegmentModel segment, BTGResultScope scope, boolean result, String jaloSessionId, boolean forced)
BTGDaocreateSegmentResult in interface BTGDaoCopyright © 2017 SAP SE. All Rights Reserved.