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)
AssetStatisticsSearcher
assetsCount
in interface AssetStatisticsSearcher
siteName
- the site namepublic List<AssetId> getCheckedOutAssets(String siteName)
AssetStatisticsSearcher
getCheckedOutAssets
in interface AssetStatisticsSearcher
siteName
- the site namepublic List<AssetId> getCheckedOutAssets(Date startDate, Date endDate, String siteName)
AssetStatisticsSearcher
getCheckedOutAssets
in interface AssetStatisticsSearcher
startDate
- 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)
AssetStatisticsSearcher
getWorkflowAssetsHistory
in interface AssetStatisticsSearcher
startDate
- 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 AssetStatisticsSearcher
siteName
- the site name where the assets belong, if null, all sites will be consideredException
public List<PubSessionStatics> getPublishingHistory(String siteName)
AssetStatisticsSearcher
getPublishingHistory
in interface AssetStatisticsSearcher
siteName
- the site namepublic List<AssetId> getEditedAssets(Date startDate, Date endDate, String site, boolean contentAssetOnly)
AssetStatisticsSearcher
getEditedAssets
in interface AssetStatisticsSearcher
startDate
- 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)
AssetStatisticsSearcher
getEditedAssets
in interface AssetStatisticsSearcher
startDate
- 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)
AssetStatisticsSearcher
getCreatedAssets
in interface AssetStatisticsSearcher
startDate
- 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)
AssetStatisticsSearcher
getCreatedAssets
in interface AssetStatisticsSearcher
startDate
- 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)
AssetStatisticsSearcher
getEditedCountForUser
in interface AssetStatisticsSearcher
startDate
- 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)
AssetStatisticsSearcher
getCreatedCountForUser
in interface AssetStatisticsSearcher
startDate
- 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)
AssetStatisticsSearcher
getTopUserEdits
in interface AssetStatisticsSearcher
startDate
- 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)
AssetStatisticsSearcher
getTopUserContribution
in interface AssetStatisticsSearcher
startDate
- 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)
AssetStatisticsSearcher
getContributionCountForUser
in interface AssetStatisticsSearcher
startDate
- 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)
AssetStatisticsSearcher
getTopUserCreates
in interface AssetStatisticsSearcher
startDate
- 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)
AssetStatisticsSearcher
getAssetStatics
in interface AssetStatisticsSearcher
assetId
- the asset idpublic Map<AssetId,List<AssetStatistics>> getAssetsStatics(List<AssetId> assetIds)
AssetStatisticsSearcher
getAssetsStatics
in interface AssetStatisticsSearcher
assetIds
- list of the asset idspublic List<AssetId> getPlacedPages(String site)
AssetStatisticsSearcher
getPlacedPages
in interface AssetStatisticsSearcher
site
- the site name where the assets belong, not nullablepublic List<AssetId> getUnplacedPages(String site)
AssetStatisticsSearcher
getUnplacedPages
in interface AssetStatisticsSearcher
site
- the site name where the assets belong, not nullablepublic Map<String,Integer> getTagsCount(String siteName)
AssetStatisticsSearcher
getTagsCount
in interface AssetStatisticsSearcher
siteName
- the site where the tags are interestedpublic Map<String,Integer> getTopAssetsCount(Date from, Date end, String siteName, int numberOfInterestedAssetTypes, boolean contentAssetOnly)
AssetStatisticsSearcher
getTopAssetsCount
in interface AssetStatisticsSearcher
from
- 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)
AssetStatisticsSearcher
getContributionCounts
in interface AssetStatisticsSearcher
from
- 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)
AssetStatisticsSearcher
getTopSearchesCount
in interface AssetStatisticsSearcher
from
- 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