Class PublishingManagerImpl
java.lang.Object
org.craftercms.studio.impl.v1.service.deployment.PublishingManagerImpl
- All Implemented Interfaces:
PublishingManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentRepositoryprotected ContentServiceprotected DependencyServiceprotected DeploymentServiceprotected ItemServiceInternalstatic final Stringprotected PublishRequestMapperprotected RetryingDatabaseOperationFacadeprotected ServicesConfigprotected StudioConfigurationprotected WorkflowServiceInternal -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Valid List<PublishRequest> getItemsReadyForDeployment(String site, String environment) @Valid StringgetPublishingStatus(String site) @javax.validation.Valid booleanboolean@javax.validation.Valid booleanisPublishingBlocked(String site) @javax.validation.Valid 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 environment, 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)voidsetContentRepository(ContentRepository contentRepository) voidsetContentService(ContentService contentService) voidsetDependencyService(DependencyService dependencyService) voidsetDeploymentService(DeploymentService deploymentService) voidsetItemServiceInternal(ItemServiceInternal itemServiceInternal) voidsetPublishedState(String site, String environment, List<PublishRequest> items) Updates item states to publish state according to the publishing environment (stage vs live)voidsetPublishRequestMapper(PublishRequestMapper publishRequestMapper) voidsetRetryingDatabaseOperationFacade(RetryingDatabaseOperationFacade retryingDatabaseOperationFacade) voidsetServicesConfig(ServicesConfig servicesConfig) voidsetStudioConfiguration(StudioConfiguration studioConfiguration) voidsetWorkflowServiceInternal(WorkflowServiceInternal workflowServiceInternal)
-
Field Details
-
LIVE_ENVIRONMENT
- See Also:
-
contentService
-
deploymentService
-
contentRepository
-
servicesConfig
-
studioConfiguration
-
dependencyService
-
publishRequestMapper
-
itemServiceInternal
-
workflowServiceInternal
-
retryingDatabaseOperationFacade
-
-
Constructor Details
-
PublishingManagerImpl
public PublishingManagerImpl()
-
-
Method Details
-
getItemsReadyForDeployment
@Valid public @Valid List<PublishRequest> getItemsReadyForDeployment(String site, String environment) - Specified by:
getItemsReadyForDeploymentin interfacePublishingManager
-
processItem
public DeploymentItemTO processItem(PublishRequest item) throws DeploymentException, ServiceLayerException, UserNotFoundException - Specified by:
processItemin interfacePublishingManager- Throws:
DeploymentExceptionServiceLayerExceptionUserNotFoundException
-
setPublishedState
Description copied from interface:PublishingManagerUpdates item states to publish state according to the publishing environment (stage vs live)- Specified by:
setPublishedStatein interfacePublishingManager- Parameters:
site- the site idenvironment- the environment where the items were publisheditems- the published items
-
markItemsCompleted
@Valid public void markItemsCompleted(String site, String environment, List<PublishRequest> processedItems) - Specified by:
markItemsCompletedin interfacePublishingManager
-
markItemsProcessing
@Valid public void markItemsProcessing(String site, String environment, List<PublishRequest> itemsToDeploy) - Specified by:
markItemsProcessingin interfacePublishingManager
-
markItemsReady
@Valid public void markItemsReady(String site, String environment, List<PublishRequest> copyToEnvironmentItems) - Specified by:
markItemsReadyin interfacePublishingManager
-
markItemsBlocked
@Valid public void markItemsBlocked(String site, String environment, List<PublishRequest> copyToEnvironmentItems) - Specified by:
markItemsBlockedin interfacePublishingManager
-
processMandatoryDependencies
public List<DeploymentItemTO> processMandatoryDependencies(PublishRequest item, Set<String> pathsToDeploy, Set<String> missingDependenciesPaths) throws DeploymentException, ServiceLayerException, UserNotFoundException - Specified by:
processMandatoryDependenciesin interfacePublishingManager- Throws:
DeploymentExceptionServiceLayerExceptionUserNotFoundException
-
isPublishingBlocked
- Specified by:
isPublishingBlockedin interfacePublishingManager
-
hasPublishingQueuePackagesReady
- Specified by:
hasPublishingQueuePackagesReadyin interfacePublishingManager
-
getPublishingStatus
- Specified by:
getPublishingStatusin interfacePublishingManager
-
isPublishingQueueEmpty
- Specified by:
isPublishingQueueEmptyin interfacePublishingManager
-
resetProcessingQueue
Description copied from interface:PublishingManagerReset items being in processing state (skip publishing cycle or recover from error)- Specified by:
resetProcessingQueuein interfacePublishingManager- Parameters:
site- site to useenvironment- environment to use
-
isEnablePublishingWithoutDependencies
public boolean isEnablePublishingWithoutDependencies() -
setContentService
-
setDeploymentService
-
setContentRepository
-
setServicesConfig
-
setStudioConfiguration
-
setDependencyService
-
setPublishRequestMapper
-
setItemServiceInternal
-
setWorkflowServiceInternal
-
setRetryingDatabaseOperationFacade
public void setRetryingDatabaseOperationFacade(RetryingDatabaseOperationFacade retryingDatabaseOperationFacade)
-