Interface CxActionResultService
-
- All Known Implementing Classes:
DefaultCxActionResultService
public interface CxActionResultServiceService for operations on action results.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearActionResultsInSession(UserModel user, CatalogVersionModel catalogVersion)Removes action results from the current session for given user and catalog versionjava.util.List<CxAbstractActionResult>getActionResults(UserModel user, CatalogVersionModel catalogVersion)Retrieves action results from the current session for given user and catalog version.java.util.Optional<CxResultsModel>getCxResults(UserModel user, CatalogVersionModel cv)Returns user result persisted in databasevoidloadActionResultsInSession(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.voidsetActionResultsInSession(UserModel user, CatalogVersionModel catalogVersion, java.util.List<CxAbstractActionResult> actionResults)Stores action results in the current session for given user and catalog versionvoidstoreActionResults(UserModel user, CatalogVersionModel cv, java.util.List<CxAbstractActionResult> actionResults)Save action resultsvoidstoreDefaultActionResults(UserModel user, CatalogVersionModel cv, java.util.List<CxAbstractActionResult> actionResults)* Save default action results
-
-
-
Method Detail
-
setActionResultsInSession
void setActionResultsInSession(UserModel user, CatalogVersionModel catalogVersion, java.util.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
void clearActionResultsInSession(UserModel user, CatalogVersionModel catalogVersion)
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
java.util.List<CxAbstractActionResult> getActionResults(UserModel user, CatalogVersionModel catalogVersion)
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
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.- Parameters:
user- user to load the action results fromcatalogVersions- catalog versions to load the action results for
-
storeActionResults
void storeActionResults(UserModel user, CatalogVersionModel cv, java.util.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
java.util.Optional<CxResultsModel> getCxResults(UserModel user, CatalogVersionModel cv)
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, java.util.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
-
-