Interface CxActionResultService
- All Known Implementing Classes:
DefaultCxActionResultService
public interface CxActionResultService
Service for operations on action results.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearActionResultsInSession(UserModel user, CatalogVersionModel catalogVersion) Removes action results from the current session for given user and catalog versiongetActionResults(UserModel user, CatalogVersionModel catalogVersion) Retrieves action results from the current session for given user and catalog version.getCxResults(UserModel user, CatalogVersionModel cv) Returns user result persisted in databasevoidloadActionResultsInSession(UserModel user, Collection<CatalogVersionModel> catalogVersions) Load action results stored on the persisted user for the catalog versions and store them on the session.voidsetActionResultsInSession(UserModel user, CatalogVersionModel catalogVersion, List<CxAbstractActionResult> actionResults) Stores action results in the current session for given user and catalog versionvoidstoreActionResults(UserModel user, CatalogVersionModel cv, List<CxAbstractActionResult> actionResults) Save action resultsvoidstoreDefaultActionResults(UserModel user, CatalogVersionModel cv, List<CxAbstractActionResult> actionResults) * Save default action results
-
Method Details
-
setActionResultsInSession
void setActionResultsInSession(UserModel user, CatalogVersionModel catalogVersion, List<CxAbstractActionResult> actionResults) Stores action results in the current session for given user and catalog version- Parameters:
user- user for which action results should be storedcatalogVersion- Catalog versionactionResults- action results to store
-
clearActionResultsInSession
Removes action results from the current session for given user and catalog version- Parameters:
user- for which action results should be removedcatalogVersion- Catalog version
-
getActionResults
Retrieves action results from the current session for given user and catalog version.- Parameters:
user- for which action results should be retrievedcatalogVersion- Catalog version- Returns:
- Collection of action results (may be empty). Not null.
-
loadActionResultsInSession
Load action results stored on the persisted user for the catalog versions and store them on the session.- Parameters:
user- user to load the action results fromcatalogVersions- catalog versions to load the action results for
-
storeActionResults
void storeActionResults(UserModel user, CatalogVersionModel cv, List<CxAbstractActionResult> actionResults) Save action results- Parameters:
user- user for whom we save resultscv- catalog version for which we save resultsactionResults- action results to save- Since:
- 6.4
-
getCxResults
Returns user result persisted in database- Parameters:
user- user to get results forcv- catalog version for which we retrieve result- Returns:
- result for given parameters or Optional.empty
- Since:
- 1811
-
storeDefaultActionResults
void storeDefaultActionResults(UserModel user, CatalogVersionModel cv, List<CxAbstractActionResult> actionResults) * Save default action results- Parameters:
user- user for whom we save resultscv- catalog version for which we save resultsactionResults- action results to save- Since:
- 1811
-