@ProviderType
public interface AssetUsageTracker
AssetUsageTracker
interface describes the methods for
recording and accessing the asset usage record.Modifier and Type | Interface and Description |
---|---|
static class |
AssetUsageTracker.AggregateUsageInfo
The Class AggregateUsageInfo, defines the meta properties for the asset
usage information.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LAST_USED
The last used.
|
static java.lang.String |
USAGE_COUNT
The usage count.
|
static java.lang.String |
USAGE_TYPE
The asset usage type.
|
Modifier and Type | Method and Description |
---|---|
long |
getAssetScore(Asset asset)
Gets the asset score.
|
java.util.List<AssetUsageTracker.AggregateUsageInfo> |
getUsageStats(Asset asset,
java.util.List<java.lang.String> usagesType)
Gets the asset usage stats.
|
void |
recordUsage(Asset asset,
AssetUsageRecord assetUsageRecord)
Update the
asset usages information with
assetUsageRecord . |
static final java.lang.String USAGE_COUNT
static final java.lang.String LAST_USED
static final java.lang.String USAGE_TYPE
void recordUsage(Asset asset, AssetUsageRecord assetUsageRecord) throws RepositoryException, PersistenceException, ReplicationException
asset
usages information with
assetUsageRecord
.asset
- the asset to updateassetUsageRecord
- the new asset usage recordRepositoryException
- the repository exceptionPersistenceException
- the persistence exceptionReplicationException
- the replication exceptionlong getAssetScore(Asset asset)
asset
- asset for which score is requiredjava.util.List<AssetUsageTracker.AggregateUsageInfo> getUsageStats(Asset asset, java.util.List<java.lang.String> usagesType)
asset
- the asset for which information is requiredusagesType
- list of usages to be returnedAggregateUsageInfo
for all the solutions
in which this asset
has been used.Copyright © 2010 - 2020 Adobe. All Rights Reserved