Class PublishServiceInternalImpl

  • All Implemented Interfaces:
    PublishServiceInternal, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class PublishServiceInternalImpl
    extends Object
    implements PublishServiceInternal, org.springframework.context.ApplicationContextAware
    • Field Detail

      • applicationContext

        protected org.springframework.context.ApplicationContext applicationContext
    • Constructor Detail

      • PublishServiceInternalImpl

        public PublishServiceInternalImpl()
    • Method Detail

      • getPublishingPackagesTotal

        public int getPublishingPackagesTotal​(String siteId,
                                              String environment,
                                              String path,
                                              List<String> states)
        Description copied from interface: PublishServiceInternal
        Get total number of publishing packages for given search parameters
        Specified by:
        getPublishingPackagesTotal in interface PublishServiceInternal
        Parameters:
        siteId - site identifier
        environment - publishing environment
        path - regular expression for paths
        states - publishing package states
        Returns:
        total number of publishing packages
      • getPublishingPackages

        public List<PublishingPackage> getPublishingPackages​(String siteId,
                                                             String environment,
                                                             String path,
                                                             List<String> states,
                                                             int offset,
                                                             int limit)
        Description copied from interface: PublishServiceInternal
        Get publishing packages for given search parameters
        Specified by:
        getPublishingPackages in interface PublishServiceInternal
        Parameters:
        siteId - site identifier
        environment - publishing environment
        path - regular expression for paths
        states - publishing package state
        offset - offset for pagination
        limit - limit for pagination
        Returns:
        list of publishing packages
      • getPublishingHistoryTotal

        public int getPublishingHistoryTotal​(String siteId,
                                             String environment,
                                             String path,
                                             String publisher,
                                             ZonedDateTime dateFrom,
                                             ZonedDateTime dateTo,
                                             String contentType,
                                             long state)
        Description copied from interface: PublishServiceInternal
        Get total number of publishing history items for given search parameters
        Specified by:
        getPublishingHistoryTotal in interface PublishServiceInternal
        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<PublishingHistoryItem> 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: PublishServiceInternal
        Get deployment history items for given search parameters
        Specified by:
        getPublishingHistory in interface PublishServiceInternal
        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
      • isSitePublished

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

        public int getNumberOfPublishes​(String siteId,
                                        int days)
        Description copied from interface: PublishServiceInternal
        Get number of publishes for site in given number of days
        Specified by:
        getNumberOfPublishes in interface PublishServiceInternal
        Parameters:
        siteId - site identifiers
        days - number of days
        Returns:
        number of publishes
      • getNumberOfPublishedItemsByState

        public int getNumberOfPublishedItemsByState​(String siteId,
                                                    int days,
                                                    String activityAction,
                                                    String publishState,
                                                    String publishAction)
        Description copied from interface: PublishServiceInternal
        Get number of published items for site in given number of days filtered by their previous state
        Specified by:
        getNumberOfPublishedItemsByState in interface PublishServiceInternal
        Parameters:
        siteId - site identifier
        days - number of days
        activityAction - the activity action to filter
        publishState - the publishing state to filter
        publishAction - the publishing action to filter
        Returns:
        number of newly created
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • setPublishRequestDao

        public void setPublishRequestDao​(PublishRequestDAO publishRequestDao)
      • setContentRepository

        public void setContentRepository​(ContentRepository contentRepository)
      • setItemServiceInternal

        public void setItemServiceInternal​(ItemServiceInternal itemServiceInternal)