Interface DeploymentService
- All Known Implementing Classes:
DeploymentServiceImpl
public interface DeploymentService
// document
-
Method Summary
Modifier and TypeMethodDescriptionvoidbulkGoLive(String site, String environment, String path, String comment) Start executing bulk publish for given site, path on given environmentvoidcancelWorkflow(String site, String path) voidcancelWorkflowBulk(String site, Set<String> paths) voiddelete(String site, List<String> paths, String approver, ZonedDateTime scheduledDate, String submissionComment) Delete contentvoidvoiddeploy(String site, String environment, List<String> paths, ZonedDateTime scheduledDate, String approver, String submissionComment, boolean scheduleDateNow) booleanenablePublishing(String site, boolean enabled) Enable/Disable publishing for given sitegetScheduledItems(String site, String filterType) getScheduledItems(String site, String sort, boolean ascending, String subSort, boolean subAscending, String filterType) voidPublish given commit IDs on given environment for given sitevoidpublishItems(String site, String environment, ZonedDateTime schedule, List<String> paths, String submissionComment) Publish items in given environment for given sitevoidresetStagingEnvironment(String siteId) Reset staging environment to live for given site
-
Method Details
-
deploy
void deploy(String site, String environment, List<String> paths, ZonedDateTime scheduledDate, String approver, String submissionComment, boolean scheduleDateNow) throws DeploymentException, ServiceLayerException, UserNotFoundException -
delete
void delete(String site, List<String> paths, String approver, ZonedDateTime scheduledDate, String submissionComment) throws DeploymentException, ServiceLayerException, UserNotFoundException Delete content- Parameters:
site- site identifierpaths- list of paths to deleteapprover- user that approved deletionscheduledDate- scheduled date to execute deletionsubmissionComment- submission comment- Throws:
DeploymentException- general deployment errorSiteNotFoundException- if site does not existServiceLayerExceptionUserNotFoundException
-
getScheduledItems
-
cancelWorkflow
- Throws:
DeploymentException
-
cancelWorkflowBulk
- Throws:
DeploymentException
-
deleteDeploymentDataForSite
-
getScheduledItems
List<ContentItemTO> getScheduledItems(String site, String sort, boolean ascending, String subSort, boolean subAscending, String filterType) throws ServiceLayerException - Throws:
ServiceLayerException
-
bulkGoLive
void bulkGoLive(String site, String environment, String path, String comment) throws ServiceLayerException Start executing bulk publish for given site, path on given environment- Parameters:
site- site identifierenvironment- environment to publish topath- base path for bulk publishcomment- submission comment- Throws:
ServiceLayerException- exception is case of en error
-
enablePublishing
boolean enablePublishing(String site, boolean enabled) throws SiteNotFoundException, AuthenticationException Enable/Disable publishing for given site- Parameters:
site- site idenabled- true to enable publishing, false to disable publishing- Throws:
SiteNotFoundExceptionAuthenticationException
-
publishCommits
void publishCommits(String site, String environment, List<String> commitIds, String comment) throws ServiceLayerException, UserNotFoundException Publish given commit IDs on given environment for given site- Parameters:
site- site id to use for publishingenvironment- environment to use for publishingcommitIds- commit IDs to publish- Throws:
ServiceLayerExceptionUserNotFoundException
-
publishItems
void publishItems(String site, String environment, ZonedDateTime schedule, List<String> paths, String submissionComment) throws ServiceLayerException, DeploymentException, UserNotFoundException Publish items in given environment for given site- Parameters:
site- site id to use for publishingenvironment- environment to use for publishingpaths- item paths to publish- Throws:
SiteNotFoundExceptionEnvironmentNotFoundExceptionServiceLayerExceptionDeploymentExceptionUserNotFoundException
-
resetStagingEnvironment
void resetStagingEnvironment(String siteId) throws ServiceLayerException, org.craftercms.commons.crypto.CryptoException Reset staging environment to live for given site- Parameters:
siteId- site id to use for resetting- Throws:
ServiceLayerExceptionorg.craftercms.commons.crypto.CryptoException
-