@Exported 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 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 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 assets 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 assets.endDate - The end date of interested checked out assets.siteName - The site name.public List<AssetId> getWorkflowAssetsHistory(Date startDate, Date endDate, String siteName, boolean contentAssetOnly)
AssetStatisticsSearchergetWorkflowAssetsHistory in interface AssetStatisticsSearcherstartDate - 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.public 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 considered.Exceptionpublic List<PubSessionStatics> getPublishingHistory(String siteName)
AssetStatisticsSearchergetPublishingHistory in interface AssetStatisticsSearchersiteName - The site name.public List<AssetId> getEditedAssets(Date startDate, Date endDate, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetEditedAssets in interface AssetStatisticsSearcherstartDate - 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.contentAssetOnly - Specify whether content assets are needed or all the assets are needed.public List<AssetId> getEditedAssets(Date startDate, Date endDate, String username, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetEditedAssets in interface AssetStatisticsSearcherstartDate - 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.contentAssetOnly - Whether only content asset types are interested or not.public List<AssetId> getCreatedAssets(Date startDate, Date endDate, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetCreatedAssets in interface AssetStatisticsSearcherstartDate - 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.contentAssetOnly - Whether only content asset types are interested or not.public List<AssetId> getCreatedAssets(Date startDate, Date endDate, String username, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetCreatedAssets in interface AssetStatisticsSearcherstartDate - 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.contentAssetOnly - whether only content asset types are interested or not.public int getEditedCountForUser(Date startDate, Date endDate, String username, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetEditedCountForUser in interface AssetStatisticsSearcherstartDate - 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.contentAssetOnly - Whether only content asset types are interested or not.public int getCreatedCountForUser(Date startDate, Date endDate, String username, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetCreatedCountForUser in interface AssetStatisticsSearcherstartDate - 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.contentAssetOnly - whether only content asset types are interested or not.public Map<String,Integer> getTopUserEdits(Date startDate, Date endDate, int numberOfInterestedTopEdits, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetTopUserEdits in interface AssetStatisticsSearcherstartDate - 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.contentAssetOnly - Whether only content asset types are interested or not.public Map<String,Integer> getTopUserContribution(Date startDate, Date endDate, int numberOfInterestedTopEdits, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetTopUserContribution in interface AssetStatisticsSearcherstartDate - 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.contentAssetOnly - Whether only content asset types are interested or not.public int getContributionCountForUser(Date startDate, Date endDate, String username, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetContributionCountForUser in interface AssetStatisticsSearcherstartDate - 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.public Map<String,Integer> getTopUserCreates(Date startDate, Date endDate, int numberOfInterestedTopCreates, String site, boolean contentAssetOnly)
AssetStatisticsSearchergetTopUserCreates in interface AssetStatisticsSearcherstartDate - The starting time of interested created assets.endDate - The end time of the interested created assets.numberOfInterestedTopCreates - The most number of users interested.site - The site name where the assets belong, if null, all sites will be considered.contentAssetOnly - Whether only content asset types are interested or not.public List<AssetStatistics> getAssetStatics(AssetId assetId, String siteName)
AssetStatisticsSearchergetAssetStatics in interface AssetStatisticsSearcherassetId - The asset id.public Map<AssetId,List<AssetStatistics>> getAssetsStatics(List<AssetId> assetIds)
AssetStatisticsSearchergetAssetsStatics in interface AssetStatisticsSearcherassetIds - List of the asset ids.public List<AssetId> getPlacedPages(String site)
AssetStatisticsSearchergetPlacedPages in interface AssetStatisticsSearchersite - The site name where the assets belong, not nullable.public List<AssetId> getUnplacedPages(String site)
AssetStatisticsSearchergetUnplacedPages in interface AssetStatisticsSearchersite - The site name where the assets belong, not nullable.public Map<String,Integer> getTagsCount(String siteName)
AssetStatisticsSearchergetTagsCount in interface AssetStatisticsSearchersiteName - The site where the tags are interested.public Map<String,Integer> getTopAssetsCount(Date from, Date end, String siteName, int numberOfInterestedAssetTypes, boolean contentAssetOnly)
AssetStatisticsSearchergetTopAssetsCount in interface AssetStatisticsSearcherfrom - 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.contentAssetOnly - Whether only content asset types are interested or not.public int getContributionCounts(Date from, Date end, String assettype, String siteName)
AssetStatisticsSearchergetContributionCounts in interface AssetStatisticsSearcherfrom - The start time.end - The end time.assettype - The asset type name interested.siteName - The site name interested.public Map<String,Integer> getTopSearchesCount(Date from, Date end, String siteName, boolean contentAssetsOnly)
AssetStatisticsSearchergetTopSearchesCount in interface AssetStatisticsSearcherfrom - 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.