Interface DashboardService
- All Known Implementing Classes:
DashboardServiceImpl
public interface DashboardService
Service that process requests for Dashboard API
-
Method Summary
Modifier and TypeMethodDescriptiongetActivitiesForUsers(String siteId, List<String> usernames, List<String> actions, ZonedDateTime dateFrom, ZonedDateTime dateTo, int offset, int limit) Get activities for usersintgetActivitiesForUsersTotal(String siteId, List<String> usernames, List<String> actions, ZonedDateTime dateFrom, ZonedDateTime dateTo) Get total number of result for activities of given usersgetContentExpired(String siteId, int offset, int limit) Get content that expiredgetContentExpiring(String siteId, ZonedDateTime dateFrom, ZonedDateTime dateTo, int offset, int limit) Get content that is expiringgetContentPendingApproval(String siteId, List<String> systemTypes, List<org.craftercms.commons.rest.parameters.SortField> sortFields, int offset, int limit) Get pending content for approvalgetContentPendingApprovalDetail(String siteId, String publishingPackageId, List<org.craftercms.commons.rest.parameters.SortField> sortFields) Get content pending approval package detailsintgetContentPendingApprovalTotal(String siteId, List<String> systemTypes) Get total number of content packages pending approvalgetContentUnpublished(String siteId, List<String> systemTypes, List<org.craftercms.commons.rest.parameters.SortField> sortFields, int offset, int limit) Get unpublished content itemsintgetContentUnpublishedTotal(String siteId, List<String> systemTypes) Get total number of unpublished contentgetMyActivities(String siteId, List<String> actions, ZonedDateTime dateFrom, ZonedDateTime dateTo, int offset, int limit) Get my activitiesintgetMyActivitiesTotal(String siteId, List<String> actions, ZonedDateTime dateFrom, ZonedDateTime dateTo) Get total number of result for my activitiesgetPublishingHistory(String siteId, String publishingTarget, String approver, ZonedDateTime dateFrom, ZonedDateTime dateTo, int offset, int limit) Get publishing historygetPublishingHistoryDetail(String siteId, String publishingPackageId, int offset, int limit) Get publishing package detailsintgetPublishingHistoryDetailTotalItems(String siteId, String publishingPackageId) Get publishing package detail total itemsintgetPublishingHistoryTotal(String siteId, String publishingTarget, String approver, ZonedDateTime dateFrom, ZonedDateTime dateTo) Get total number of result for publishing history with given filtersgetPublishingScheduled(String siteId, String publishingTarget, String approver, ZonedDateTime dateFrom, ZonedDateTime dateTo, List<String> systemTypes, List<org.craftercms.commons.rest.parameters.SortField> sortFields, int offset, int limit) Get publishing scheduledgetPublishingScheduledDetail(String siteId, String publishingPackageId) Get publishing package detailsintgetPublishingScheduledTotal(String siteId, String publishingTarget, String approver, ZonedDateTime dateFrom, ZonedDateTime dateTo, List<String> systemTypes) Get total number of result for publishing scheduled with given filtersgetPublishingStats(String siteId, int days) Get publishing stats for site for given time period
-
Method Details
-
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 usernames (or prefixes)actions- 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, List<String> systemTypes) throws SiteNotFoundException Get total number of content packages pending approval- Parameters:
siteId- site identifiersystemTypes- list of system types to filter- Returns:
- number of results to return
- Throws:
SiteNotFoundException
-
getContentPendingApproval
List<DetailedItem> getContentPendingApproval(String siteId, List<String> systemTypes, List<org.craftercms.commons.rest.parameters.SortField> sortFields, int offset, int limit) throws ServiceLayerException, UserNotFoundException Get pending content for approval- Parameters:
siteId- site identifiersystemTypes- list of system types to filtersortFields- list of sort fieldsoffset- offset of the first result itemlimit- number of results to return- Returns:
- list of DetailedItem waiting for approval
- Throws:
ServiceLayerExceptionUserNotFoundException
-
getContentPendingApprovalDetail
List<SandboxItem> getContentPendingApprovalDetail(String siteId, String publishingPackageId, List<org.craftercms.commons.rest.parameters.SortField> sortFields) 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:
UserNotFoundExceptionServiceLayerException
-
getContentUnpublishedTotal
int getContentUnpublishedTotal(String siteId, List<String> systemTypes) throws SiteNotFoundException Get total number of unpublished content- Parameters:
siteId- site identifiersystemTypes- list of system types to filter- Returns:
- number of results to return
- Throws:
SiteNotFoundException
-
getContentUnpublished
List<SandboxItem> getContentUnpublished(String siteId, List<String> systemTypes, List<org.craftercms.commons.rest.parameters.SortField> sortFields, int offset, int limit) throws UserNotFoundException, ServiceLayerException Get unpublished content items- Parameters:
siteId- site identifiersystemTypes- list of system types to filtersortFields- list of sort fieldsoffset- offset of the first result itemlimit- number of results to return- Returns:
- list of unpublished content items
- Throws:
UserNotFoundExceptionServiceLayerException
-
getContentExpiring
ExpiringContentResult getContentExpiring(String siteId, ZonedDateTime dateFrom, ZonedDateTime dateTo, int offset, int limit) throws AuthenticationException, ServiceLayerException, UserNotFoundException 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:
AuthenticationExceptionServiceLayerExceptionUserNotFoundException
-
getContentExpired
ExpiringContentResult getContentExpired(String siteId, int offset, int limit) throws AuthenticationException, ServiceLayerException, UserNotFoundException 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:
AuthenticationExceptionServiceLayerExceptionUserNotFoundException
-
getPublishingScheduledTotal
int getPublishingScheduledTotal(String siteId, String publishingTarget, String approver, ZonedDateTime dateFrom, ZonedDateTime dateTo, List<String> systemTypes) throws SiteNotFoundException Get total number of result for publishing scheduled 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 rangesystemTypes- list of system types to filter- Returns:
- number of results
- Throws:
SiteNotFoundException
-
getPublishingScheduled
List<DetailedItem> getPublishingScheduled(String siteId, String publishingTarget, String approver, ZonedDateTime dateFrom, ZonedDateTime dateTo, List<String> systemTypes, List<org.craftercms.commons.rest.parameters.SortField> sortFields, int offset, int limit) throws ServiceLayerException, UserNotFoundException Get publishing scheduled- 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 rangesystemTypes- list of system types to filtersortFields- list of sort fieldsoffset- offset of the first result itemlimit- number of results to returnsortFields- list of sort fields- Returns:
- list of DetailedItem scheduled for publishing
- Throws:
ServiceLayerExceptionUserNotFoundException
-
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:
UserNotFoundExceptionServiceLayerException
-
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
-
getPublishingHistoryDetailTotalItems
int getPublishingHistoryDetailTotalItems(String siteId, String publishingPackageId) throws SiteNotFoundException Get publishing package detail total items- Parameters:
siteId- site identifierpublishingPackageId- publishing package identifier- Returns:
- number of package items
- Throws:
SiteNotFoundException
-
getPublishingHistoryDetail
List<SandboxItem> getPublishingHistoryDetail(String siteId, String publishingPackageId, int offset, int limit) throws UserNotFoundException, ServiceLayerException Get publishing package details- Parameters:
siteId- site identifierpublishingPackageId- publishing package identifieroffset- offset of the first result itemlimit- number of results to return- Returns:
- list of sandbox items included in given package
- Throws:
UserNotFoundExceptionServiceLayerException
-
getPublishingStats
Get publishing stats for site for given time period- Parameters:
siteId- site identifierdays- number of days- Returns:
- publishing stats
- Throws:
SiteNotFoundException
-