Package com.day.cq.dam.usage.api
Interface UsageReplicationService
-
public interface UsageReplicationService
The Interface UsageReplicationService provide APIs for replicating the asset usage information between shared system.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isSharedAsset(Asset asset)
Checks if is asset is shred between systemvoid
replicateAssetUsageRecord(Asset asset, AssetUsageRecord usageRecord)
Replicate the asset usage record with the shared system.
-
-
-
Method Detail
-
isSharedAsset
boolean isSharedAsset(Asset asset)
Checks if is asset is shred between system- Parameters:
asset
- the asset to check- Returns:
- true, if is asset is shared between system
-
replicateAssetUsageRecord
void replicateAssetUsageRecord(Asset asset, AssetUsageRecord usageRecord) throws PersistenceException, ReplicationException
Replicate the asset usage record with the shared system.- Parameters:
asset
- for which usage information need to be replicatedusageRecord
- the AssetUsageRecord- Throws:
PersistenceException
- the persistence exceptionReplicationException
- the replication exception
-
-