Interface PublishService
-
- All Known Implementing Classes:
PublishServiceImpl
public interface PublishService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cancelPublishingPackages(String siteId, List<String> packageIds)
Cancel publishing packagesList<PublishingTarget>
getAvailablePublishingTargets(String siteId)
Get available publishing targets for given siteList<DeploymentHistoryGroup>
getDeploymentHistory(String siteId, int daysFromToday, int numberOfItems, String filterType)
Get deployment historyList<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)
Get deployment history items for given search parametersint
getPublishingHistoryTotal(String siteId, String environment, String path, String publisher, ZonedDateTime dateFrom, ZonedDateTime dateTo, String contentType, long state)
Get total number of publishing history items for given search parametersPublishingPackageDetails
getPublishingPackageDetails(String siteId, String packageId)
Get publishing package detailsList<PublishingPackage>
getPublishingPackages(String siteId, String environment, String path, List<String> states, int offset, int limit)
Get publishing packages for given search parametersint
getPublishingPackagesTotal(String siteId, String environment, String path, List<String> states)
Get total number of publishing packages for given search parametersboolean
isSitePublished(String siteId)
Check if site has ever been published.RepositoryChanges
publishAll(String siteId, String publishingTarget, String comment)
Publishes all changes for the given site & target
-
-
-
Method Detail
-
getPublishingPackagesTotal
int getPublishingPackagesTotal(String siteId, String environment, String path, List<String> states) throws SiteNotFoundException
Get total number of publishing packages for given search parameters- Parameters:
siteId
- site identifierenvironment
- publishing environmentpath
- regular expression for pathsstates
- publishing package states- Returns:
- total number of publishing packages
- Throws:
SiteNotFoundException
- site not found
-
getPublishingPackages
List<PublishingPackage> getPublishingPackages(String siteId, String environment, String path, List<String> states, int offset, int limit) throws SiteNotFoundException
Get publishing packages for given search parameters- Parameters:
siteId
- site identifierenvironment
- publishing environmentpath
- regular expression for pathsstates
- publishing package statesoffset
- offset for paginationlimit
- limit for pagination- Returns:
- list of publishing packages
- Throws:
SiteNotFoundException
- site not found
-
getPublishingPackageDetails
PublishingPackageDetails getPublishingPackageDetails(String siteId, String packageId) throws SiteNotFoundException, PublishingPackageNotFoundException
Get publishing package details- Parameters:
siteId
- site identifierpackageId
- package identifier- Returns:
- publishing package details
- Throws:
SiteNotFoundException
- site not foundPublishingPackageNotFoundException
-
cancelPublishingPackages
void cancelPublishingPackages(String siteId, List<String> packageIds) throws ServiceLayerException, UserNotFoundException
Cancel publishing packages- Parameters:
siteId
- site identifierpackageIds
- list of package identifiers- Throws:
SiteNotFoundException
- site not foundServiceLayerException
UserNotFoundException
-
getPublishingHistoryTotal
int getPublishingHistoryTotal(String siteId, String environment, String path, String publisher, ZonedDateTime dateFrom, ZonedDateTime dateTo, String contentType, long state)
Get total number of publishing history items for given search parameters- Parameters:
siteId
- site identifierenvironment
- environment to get publishing historypath
- regular expression to filter pathspublisher
- filter publishing history for specified userdateFrom
- lower boundary for date rangedateTo
- upper boundary for date rangecontentType
- publishing history for specified content typestate
- filter items by their state- Returns:
- total number of deployment history items
-
getPublishingHistory
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)
Get deployment history items for given search parameters- Parameters:
siteId
- site identifierenvironment
- environment to get publishing historypath
- regular expression to filter pathspublisher
- filter publishing history for specified userdateFrom
- lower boundary for date rangedateTo
- upper boundary for date rangecontentType
- publishing history for specified content typestate
- filter items by their statesortBy
- sort publishing historyorder
- apply order to publishing historyoffset
- offset of the first item in the result setlimit
- number of items to return- Returns:
- total number of publishing packages
-
getDeploymentHistory
List<DeploymentHistoryGroup> getDeploymentHistory(String siteId, int daysFromToday, int numberOfItems, String filterType) throws SiteNotFoundException
Get deployment history- Parameters:
siteId
- site identifierdaysFromToday
- number of days for historynumberOfItems
- number of items to displayfilterType
- filter results by filter type- Returns:
- Throws:
SiteNotFoundException
-
getAvailablePublishingTargets
List<PublishingTarget> getAvailablePublishingTargets(String siteId) throws SiteNotFoundException
Get available publishing targets for given site- Parameters:
siteId
- site identifier- Returns:
- list of available publishing targets
- Throws:
SiteNotFoundException
- Site doesn't exist
-
isSitePublished
boolean isSitePublished(String siteId) throws SiteNotFoundException
Check if site has ever been published.- Parameters:
siteId
- site identifier- Returns:
- true if site has been published at least once, otherwise false
- Throws:
SiteNotFoundException
- Site doesn't exist
-
publishAll
RepositoryChanges publishAll(String siteId, String publishingTarget, String comment) throws ServiceLayerException, UserNotFoundException
Publishes all changes for the given site & target- Parameters:
siteId
- the id of the sitepublishingTarget
- the publishing targetcomment
- submission comment- Returns:
- result of the publishing
- Throws:
ServiceLayerException
- if there is any error during publishingUserNotFoundException
-
-