public class AssetStatisticsSearcherImpl extends Object implements AssetStatisticsSearcher
HELD, PUBLISHABLE| Constructor and Description |
|---|
AssetStatisticsSearcherImpl(ICS ics) |
| 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 contentAssetOnly)
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 contentAssetOnly)
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 contentAssetOnly)
Get the total number of creates 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 contentAssetOnly)
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 contentAssetOnly)
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 contentAssetOnly)
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 site)
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 contentAssetOnly)
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 contentAssetOnly)
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 site,
boolean contentAssetOnly)
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 contentAssetOnly)
Get a map of username to the number of edits the user had during a specified period of time
|
List<AssetId> |
getUnplacedPages(String site)
Get the unplaced asstes for a given site
|
List<AssetId> |
getWorkflowAssetsHistory(Date startDate,
Date endDate,
String siteName,
boolean contentAssetOnly)
Get the workflow history for assets
|
public AssetStatisticsSearcherImpl(ICS ics)
public int assetsCount(String siteName, boolean contentAssetOnly)
AssetStatisticsSearcherassetsCount in interface AssetStatisticsSearchersiteName - the site namepublic List<AssetId> getCheckedOutAssets(String siteName)
AssetStatisticsSearchergetCheckedOutAssets in interface AssetStatisticsSearchersiteName - the site namepublic List<AssetId> getCheckedOutAssets(Date startDate, Date endDate, String siteName)
AssetStatisticsSearchergetCheckedOutAssets in interface AssetStatisticsSearcherstartDate - the starting date of interested checked out assetsendDate - the end date of interested checked out assetssiteName - the site namepublic List<AssetId> getWorkflowAssetsHistory(Date startDate, Date endDate, String siteName, boolean contentAssetOnly)
AssetStatisticsSearchergetWorkflowAssetsHistory in interface AssetStatisticsSearcherstartDate - the starting time of interested edited assetsendDate - the end time of the interested edited assetssiteName - the site name where the assets belong, if null, all sites will be consideredcontentAssetOnly - specify whether content assets are needed or all the assets are neededpublic Map<String,Map<PubTargetInfo,List<AssetId>>> getPublishableHeldAssets(String siteName) throws Exception
getPublishableHeldAssets in interface AssetStatisticsSearchersiteName - the site name where the assets belong, if null, all sites will be consideredExceptionpublic List<PubSessionStatics> getPublishingHistory(String siteName)
AssetStatisticsSearchergetPublishingHistory in interface AssetStatisticsSearchersiteName - the site namepublic List<AssetId> getEditedAssets(Date startDate, Date endDate, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetEditedAssets in interface AssetStatisticsSearcherstartDate - the starting time of interested edited assetsendDate - the end time of the interested edited assetssite - the site name where the assets belong, if null, all sites will be consideredcontentAssetOnly - specify whether content assets are needed or all the assets are neededpublic List<AssetId> getEditedAssets(Date startDate, Date endDate, String username, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetEditedAssets in interface AssetStatisticsSearcherstartDate - the starting time of interested edited assetsendDate - the end time of the interested edited assetsusername - the username of interested usersite - the site name where the assets belong, if null, all sites will be consideredcontentAssetOnly - whether only content asset types are interested or notpublic List<AssetId> getCreatedAssets(Date startDate, Date endDate, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetCreatedAssets in interface AssetStatisticsSearcherstartDate - the starting time of interested created assetsendDate - the end time of the interested created assetssite - the site name where the assets belong, if null, all sites will be consideredcontentAssetOnly - whether only content asset types are interested or notpublic List<AssetId> getCreatedAssets(Date startDate, Date endDate, String username, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetCreatedAssets in interface AssetStatisticsSearcherstartDate - the starting time of interested created assetsendDate - the end time of the interested created assetsusername - the username of interested usersite - the site name where the assets belong, if null, all sites will be consideredcontentAssetOnly - whether only content asset types are interested or notpublic int getEditedCountForUser(Date startDate, Date endDate, String username, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetEditedCountForUser in interface AssetStatisticsSearcherstartDate - the starting time of interested edited assetsendDate - the end time of the interested edited assetsusername - the username of interested usersite - the site name where the assets belong, if null, all sites will be consideredcontentAssetOnly - whether only content asset types are interested or notpublic int getCreatedCountForUser(Date startDate, Date endDate, String username, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetCreatedCountForUser in interface AssetStatisticsSearcherstartDate - the starting time of interested created assetsendDate - the end time of the interested created assetsusername - the username of interested usersite - the site name where the assets belong, if null, all sites will be consideredcontentAssetOnly - whether only content asset types are interested or notpublic Map<String,Integer> getTopUserEdits(Date startDate, Date endDate, int numberOfInterestedTopEdits, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetTopUserEdits in interface AssetStatisticsSearcherstartDate - the starting time of interested edited assetsendDate - the end time of the interested edited assetsnumberOfInterestedTopEdits - the most number of users interestedsite - the site name where the assets belong, if null, all sites will be consideredcontentAssetOnly - whether only content asset types are interested or notpublic Map<String,Integer> getTopUserContribution(Date startDate, Date endDate, int numberOfInterestedTopEdits, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetTopUserContribution in interface AssetStatisticsSearcherstartDate - the starting time of interested edited assetsendDate - the end time of the interested edited assetsnumberOfInterestedTopEdits - the most number of users interestedsite - the site name where the assets belong, if null, all sites will be consideredcontentAssetOnly - whether only content asset types are interested or notpublic int getContributionCountForUser(Date startDate, Date endDate, String username, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetContributionCountForUser in interface AssetStatisticsSearcherstartDate - the starting time of interested created assetsendDate - the end time of the interested created assetsusername - the username of interested usersite - the site name where the assets belong, if null, all sites will be consideredpublic Map<String,Integer> getTopUserCreates(Date startDate, Date endDate, int numberOfInterestedTopCreates, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetTopUserCreates in interface AssetStatisticsSearcherstartDate - the starting time of interested created assetsendDate - the end time of the interested created assetsnumberOfInterestedTopCreates - the most number of users interestedsite - the site name where the assets belong, if null, all sites will be consideredcontentAssetOnly - whether only content asset types are interested or notpublic List<AssetStatistics> getAssetStatics(AssetId assetId, String siteName)
AssetStatisticsSearchergetAssetStatics in interface AssetStatisticsSearcherassetId - the asset idpublic Map<AssetId,List<AssetStatistics>> getAssetsStatics(List<AssetId> assetIds)
AssetStatisticsSearchergetAssetsStatics in interface AssetStatisticsSearcherassetIds - list of the asset idspublic List<AssetId> getPlacedPages(String site)
AssetStatisticsSearchergetPlacedPages in interface AssetStatisticsSearchersite - the site name where the assets belong, not nullablepublic List<AssetId> getUnplacedPages(String site)
AssetStatisticsSearchergetUnplacedPages in interface AssetStatisticsSearchersite - the site name where the assets belong, not nullablepublic Map<String,Integer> getTagsCount(String siteName)
AssetStatisticsSearchergetTagsCount in interface AssetStatisticsSearchersiteName - the site where the tags are interestedpublic Map<String,Integer> getTopAssetsCount(Date from, Date end, String siteName, int numberOfInterestedAssetTypes, boolean contentAssetOnly)
AssetStatisticsSearchergetTopAssetsCount in interface AssetStatisticsSearcherfrom - the start dateend - the end datesiteName - the site namenumberOfInterestedAssetTypes - the number of asset types interested @return the Map of asset type name to the number of assets in the asset typescontentAssetOnly - whether only content asset types are interested or notpublic int getContributionCounts(Date from, Date end, String assettype, String siteName)
AssetStatisticsSearchergetContributionCounts in interface AssetStatisticsSearcherfrom - the start timeend - the end timeassettype - the asset type name interestedsiteName - the site name interestedpublic Map<String,Integer> getTopSearchesCount(Date from, Date end, String siteName, boolean contentAssetsOnly)
AssetStatisticsSearchergetTopSearchesCount in interface AssetStatisticsSearcherfrom - the starting time of interested searchesend - the end time of the interested searchessiteName - the site name where searches happenedcontentAssetsOnly - whether only content asset types are interested or not