Package com.day.cq.dam.performance.api
Interface AssetPerformanceTracker
public interface AssetPerformanceTracker
The
AssetPerformanceTracker interface provides the methods for
reading and setting the asset performance record.-
Method Summary
Modifier and TypeMethodDescriptionlonggetAssetClickCount(Asset asset) Gets the asset click count for theasset.longgetAssetImpressionCount(Asset asset) Gets the asset impression count for theasset.voidsetAssetClick(Asset asset, Long count) Sets the asset click count for theasset.voidsetAssetImpression(Asset asset, Long count) Sets the asset impression count for theasset.voidsetAssetPerformance(Asset asset, Long impressionCount, Long clickCount) Sets the asset click and impression count for theasset.
-
Method Details
-
getAssetImpressionCount
Gets the asset impression count for theasset.- Parameters:
asset- the assets whose impression count is to be found- Returns:
- the asset impression count for the asset
-
getAssetClickCount
Gets the asset click count for theasset.- Parameters:
asset- the assets whose click count is to be found- Returns:
- the asset click count for the asset
-
setAssetClick
Sets the asset click count for theasset.- Parameters:
asset- the assets whose click count is to be setcount- the click count to be set- Throws:
PersistenceException- thrown in case of error while setting the asset click count
-
setAssetImpression
Sets the asset impression count for theasset.- Parameters:
asset- the assets whose impression count is to be setcount- the impression count to be set- Throws:
PersistenceException- thrown in case of error while setting the asset impression count
-
setAssetPerformance
void setAssetPerformance(Asset asset, Long impressionCount, Long clickCount) throws PersistenceException Sets the asset click and impression count for theasset.- Parameters:
asset- the assets whose click and impression count is to be setimpressionCount- the impression count to be setclickCount- the click count to be set- Throws:
PersistenceException- thrown in case of error while setting the asset click or impression count
-