Interface DashboardService
-
- All Known Implementing Classes:
DashboardServiceImpl
public interface DashboardService
Service that process requests for Dashboard API
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Activity>
getActivitiesForUsers(String siteId, List<String> usernames, List<String> actions, ZonedDateTime dateFrom, ZonedDateTime dateTo, int offset, int limit)
Get activities for usersint
getActivitiesForUsersTotal(String siteId, List<String> usernames, List<String> actions, ZonedDateTime dateFrom, ZonedDateTime dateTo)
Get total number of result for activities of given usersExpiringContentResult
getContentExpired(String siteId, int offset, int limit)
Get content that expiredExpiringContentResult
getContentExpiring(String siteId, ZonedDateTime dateFrom, ZonedDateTime dateTo, int offset, int limit)
Get content that is expiringList<DetailedItem>
getContentPendingApproval(String siteId, int offset, int limit)
Get pending content for approvalList<SandboxItem>
getContentPendingApprovalDetail(String siteId, String publishingPackageId)
Get content pending approval package detailsint
getContentPendingApprovalTotal(String siteId)
Get total number of content packages pending approvalList<SandboxItem>
getContentUnpublished(String siteId, int offset, int limit)
Get unpublished content itemsint
getContentUnpublishedTotal(String siteId)
Get total number of unpublished contentList<Activity>
getMyActivities(String siteId, List<String> actions, ZonedDateTime dateFrom, ZonedDateTime dateTo, int offset, int limit)
Get my activitiesint
getMyActivitiesTotal(String siteId, List<String> actions, ZonedDateTime dateFrom, ZonedDateTime dateTo)
Get total number of result for my activitiesList<DashboardPublishingPackage>
getPublishingHistory(String siteId, String publishingTarget, String approver, ZonedDateTime dateFrom, ZonedDateTime dateTo, int offset, int limit)
Get publishing historyList<SandboxItem>
getPublishingHistoryDetail(String siteId, String publishingPackageId)
Get publishing package detailsint
getPublishingHistoryTotal(String siteId, String publishingTarget, String approver, ZonedDateTime dateFrom, ZonedDateTime dateTo)
Get total number of result for publishing history with given filtersList<DashboardPublishingPackage>
getPublishingScheduled(String siteId, String publishingTarget, ZonedDateTime dateFrom, ZonedDateTime dateTo, int offset, int limit)
Get publishing scheduledList<SandboxItem>
getPublishingScheduledDetail(String siteId, String publishingPackageId)
Get publishing package detailsint
getPublishingScheduledTotal(String siteId, String publishingTarget, ZonedDateTime dateFrom, ZonedDateTime dateTo)
Get total number of result for publishing scheduled with given filtersPublishingStats
getPublishingStats(String siteId, int days)
Get publishing stats for site for given time period
-
-
-
Method Detail
-
getActivitiesForUsersTotal
int getActivitiesForUsersTotal(String siteId, List<String> usernames, List<String> actions, ZonedDateTime dateFrom, ZonedDateTime dateTo) throws SiteNotFoundException
Get total number of result for activities of given users- Parameters:
siteId
- site identifierusernames
- list of usernamesactions
- list of actions to filterdateFrom
- lower boundary to filter by date-time rangedateTo
- upper boundary to filter by date-time range- Returns:
- number of results
- Throws:
SiteNotFoundException
-
getActivitiesForUsers
List<Activity> getActivitiesForUsers(String siteId, List<String> usernames, List<String> actions, ZonedDateTime dateFrom, ZonedDateTime dateTo, int offset, int limit) throws SiteNotFoundException
Get activities for users- Parameters:
siteId
- site identifierusernames
- list of usernamesactions
- list of actions to filterdateFrom
- lower boundary to filter by date-time rangedateTo
- upper boundary to filter by date-time rangeoffset
- offset of the first result itemlimit
- number of results to return- Returns:
- the list of activities
- Throws:
SiteNotFoundException
-
getMyActivitiesTotal
int getMyActivitiesTotal(String siteId, List<String> actions, ZonedDateTime dateFrom, ZonedDateTime dateTo) throws SiteNotFoundException
Get total number of result for my activities- Parameters:
siteId
- site identifieractions
- list of actions to filterdateFrom
- lower boundary to filter by date-time rangedateTo
- upper boundary to filter by date-time range- Returns:
- number of results
- Throws:
SiteNotFoundException
-
getMyActivities
List<Activity> getMyActivities(String siteId, List<String> actions, ZonedDateTime dateFrom, ZonedDateTime dateTo, int offset, int limit) throws SiteNotFoundException
Get my activities- Parameters:
siteId
- site identifieractions
- list of actions to filterdateFrom
- lower boundary to filter by date-time rangedateTo
- upper boundary to filter by date-time rangeoffset
- offset of the first result itemlimit
- number of results to return- Returns:
- the list of activities
- Throws:
SiteNotFoundException
-
getContentPendingApprovalTotal
int getContentPendingApprovalTotal(String siteId) throws SiteNotFoundException
Get total number of content packages pending approval- Parameters:
siteId
- site identifier- Returns:
- number of results to return
- Throws:
SiteNotFoundException
-
getContentPendingApproval
List<DetailedItem> getContentPendingApproval(String siteId, int offset, int limit) throws ServiceLayerException, UserNotFoundException
Get pending content for approval- Parameters:
siteId
-offset
-limit
-- Returns:
- list of DetailedItem waiting for approval
- Throws:
ServiceLayerException
UserNotFoundException
-
getContentPendingApprovalDetail
List<SandboxItem> getContentPendingApprovalDetail(String siteId, String publishingPackageId) throws UserNotFoundException, ServiceLayerException
Get content pending approval package details- Parameters:
siteId
- site identifierpublishingPackageId
- publishing package identifier- Returns:
- list of sandbox items included in given package
- Throws:
UserNotFoundException
ServiceLayerException
-
getContentUnpublishedTotal
int getContentUnpublishedTotal(String siteId) throws SiteNotFoundException
Get total number of unpublished content- Parameters:
siteId
- site identifier- Returns:
- number of results to return
- Throws:
SiteNotFoundException
-
getContentUnpublished
List<SandboxItem> getContentUnpublished(String siteId, int offset, int limit) throws UserNotFoundException, ServiceLayerException
Get unpublished content items- Parameters:
siteId
-offset
-limit
-- Returns:
- Throws:
UserNotFoundException
ServiceLayerException
-
getContentExpiring
ExpiringContentResult getContentExpiring(String siteId, ZonedDateTime dateFrom, ZonedDateTime dateTo, int offset, int limit) throws AuthenticationException, ServiceLayerException
Get content that is expiring- Parameters:
siteId
- site identifierdateFrom
- lower boundary to filter by date-time rangedateTo
- upper boundary to filter by date-time rangeoffset
- offset of the first result itemlimit
- number of results to return- Returns:
- list of content items that is expiring
- Throws:
AuthenticationException
ServiceLayerException
-
getContentExpired
ExpiringContentResult getContentExpired(String siteId, int offset, int limit) throws AuthenticationException, ServiceLayerException
Get content that expired- Parameters:
siteId
- site identifieroffset
- offset of the first result itemlimit
- number of results to return- Returns:
- list of content items that expired
- Throws:
AuthenticationException
ServiceLayerException
-
getPublishingScheduledTotal
int getPublishingScheduledTotal(String siteId, String publishingTarget, ZonedDateTime dateFrom, ZonedDateTime dateTo) throws SiteNotFoundException
Get total number of result for publishing scheduled with given filters- Parameters:
siteId
- site identifierpublishingTarget
- publishing target to filter bydateFrom
- lower boundary to filter by date-time rangedateTo
- upper boundary to filter by date-time range- Returns:
- number of results
- Throws:
SiteNotFoundException
-
getPublishingScheduled
List<DashboardPublishingPackage> getPublishingScheduled(String siteId, String publishingTarget, ZonedDateTime dateFrom, ZonedDateTime dateTo, int offset, int limit) throws SiteNotFoundException
Get publishing scheduled- Parameters:
siteId
- site identifierpublishingTarget
- publishing target to filter bydateFrom
- lower boundary to filter by date-time rangedateTo
- upper boundary to filter by date-time rangeoffset
- offset of the first result itemlimit
- number of results to return- Returns:
- Throws:
SiteNotFoundException
-
getPublishingScheduledDetail
List<SandboxItem> getPublishingScheduledDetail(String siteId, String publishingPackageId) throws UserNotFoundException, ServiceLayerException
Get publishing package details- Parameters:
siteId
- site identifierpublishingPackageId
- publishing package identifier- Returns:
- list of sandbox items included in given package
- Throws:
UserNotFoundException
ServiceLayerException
-
getPublishingHistoryTotal
int getPublishingHistoryTotal(String siteId, String publishingTarget, String approver, ZonedDateTime dateFrom, ZonedDateTime dateTo) throws SiteNotFoundException
Get total number of result for publishing history with given filters- Parameters:
siteId
- site identifierpublishingTarget
- publishing target to filter byapprover
- approver user to filter bydateFrom
- lower boundary to filter by date-time rangedateTo
- upper boundary to filter by date-time range- Returns:
- number of results
- Throws:
SiteNotFoundException
-
getPublishingHistory
List<DashboardPublishingPackage> getPublishingHistory(String siteId, String publishingTarget, String approver, ZonedDateTime dateFrom, ZonedDateTime dateTo, int offset, int limit) throws SiteNotFoundException
Get publishing history- Parameters:
siteId
- site identifierpublishingTarget
- publishing target to filter byapprover
- approver user to filter bydateFrom
- lower boundary to filter by date-time rangedateTo
- upper boundary to filter by date-time rangeoffset
- offset of the first result itemlimit
- number of results to return- Returns:
- Throws:
SiteNotFoundException
-
getPublishingHistoryDetail
List<SandboxItem> getPublishingHistoryDetail(String siteId, String publishingPackageId) throws UserNotFoundException, ServiceLayerException
Get publishing package details- Parameters:
siteId
- site identifierpublishingPackageId
- publishing package identifier- Returns:
- list of sandbox items included in given package
- Throws:
UserNotFoundException
ServiceLayerException
-
getPublishingStats
PublishingStats getPublishingStats(String siteId, int days) throws SiteNotFoundException
Get publishing stats for site for given time period- Parameters:
siteId
- site identifierdays
- number of days- Returns:
- publishing stats
- Throws:
SiteNotFoundException
-
-