Package com.day.cq.dam.performance.api
Interface AssetPerformanceTracker
-
public interface AssetPerformanceTracker
TheAssetPerformanceTracker
interface provides the methods for reading and setting the asset performance record.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getAssetClickCount(Asset asset)
Gets the asset click count for theasset
.long
getAssetImpressionCount(Asset asset)
Gets the asset impression count for theasset
.void
setAssetClick(Asset asset, java.lang.Long count)
Sets the asset click count for theasset
.void
setAssetImpression(Asset asset, java.lang.Long count)
Sets the asset impression count for theasset
.void
setAssetPerformance(Asset asset, java.lang.Long impressionCount, java.lang.Long clickCount)
Sets the asset click and impression count for theasset
.
-
-
-
Method Detail
-
getAssetImpressionCount
long getAssetImpressionCount(Asset asset)
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
long getAssetClickCount(Asset asset)
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
void setAssetClick(Asset asset, java.lang.Long count) throws PersistenceException
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
void setAssetImpression(Asset asset, java.lang.Long count) throws PersistenceException
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, java.lang.Long impressionCount, java.lang.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 setclickCount
- the click count to be setimpressionCount
- the impression count to be set- Throws:
PersistenceException
- thrown in case of error while setting the asset click or impression count
-
-