public class DefaultCxActionResultService extends java.lang.Object implements CxActionResultService
CxActionResultService.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CX_ACTION_RESULTS |
static java.lang.String |
CX_ACTION_RESULTS_TIME |
static java.lang.String |
CX_DEFAULT_ACTION_RESULTS |
| Constructor and Description |
|---|
DefaultCxActionResultService() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearActionResultsInSession(UserModel user,
CatalogVersionModel catalogVersion)
Removes action results from the current session for given user and catalog version
|
protected java.util.Optional<CxResultsModel> |
createActionResults(java.lang.String resultsKey,
UserModel user,
CatalogVersionModel cv,
java.util.List<CxAbstractActionResult> actionResults) |
protected java.util.Optional<CxResultsModel> |
findResults(UserModel user,
CatalogVersionModel catalogVersion) |
protected CxActionResultDao |
getActionResultDao() |
protected int |
getActionResultMaxRepeat() |
java.util.List<CxAbstractActionResult> |
getActionResults(UserModel user,
CatalogVersionModel catalogVersion)
Retrieves action results from the current session for given user and catalog version.
|
protected CxConfigurationService |
getCxConfigurationService() |
java.util.Optional<CxResultsModel> |
getCxResults(UserModel user,
CatalogVersionModel cv)
Returns user result persisted in database
|
protected java.lang.String |
getDefaultResultsKey(UserModel user,
CatalogVersionModel catalogVersion) |
protected DefaultSessionTokenService |
getDefaultSessionTokenService() |
protected ModelService |
getModelService() |
protected java.lang.String |
getResultsKey(UserModel user,
CatalogVersionModel catalogVersion) |
protected java.lang.String |
getResultsTimeKey(UserModel user,
CatalogVersionModel catalogVersion) |
protected SerializationService |
getSerializationService() |
protected SessionService |
getSessionService() |
protected TimeService |
getTimeService() |
protected UserService |
getUserService() |
void |
loadActionResultsInSession(UserModel user,
java.util.Collection<CatalogVersionModel> catalogVersions)
Load action results stored on the persisted user for the catalog versions and store them on the session.
|
protected void |
loadActionResultsInSession(UserModel user,
CxResultsModel r) |
protected void |
loadActionResultsInSessionInternal(UserModel user,
java.util.Collection<CatalogVersionModel> catalogVersions) |
protected void |
saveDefaultResult(CxResultsModel results) |
void |
setActionResultDao(CxActionResultDao actionResultDao) |
void |
setActionResultsInSession(UserModel user,
CatalogVersionModel catalogVersion,
java.util.List<CxAbstractActionResult> actionResults)
Stores action results in the current session for given user and catalog version
|
void |
setCxConfigurationService(CxConfigurationService cxConfigurationService) |
void |
setDefaultSessionTokenService(DefaultSessionTokenService defaultSessionTokenService) |
void |
setModelService(ModelService modelService) |
void |
setSerializationService(SerializationService serializationService) |
void |
setSessionService(SessionService sessionService) |
void |
setTimeService(TimeService timeService) |
void |
setUserService(UserService userService) |
void |
storeActionResults(UserModel user,
CatalogVersionModel cv,
java.util.List<CxAbstractActionResult> actionResults)
Save action results
|
void |
storeDefaultActionResults(UserModel user,
CatalogVersionModel cv,
java.util.List<CxAbstractActionResult> actionResults)
* Save default action results
|
public static final java.lang.String CX_ACTION_RESULTS
public static final java.lang.String CX_ACTION_RESULTS_TIME
public static final java.lang.String CX_DEFAULT_ACTION_RESULTS
public void setActionResultsInSession(UserModel user, CatalogVersionModel catalogVersion, java.util.List<CxAbstractActionResult> actionResults)
CxActionResultServicesetActionResultsInSession in interface CxActionResultServiceuser - user for which action results should be storedcatalogVersion - Catalog versionactionResults - action results to storepublic void loadActionResultsInSession(UserModel user, java.util.Collection<CatalogVersionModel> catalogVersions)
CxActionResultServiceloadActionResultsInSession in interface CxActionResultServiceuser - user to load the action results fromcatalogVersions - catalog versions to load the action results forprotected int getActionResultMaxRepeat()
protected void loadActionResultsInSessionInternal(UserModel user, java.util.Collection<CatalogVersionModel> catalogVersions)
protected java.util.Optional<CxResultsModel> findResults(UserModel user, CatalogVersionModel catalogVersion)
protected void loadActionResultsInSession(UserModel user, CxResultsModel r)
public void storeDefaultActionResults(UserModel user, CatalogVersionModel cv, java.util.List<CxAbstractActionResult> actionResults)
CxActionResultServicestoreDefaultActionResults in interface CxActionResultServiceuser - user for whom we save resultscv - catalog version for which we save resultsactionResults - action results to saveprotected void saveDefaultResult(CxResultsModel results)
public void storeActionResults(UserModel user, CatalogVersionModel cv, java.util.List<CxAbstractActionResult> actionResults)
CxActionResultServicestoreActionResults in interface CxActionResultServiceuser - user for whom we save resultscv - catalog version for which we save resultsactionResults - action results to saveprotected java.util.Optional<CxResultsModel> createActionResults(java.lang.String resultsKey, UserModel user, CatalogVersionModel cv, java.util.List<CxAbstractActionResult> actionResults)
public java.util.Optional<CxResultsModel> getCxResults(UserModel user, CatalogVersionModel cv)
CxActionResultServicegetCxResults in interface CxActionResultServiceuser - user to get results forcv - catalog version for which we retrieve resultpublic void clearActionResultsInSession(UserModel user, CatalogVersionModel catalogVersion)
CxActionResultServiceclearActionResultsInSession in interface CxActionResultServiceuser - for which action results should be removedcatalogVersion - Catalog versionpublic java.util.List<CxAbstractActionResult> getActionResults(UserModel user, CatalogVersionModel catalogVersion)
CxActionResultServicegetActionResults in interface CxActionResultServiceuser - for which action results should be retrievedcatalogVersion - Catalog versionprotected java.lang.String getResultsKey(UserModel user, CatalogVersionModel catalogVersion)
protected java.lang.String getResultsTimeKey(UserModel user, CatalogVersionModel catalogVersion)
protected java.lang.String getDefaultResultsKey(UserModel user, CatalogVersionModel catalogVersion)
protected SessionService getSessionService()
protected CxConfigurationService getCxConfigurationService()
protected SerializationService getSerializationService()
protected ModelService getModelService()
protected TimeService getTimeService()
protected UserService getUserService()
protected DefaultSessionTokenService getDefaultSessionTokenService()
public void setSessionService(SessionService sessionService)
public void setSerializationService(SerializationService serializationService)
public void setModelService(ModelService modelService)
public void setTimeService(TimeService timeService)
public void setCxConfigurationService(CxConfigurationService cxConfigurationService)
public void setUserService(UserService userService)
public void setDefaultSessionTokenService(DefaultSessionTokenService defaultSessionTokenService)
protected CxActionResultDao getActionResultDao()
public void setActionResultDao(CxActionResultDao actionResultDao)
Copyright © 2018 SAP SE. All Rights Reserved.