@Exported
public interface AssetStatisticsSearcher
Modifier and Type | Field and Description |
---|---|
static String |
HELD |
static String |
PUBLISHABLE |
Modifier and Type | Method and Description |
---|---|
int |
assetsCount(String siteName,
boolean contentAssetOnly)
Get the total number of non-voided assets in a given site.
|
Map<AssetId,List<AssetStatistics>> |
getAssetsStatics(List<AssetId> assetIds)
Get the statics of a list of assets.
|
List<AssetStatistics> |
getAssetStatics(AssetId assetId,
String siteName)
Get the statics of a specific asset.
|
List<AssetId> |
getCheckedOutAssets(Date startDate,
Date endDate,
String siteName)
Get the list of assets checked out within a date range.
|
List<AssetId> |
getCheckedOutAssets(String siteName)
Get the list of assets currently checked out.
|
int |
getContributionCountForUser(Date startDate,
Date endDate,
String username,
String site,
boolean contentAssetOnly)
Get the total number of creates a user had for a given period of time for given site and/or asset type
|
int |
getContributionCounts(Date from,
Date end,
String assettype,
String siteName)
Given an asset type and a Site, return the count of all its edits/creates for a given period of time.
|
List<AssetId> |
getCreatedAssets(Date startDate,
Date endDate,
String site,
boolean contentAssetsOnly)
Get a list of created assets for given time period and site/asset type combination.
|
List<AssetId> |
getCreatedAssets(Date startDate,
Date endDate,
String username,
String site,
boolean contentAssetsOnly)
Get a list of created assets for given time period and site/asset type combination for a given user.
|
int |
getCreatedCountForUser(Date startDate,
Date endDate,
String username,
String site,
boolean contentAssetsOnly)
Get the total number of created assets a user had for a given period of time for given site and/or asset type.
|
List<AssetId> |
getEditedAssets(Date startDate,
Date endDate,
String site,
boolean contentAssetsOnly)
Get a list of edited assets for given time period and site/asset type combination.
|
List<AssetId> |
getEditedAssets(Date startDate,
Date endDate,
String username,
String site,
boolean contentAssetsOnly)
Get a list of edited assets for given time period and site/asset type combination for a given user.
|
int |
getEditedCountForUser(Date startDate,
Date endDate,
String username,
String site,
boolean contentAssetsOnly)
Get the total number of edits a user had for a given period of time for given site and/or asset type.
|
List<AssetId> |
getPlacedPages(String siteName)
Get the placed assets for a given site.
|
Map<String,Map<PubTargetInfo,List<AssetId>>> |
getPublishableHeldAssets(String siteName) |
List<PubSessionStatics> |
getPublishingHistory(String siteName)
Get the total number of published assets for a given time period for a given site.
|
Map<String,Integer> |
getTagsCount(String siteName)
Get the top tags with number of referenced assets they have.
|
Map<String,Integer> |
getTopAssetsCount(Date from,
Date end,
String siteName,
int numberOfInterestedAssetTypes,
boolean contentAssetsOnly)
Get the asset types with most assets in given site.
|
Map<String,Integer> |
getTopSearchesCount(Date from,
Date end,
String siteName,
boolean contentAssetsOnly)
Get a map of search text to the number of searches happened during a given period of time.
|
Map<String,Integer> |
getTopUserContribution(Date startDate,
Date endDate,
int numberOfInterestedTopEdits,
String site,
boolean contentAssetsOnly)
Get a map of username to the number of edits the user had during a specified period of time.
|
Map<String,Integer> |
getTopUserCreates(Date startDate,
Date endDate,
int numberOfInterestedTopCreates,
String siteName,
boolean contentAssetsOnly)
Get a map of username to the number of creates the user had during a specified period of time.
|
Map<String,Integer> |
getTopUserEdits(Date startDate,
Date endDate,
int numberOfInterestedTopEdits,
String site,
boolean contentAssetsOnly)
Get a map of username to the number of edits the user had during a specified period of time.
|
List<AssetId> |
getUnplacedPages(String siteName)
Get the unplaced assets for a given site.
|
List<AssetId> |
getWorkflowAssetsHistory(Date startDate,
Date endDate,
String siteName,
boolean contentAssetOnly)
Get the workflow history for assets.
|
static final String PUBLISHABLE
static final String HELD
int assetsCount(String siteName, boolean contentAssetOnly)
siteName
- the site nameList<AssetId> getCheckedOutAssets(String siteName)
siteName
- the site nameList<AssetId> getCheckedOutAssets(Date startDate, Date endDate, String siteName)
startDate
- The starting date of interested checked out assets.endDate
- The end date of interested checked out assets.siteName
- The site name.List<AssetId> getWorkflowAssetsHistory(Date startDate, Date endDate, String siteName, boolean contentAssetOnly)
startDate
- The starting time of interested edited assets.endDate
- The end time of the interested edited assets.siteName
- The site name where the assets belong, if null, all sites will be considered.contentAssetOnly
- Specify whether content assets are needed or all the assets are needed.Map<String,Map<PubTargetInfo,List<AssetId>>> getPublishableHeldAssets(String siteName) throws Exception
siteName
- The site name where the assets belong, if null, all sites will be considered.Exception
List<PubSessionStatics> getPublishingHistory(String siteName)
siteName
- The site name.List<AssetId> getEditedAssets(Date startDate, Date endDate, String site, boolean contentAssetsOnly)
startDate
- The starting time of interested edited assets.endDate
- The end time of the interested edited assets.site
- The site name where the assets belong, if null, all sites will be considered.contentAssetsOnly
- Specify whether content assets are needed or all the assets are needed.List<AssetId> getEditedAssets(Date startDate, Date endDate, String username, String site, boolean contentAssetsOnly)
startDate
- The starting time of interested edited assets.endDate
- The end time of the interested edited assets.username
- The username of interested user.site
- The site name where the assets belong, if null, all sites will be considered.contentAssetsOnly
- Whether only content asset types are interested or not.List<AssetId> getCreatedAssets(Date startDate, Date endDate, String site, boolean contentAssetsOnly)
startDate
- The starting time of interested created assets.endDate
- The end time of the interested created assets.site
- The site name where the assets belong, if null, all sites will be considered.contentAssetsOnly
- Whether only content asset types are interested or not.List<AssetId> getCreatedAssets(Date startDate, Date endDate, String username, String site, boolean contentAssetsOnly)
startDate
- The starting time of interested created assets.endDate
- The end time of the interested created assets.username
- The username of interested user.site
- The site name where the assets belong, if null, all sites will be considered.contentAssetsOnly
- whether only content asset types are interested or not.int getEditedCountForUser(Date startDate, Date endDate, String username, String site, boolean contentAssetsOnly)
startDate
- The starting time of interested edited assets.endDate
- The end time of the interested edited assets.username
- The username of interested user.site
- The site name where the assets belong, if null, all sites will be considered.contentAssetsOnly
- Whether only content asset types are interested or not.int getCreatedCountForUser(Date startDate, Date endDate, String username, String site, boolean contentAssetsOnly)
startDate
- The starting time of interested created assets.endDate
- The end time of the interested created assets.username
- The username of interested user.site
- The site name where the assets belong, if null, all sites will be considered.contentAssetsOnly
- whether only content asset types are interested or not.Map<String,Integer> getTopUserEdits(Date startDate, Date endDate, int numberOfInterestedTopEdits, String site, boolean contentAssetsOnly)
startDate
- The starting time of interested edited assets.endDate
- The end time of the interested edited assets.numberOfInterestedTopEdits
- The most number of users interested.site
- The site name where the assets belong, if null, all sites will be considered.contentAssetsOnly
- Whether only content asset types are interested or not.Map<String,Integer> getTopUserContribution(Date startDate, Date endDate, int numberOfInterestedTopEdits, String site, boolean contentAssetsOnly)
startDate
- The starting time of interested edited assets.endDate
- The end time of the interested edited assets.numberOfInterestedTopEdits
- The most number of users interested.site
- The site name where the assets belong, if null, all sites will be considered.contentAssetsOnly
- Whether only content asset types are interested or not.int getContributionCountForUser(Date startDate, Date endDate, String username, String site, boolean contentAssetOnly)
startDate
- The starting time of interested created assets.endDate
- The end time of the interested created assets.username
- The username of interested user.site
- The site name where the assets belong, if null, all sites will be considered.Map<String,Integer> getTopUserCreates(Date startDate, Date endDate, int numberOfInterestedTopCreates, String siteName, boolean contentAssetsOnly)
startDate
- The starting time of interested created assets.endDate
- The end time of the interested created assets.numberOfInterestedTopCreates
- The most number of users interested.siteName
- The site name where the assets belong, if null, all sites will be considered.contentAssetsOnly
- Whether only content asset types are interested or not.List<AssetStatistics> getAssetStatics(AssetId assetId, String siteName)
assetId
- The asset id.siteName
- Map<AssetId,List<AssetStatistics>> getAssetsStatics(List<AssetId> assetIds)
assetIds
- List of the asset ids.List<AssetId> getPlacedPages(String siteName)
siteName
- The site name where the assets belong, not nullable.List<AssetId> getUnplacedPages(String siteName)
siteName
- The site name where the assets belong, not nullable.Map<String,Integer> getTagsCount(String siteName)
siteName
- The site where the tags are interested.Map<String,Integer> getTopAssetsCount(Date from, Date end, String siteName, int numberOfInterestedAssetTypes, boolean contentAssetsOnly)
from
- The start date.end
- The end date.siteName
- The site name.numberOfInterestedAssetTypes
- The number of asset types interested @return the Map of asset type name to the number of assets in the asset types.contentAssetsOnly
- Whether only content asset types are interested or not.int getContributionCounts(Date from, Date end, String assettype, String siteName)
from
- The start time.end
- The end time.assettype
- The asset type name interested.siteName
- The site name interested.Map<String,Integer> getTopSearchesCount(Date from, Date end, String siteName, boolean contentAssetsOnly)
from
- The starting time of interested searches.end
- The end time of the interested searches.siteName
- The site name where searches happened.contentAssetsOnly
- Whether only content asset types are interested or not.