Interface PublishingManager
- All Known Implementing Classes:
PublishingManagerImpl
public interface PublishingManager
document
-
Method Summary
Modifier and TypeMethodDescriptiongetItemsReadyForDeployment(String site, String environment) getPublishingStatus(String site) @javax.validation.Valid booleanbooleanisPublishingBlocked(String site) booleanisPublishingQueueEmpty(String site) voidmarkItemsBlocked(String site, String environment, List<PublishRequest> copyToEnvironmentItems) voidmarkItemsCompleted(String site, String environment, List<PublishRequest> processedItems) voidmarkItemsProcessing(String site, String environment, List<PublishRequest> itemsToDeploy) voidmarkItemsReady(String site, String liveEnvironment, List<PublishRequest> copyToEnvironmentItems) processItem(PublishRequest item) processMandatoryDependencies(PublishRequest item, Set<String> pathsToDeploy, Set<String> missingDependenciesPaths) voidresetProcessingQueue(String site, String environment) Reset items being in processing state (skip publishing cycle or recover from error)voidsetPublishedState(String siteId, String environment, List<PublishRequest> items) Updates item states to publish state according to the publishing environment (stage vs live)
-
Method Details
-
getItemsReadyForDeployment
-
processItem
DeploymentItemTO processItem(PublishRequest item) throws DeploymentException, ServiceLayerException, UserNotFoundException -
markItemsCompleted
void markItemsCompleted(String site, String environment, List<PublishRequest> processedItems) throws DeploymentException - Throws:
DeploymentException
-
markItemsProcessing
void markItemsProcessing(String site, String environment, List<PublishRequest> itemsToDeploy) throws DeploymentException - Throws:
DeploymentException
-
markItemsReady
void markItemsReady(String site, String liveEnvironment, List<PublishRequest> copyToEnvironmentItems) throws DeploymentException - Throws:
DeploymentException
-
markItemsBlocked
void markItemsBlocked(String site, String environment, List<PublishRequest> copyToEnvironmentItems) throws DeploymentException - Throws:
DeploymentException
-
processMandatoryDependencies
List<DeploymentItemTO> processMandatoryDependencies(PublishRequest item, Set<String> pathsToDeploy, Set<String> missingDependenciesPaths) throws DeploymentException, ServiceLayerException, UserNotFoundException -
isPublishingBlocked
-
hasPublishingQueuePackagesReady
-
getPublishingStatus
-
isPublishingQueueEmpty
-
resetProcessingQueue
Reset items being in processing state (skip publishing cycle or recover from error)- Parameters:
site- site to useenvironment- environment to use
-
setPublishedState
Updates item states to publish state according to the publishing environment (stage vs live)- Parameters:
siteId- the site idenvironment- the environment where the items were publisheditems- the published items
-