| Constructor and Description |
|---|
DefaultCxService() |
| Modifier and Type | Method and Description |
|---|---|
protected List<CxAbstractActionResult> |
calculateActionResults(UserModel user,
Collection<CxVariationModel> variations) |
void |
calculateAndLoadPersonalizationInSession(UserModel user,
CatalogVersionModel catalogVersion)
Calculate personalization for user and catalog version and load it in the session.
|
void |
calculateAndLoadPersonalizationInSession(UserModel cxContextUser,
CatalogVersionModel catalogVersion,
Collection<CxVariationModel> variations)
Calculate personalization for user, catalog version and variation and load it in the session.
|
void |
calculateAndStorePersonalization(UserModel user,
CatalogVersionModel catalogVersion)
Calculates customization variations for user and store them on the same user.
|
void |
calculatePersonalizationForUser(UserModel user,
CatalogVersionModel catalogVersion)
Calculates personalization for user in given catalog version.
|
void |
calculatePersonalizationForUser(UserModel user,
CatalogVersionModel catalogVersion,
Collection<CxVariationModel> variations)
Calculates personalization using given variations in given catalog version.
|
void |
clearPersonalizationForUser(UserModel user,
CatalogVersionModel catalogVersion)
Clears personalization in session for given user in given catalogVersion
|
void |
clearPersonalizationInSession(UserModel user,
CatalogVersionModel catalogVersion)
Removes calculated personalization for user and catalog version from the session.
|
protected CxContext |
createActionContext(UserModel user) |
protected CxAbstractActionResult |
executeAction(CxAbstractActionModel action,
UserModel user) |
List<CxAbstractActionResult> |
getActionResultsFromSession(UserModel user,
CatalogVersionModel catalogVersion)
Returned action results stored in session for the user and catalog version.
|
void |
loadPersonalizationInSession(UserModel user,
Collection<CatalogVersionModel> catalogVersions)
Load calculated personalization for user and catalog version from the database to the session.
|
void |
setActionService(ActionService actionService) |
void |
setBaseSiteService(BaseSiteService baseSiteService) |
void |
setBusinessProcessService(BusinessProcessService businessProcessService) |
void |
setCxActionResultService(CxActionResultService actionResultService) |
void |
setCxActionService(CxActionService cxActionService) |
void |
setCxPersonalizationBusinessProcessDao(CxPersonalizationBusinessProcessDao cxPersonalizationBusinessProcessDao) |
void |
setCxVariationService(CxVariationService cxVariationService) |
void |
setProcessParameterHelper(ProcessParameterHelper processParameterHelper) |
void |
setProcessSelectionStrategy(ProcessSelectionStrategy processSelectionStrategy) |
CxPersonalizationProcessModel |
startPersonalizationCalculationProcess(UserModel user,
Collection<CatalogVersionModel> catalogVersions)
Update the customer experience through the process engine (asynchronous).
|
public CxPersonalizationProcessModel startPersonalizationCalculationProcess(UserModel user, Collection<CatalogVersionModel> catalogVersions)
CxServicestartPersonalizationCalculationProcess in interface CxServicepublic void calculateAndStorePersonalization(UserModel user, CatalogVersionModel catalogVersion)
CxServicecalculateAndStorePersonalization in interface CxServiceuser - User for which customization variations should be calculatedcatalogVersion - Catalog version to which variations are relatedpublic void loadPersonalizationInSession(UserModel user, Collection<CatalogVersionModel> catalogVersions)
CxServiceloadPersonalizationInSession in interface CxServicepublic void calculateAndLoadPersonalizationInSession(UserModel cxContextUser, CatalogVersionModel catalogVersion, Collection<CxVariationModel> variations)
CxServicecalculateAndLoadPersonalizationInSession in interface CxServicepublic void calculateAndLoadPersonalizationInSession(UserModel user, CatalogVersionModel catalogVersion)
CxServicecalculateAndLoadPersonalizationInSession in interface CxServicepublic List<CxAbstractActionResult> getActionResultsFromSession(UserModel user, CatalogVersionModel catalogVersion)
CxServicegetActionResultsFromSession in interface CxServiceprotected List<CxAbstractActionResult> calculateActionResults(UserModel user, Collection<CxVariationModel> variations)
protected CxAbstractActionResult executeAction(CxAbstractActionModel action, UserModel user)
public void clearPersonalizationInSession(UserModel user, CatalogVersionModel catalogVersion)
CxServiceclearPersonalizationInSession in interface CxServiceuser - User for which customization variations should be removedcatalogVersion - Catalog version to which variation are relatedpublic void setActionService(ActionService actionService)
public void setCxVariationService(CxVariationService cxVariationService)
public void setCxActionResultService(CxActionResultService actionResultService)
public void setCxActionService(CxActionService cxActionService)
public void setBusinessProcessService(BusinessProcessService businessProcessService)
public void setCxPersonalizationBusinessProcessDao(CxPersonalizationBusinessProcessDao cxPersonalizationBusinessProcessDao)
public void setBaseSiteService(BaseSiteService baseSiteService)
public void setProcessSelectionStrategy(ProcessSelectionStrategy processSelectionStrategy)
processSelectionStrategy - the processSelectionStrategy to setpublic void setProcessParameterHelper(ProcessParameterHelper processParameterHelper)
public void calculatePersonalizationForUser(UserModel user, CatalogVersionModel catalogVersion)
CxServicecalculatePersonalizationForUser in interface CxServiceuser - usercatalogVersion - catalogVersionpublic void calculatePersonalizationForUser(UserModel user, CatalogVersionModel catalogVersion, Collection<CxVariationModel> variations)
CxServicecalculatePersonalizationForUser in interface CxServiceuser - usercatalogVersion - target catalogVersionvariations - variations for calculationpublic void clearPersonalizationForUser(UserModel user, CatalogVersionModel catalogVersion)
CxServiceclearPersonalizationForUser in interface CxServiceuser - target usercatalogVersion - target catalogVersionCopyright © 2017 SAP SE. All Rights Reserved.