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 sitevoidPublish given commit IDs on 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
-
cancelWorkflow
- Throws:
DeploymentException
-
cancelWorkflowBulk
- Throws:
DeploymentException
-
deleteDeploymentDataForSite
-
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:
SiteNotFoundException- if the site cannot be foundAuthenticationException
-
publishCommits
void publishCommits(String site, String environment, List<String> commitIds, String comment) throws SiteNotFoundException, EnvironmentNotFoundException, CommitNotFoundException 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:
SiteNotFoundExceptionEnvironmentNotFoundExceptionCommitNotFoundException
-
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
-