Interface DeploymentService
- All Known Implementing Classes:
DeploymentServiceImpl
public interface DeploymentService
// document
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bulkGoLive
(String site, String environment, String path, String comment) Start executing bulk publish for given site, path on given environmentvoid
cancelWorkflow
(String site, String path) void
cancelWorkflowBulk
(String site, Set<String> paths) void
delete
(String site, List<String> paths, String approver, ZonedDateTime scheduledDate, String submissionComment) Delete contentvoid
void
deploy
(String site, String environment, List<String> paths, ZonedDateTime scheduledDate, String approver, String submissionComment, boolean scheduleDateNow) boolean
enablePublishing
(String site, boolean enabled) Enable/Disable publishing for given sitevoid
Publish given commit IDs on given environment for given sitevoid
resetStagingEnvironment
(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 existServiceLayerException
UserNotFoundException
-
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:
SiteNotFoundException
EnvironmentNotFoundException
CommitNotFoundException
-
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:
ServiceLayerException
org.craftercms.commons.crypto.CryptoException
-