Class PublishServiceImpl

    • Constructor Detail

      • PublishServiceImpl

        public PublishServiceImpl()
    • Method Detail

      • getPublishingHistoryTotal

        public int getPublishingHistoryTotal​(String siteId,
                                             String environment,
                                             String path,
                                             String publisher,
                                             ZonedDateTime dateFrom,
                                             ZonedDateTime dateTo,
                                             String contentType,
                                             long state)
        Description copied from interface: PublishService
        Get total number of publishing history items for given search parameters
        Specified by:
        getPublishingHistoryTotal in interface PublishService
        Parameters:
        siteId - site identifier
        environment - environment to get publishing history
        path - regular expression to filter paths
        publisher - filter publishing history for specified user
        dateFrom - lower boundary for date range
        dateTo - upper boundary for date range
        contentType - publishing history for specified content type
        state - filter items by their state
        Returns:
        total number of deployment history items
      • getPublishingHistory

        public List<PublishingDashboardItem> getPublishingHistory​(String siteId,
                                                                  String environment,
                                                                  String path,
                                                                  String publisher,
                                                                  ZonedDateTime dateFrom,
                                                                  ZonedDateTime dateTo,
                                                                  String contentType,
                                                                  long state,
                                                                  String sortBy,
                                                                  String order,
                                                                  int offset,
                                                                  int limit)
        Description copied from interface: PublishService
        Get deployment history items for given search parameters
        Specified by:
        getPublishingHistory in interface PublishService
        Parameters:
        siteId - site identifier
        environment - environment to get publishing history
        path - regular expression to filter paths
        publisher - filter publishing history for specified user
        dateFrom - lower boundary for date range
        dateTo - upper boundary for date range
        contentType - publishing history for specified content type
        state - filter items by their state
        sortBy - sort publishing history
        order - apply order to publishing history
        offset - offset of the first item in the result set
        limit - number of items to return
        Returns:
        total number of publishing packages
      • getDeploymentHistory

        public List<DeploymentHistoryGroup> getDeploymentHistory​(String siteId,
                                                                 int daysFromToday,
                                                                 int numberOfItems,
                                                                 String filterType)
        Description copied from interface: PublishService
        Get deployment history
        Specified by:
        getDeploymentHistory in interface PublishService
        Parameters:
        siteId - site identifier
        daysFromToday - number of days for history
        numberOfItems - number of items to display
        filterType - filter results by filter type
        Returns:
      • isSitePublished

        public boolean isSitePublished​(String siteId)
        Description copied from interface: PublishService
        Check if site has ever been published.
        Specified by:
        isSitePublished in interface PublishService
        Parameters:
        siteId - site identifier
        Returns:
        true if site has been published at least once, otherwise false
      • setPublishServiceInternal

        public void setPublishServiceInternal​(PublishServiceInternal publishServiceInternal)
      • setSiteService

        public void setSiteService​(SiteService siteService)
      • setAuditServiceInternal

        public void setAuditServiceInternal​(AuditServiceInternal auditServiceInternal)
      • setSecurityService

        public void setSecurityService​(SecurityService securityService)
      • setItemServiceInternal

        public void setItemServiceInternal​(ItemServiceInternal itemServiceInternal)
      • setStudioUtils

        public void setStudioUtils​(StudioUtils studioUtils)
      • setServicesConfig

        public void setServicesConfig​(ServicesConfig servicesConfig)