public class DefaultCxRecalculationService extends java.lang.Object implements CxRecalculationService
CxRecalculationService.| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultCxRecalculationService.RecalculationConfigData |
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ASYNC_PROCESS_PREFIX |
protected static int |
ASYNC_PROCESS_PREFIX_LENGTH |
protected static java.lang.String |
UPDATE_PREFIX |
protected static int |
UPDATE_PREFIX_LENGTH |
| Constructor and Description |
|---|
DefaultCxRecalculationService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
asyncRecalculate(UserModel user,
java.util.Set<java.lang.String> asyncProcessProviders) |
protected void |
calculateAndLoadInSession(UserModel user) |
protected int |
compareActionOrder(RecalculateAction a1,
RecalculateAction a2) |
protected CxCalculationContext |
createCalculationContext(java.util.Set<java.lang.String> providers) |
protected DefaultCxRecalculationService.RecalculationConfigData |
createRecalculationConfigData(java.util.List<RecalculateAction> recalculateActions) |
protected CxService |
getCxService() |
protected java.util.List<RecalculateAction> |
getOrderedActionList() |
protected CxSegmentService |
getSegmentService() |
protected UserService |
getUserService() |
protected void |
loadResult(UserModel user) |
void |
recalculate(java.util.List<RecalculateAction> recalculateActions)
Recalculates experience for current user.
|
void |
recalculate(UserModel user,
java.util.List<RecalculateAction> recalculateActions)
Recalculates experience for given user.
|
void |
setCxService(CxService cxService) |
void |
setOrderedActionList(java.util.List<RecalculateAction> orderedActionList) |
void |
setSegmentService(CxSegmentService segmentService) |
void |
setUserService(UserService userService) |
protected void |
updateSegments(UserModel user,
java.util.Set<java.lang.String> updateProviders) |
protected static final java.lang.String UPDATE_PREFIX
protected static final int UPDATE_PREFIX_LENGTH
protected static final java.lang.String ASYNC_PROCESS_PREFIX
protected static final int ASYNC_PROCESS_PREFIX_LENGTH
public void recalculate(java.util.List<RecalculateAction> recalculateActions)
CxRecalculationServicerecalculate in interface CxRecalculationServicerecalculateActions - Recalculation actions to be triggered.public void recalculate(UserModel user, java.util.List<RecalculateAction> recalculateActions)
CxRecalculationServicerecalculate in interface CxRecalculationServiceuser - User for which experience should be recalculated.recalculateActions - Recalculation actions to be triggered.protected DefaultCxRecalculationService.RecalculationConfigData createRecalculationConfigData(java.util.List<RecalculateAction> recalculateActions)
protected int compareActionOrder(RecalculateAction a1, RecalculateAction a2)
protected void calculateAndLoadInSession(UserModel user)
protected void asyncRecalculate(UserModel user, java.util.Set<java.lang.String> asyncProcessProviders)
protected void loadResult(UserModel user)
protected void updateSegments(UserModel user, java.util.Set<java.lang.String> updateProviders)
protected CxCalculationContext createCalculationContext(java.util.Set<java.lang.String> providers)
protected CxService getCxService()
public void setCxService(CxService cxService)
protected UserService getUserService()
public void setUserService(UserService userService)
protected CxSegmentService getSegmentService()
public void setSegmentService(CxSegmentService segmentService)
protected java.util.List<RecalculateAction> getOrderedActionList()
public void setOrderedActionList(java.util.List<RecalculateAction> orderedActionList)
Copyright © 2018 SAP SE. All Rights Reserved.