| Constructor and Description |
|---|
DefaultCxService() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<CxAbstractActionResult> |
calculateActionResults(UserModel user,
java.util.Collection<CxVariationModel> variations) |
void |
calculateAndLoadPersonalizationInSession(UserModel user)
Calculate personalization for user, all configured catalog versions and loads it in the session.
|
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,
java.util.Collection<CxVariationModel> variations)
Calculate personalization for user, catalog version and variation and load it in the session.
|
void |
calculateAndStorePersonalization(UserModel user)
Calculates personalization for user and stores it.
|
void |
calculateAndStorePersonalization(UserModel user,
CatalogVersionModel catalogVersion)
Calculates personalization for user and stores it.
|
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) |
protected CxActionResultService |
getActionResultService() |
java.util.List<CxAbstractActionResult> |
getActionResultsFromSession(UserModel user)
Returned action results stored in session for the user and all configured catalog version.
|
java.util.List<CxAbstractActionResult> |
getActionResultsFromSession(UserModel user,
CatalogVersionModel catalogVersion)
Returned action results stored in session for the user and catalog version.
|
protected ActionService |
getActionService() |
protected CxActionService |
getCxActionService() |
protected CxCatalogService |
getCxCatalogService() |
protected CxProcessService |
getCxProcessService() |
protected CxVariationService |
getCxVariationService() |
boolean |
isPersonalizationInCatalog(CatalogVersionModel catalogVersion)
Deprecated.
since 6.6
|
void |
loadPersonalizationInSession(UserModel user)
Load calculated personalization for user and all configured catalog version from the database to the session.
|
void |
loadPersonalizationInSession(UserModel user,
java.util.Collection<CatalogVersionModel> catalogVersions)
Load calculated personalization for user and catalog version from the database to the session.
|
void |
setActionService(ActionService actionService) |
void |
setCxActionResultService(CxActionResultService actionResultService) |
void |
setCxActionService(CxActionService cxActionService) |
void |
setCxCatalogService(CxCatalogService cxCatalogService) |
void |
setCxProcessService(CxProcessService cxProcessService) |
void |
setCxVariationService(CxVariationService cxVariationService) |
java.util.List<CxPersonalizationProcessModel> |
startPersonalizationCalculationProcesses(UserModel user)
Update the customer experience through the process engine (asynchronous).
|
java.util.List<CxPersonalizationProcessModel> |
startPersonalizationCalculationProcesses(UserModel user,
java.util.Collection<CatalogVersionModel> catalogVersions)
Update the customer experience through the process engine (asynchronous).
|
public java.util.List<CxPersonalizationProcessModel> startPersonalizationCalculationProcesses(UserModel user)
CxServicestartPersonalizationCalculationProcesses in interface CxServiceuser - for which personalization should be calculatedpublic java.util.List<CxPersonalizationProcessModel> startPersonalizationCalculationProcesses(UserModel user, java.util.Collection<CatalogVersionModel> catalogVersions)
CxServicestartPersonalizationCalculationProcesses in interface CxServiceuser - for which personalization should be calculatedcatalogVersions - collection of catalog versions for which personalization should be calculatedpublic void calculateAndStorePersonalization(UserModel user)
CxServicecalculateAndStorePersonalization in interface CxServiceuser - User for which customization variations should be calculatedpublic 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)
CxServiceloadPersonalizationInSession in interface CxServiceuser - for which personalization will be loadedpublic void loadPersonalizationInSession(UserModel user, java.util.Collection<CatalogVersionModel> catalogVersions)
CxServiceloadPersonalizationInSession in interface CxServiceuser - for which personalization will be loadedcatalogVersions - for which personalization will be loadedpublic void calculateAndLoadPersonalizationInSession(UserModel user)
CxServicecalculateAndLoadPersonalizationInSession in interface CxServiceuser - for which personalization will be calculated and loadedpublic void calculateAndLoadPersonalizationInSession(UserModel user, CatalogVersionModel catalogVersion)
CxServicecalculateAndLoadPersonalizationInSession in interface CxServiceuser - for which personalization will be calculated and loadedcatalogVersion - for which personalization will be calculated and loadedpublic void calculateAndLoadPersonalizationInSession(UserModel cxContextUser, CatalogVersionModel catalogVersion, java.util.Collection<CxVariationModel> variations)
CxServicecalculateAndLoadPersonalizationInSession in interface CxServicecxContextUser - for which personalization will be loadedcatalogVersion - for which personalization will be calculated and loadedvariations - for which personalization will be calculatedpublic java.util.List<CxAbstractActionResult> getActionResultsFromSession(UserModel user)
CxServicegetActionResultsFromSession in interface CxServiceuser - for which action results will be returnedpublic java.util.List<CxAbstractActionResult> getActionResultsFromSession(UserModel user, CatalogVersionModel catalogVersion)
CxServicegetActionResultsFromSession in interface CxServiceuser - for which personalization will be returnedcatalogVersion - for which personalization will be returnedprotected java.util.List<CxAbstractActionResult> calculateActionResults(UserModel user, java.util.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 related@Deprecated public boolean isPersonalizationInCatalog(CatalogVersionModel catalogVersion)
CxServiceisPersonalizationInCatalog in interface CxServicecatalogVersion - to checkpublic void setActionService(ActionService actionService)
public void setCxVariationService(CxVariationService cxVariationService)
public void setCxActionResultService(CxActionResultService actionResultService)
public void setCxActionService(CxActionService cxActionService)
public void setCxProcessService(CxProcessService cxProcessService)
public void setCxCatalogService(CxCatalogService cxCatalogService)
protected ActionService getActionService()
protected CxActionService getCxActionService()
protected CxVariationService getCxVariationService()
protected CxActionResultService getActionResultService()
protected CxProcessService getCxProcessService()
protected CxCatalogService getCxCatalogService()
Copyright © 2018 SAP SE. All Rights Reserved.