public class PublishingManagerImpl extends Object implements PublishingManager
| Modifier and Type | Field and Description |
|---|---|
protected ContentRepository |
contentRepository |
protected ContentService |
contentService |
protected DependencyService |
dependencyService |
protected DeploymentHistoryProvider |
deploymentHistoryProvider |
protected DeploymentService |
deploymentService |
protected ObjectMetadataManager |
objectMetadataManager |
protected ObjectStateService |
objectStateService |
protected PublishRequestMapper |
publishRequestMapper |
protected RetryingOperationFacade |
retryingOperationFacade |
protected ServicesConfig |
servicesConfig |
protected SiteService |
siteService |
protected StudioConfiguration |
studioConfiguration |
| Constructor and Description |
|---|
PublishingManagerImpl() |
protected SiteService siteService
protected ObjectStateService objectStateService
protected ContentService contentService
protected DeploymentService deploymentService
protected ContentRepository contentRepository
protected ObjectMetadataManager objectMetadataManager
protected ServicesConfig servicesConfig
protected StudioConfiguration studioConfiguration
protected DependencyService dependencyService
protected DeploymentHistoryProvider deploymentHistoryProvider
protected PublishRequestMapper publishRequestMapper
protected RetryingOperationFacade retryingOperationFacade
public List<PublishRequest> getItemsReadyForDeployment(String site, String environment)
getItemsReadyForDeployment in interface PublishingManagerpublic DeploymentItemTO processItem(PublishRequest item) throws DeploymentException, SiteNotFoundException
processItem in interface PublishingManagerDeploymentExceptionSiteNotFoundExceptionpublic void markItemsCompleted(String site, String environment, List<PublishRequest> processedItems) throws DeploymentException
markItemsCompleted in interface PublishingManagerDeploymentExceptionpublic void markItemsProcessing(String site, String environment, List<PublishRequest> itemsToDeploy) throws DeploymentException
markItemsProcessing in interface PublishingManagerDeploymentExceptionpublic void markItemsReady(String site, String environment, List<PublishRequest> copyToEnvironmentItems) throws DeploymentException
markItemsReady in interface PublishingManagerDeploymentExceptionpublic void markItemsBlocked(String site, String environment, List<PublishRequest> copyToEnvironmentItems) throws DeploymentException
markItemsBlocked in interface PublishingManagerDeploymentExceptionpublic List<DeploymentItemTO> processMandatoryDependencies(PublishRequest item, Set<String> pathsToDeploy, Set<String> missingDependenciesPaths) throws DeploymentException, ServiceLayerException
processMandatoryDependencies in interface PublishingManagerDeploymentExceptionServiceLayerExceptionpublic boolean isPublishingBlocked(String site)
isPublishingBlocked in interface PublishingManagerpublic boolean hasPublishingQueuePackagesReady(String site)
hasPublishingQueuePackagesReady in interface PublishingManagerpublic String getPublishingStatus(String site)
getPublishingStatus in interface PublishingManagerpublic boolean isPublishingQueueEmpty(String site)
isPublishingQueueEmpty in interface PublishingManagerpublic void resetProcessingQueue(String site, String environment)
PublishingManagerresetProcessingQueue in interface PublishingManagersite - site to useenvironment - environment to usepublic String getIndexFile()
public boolean isEnablePublishingWithoutDependencies()
public SiteService getSiteService()
public void setSiteService(SiteService siteService)
public ObjectStateService getObjectStateService()
public void setObjectStateService(ObjectStateService objectStateService)
public ContentService getContentService()
public void setContentService(ContentService contentService)
public DeploymentService getDeploymentService()
public void setDeploymentService(DeploymentService deploymentService)
public ContentRepository getContentRepository()
public void setContentRepository(ContentRepository contentRepository)
public ObjectMetadataManager getObjectMetadataManager()
public void setObjectMetadataManager(ObjectMetadataManager objectMetadataManager)
public ServicesConfig getServicesConfig()
public void setServicesConfig(ServicesConfig servicesConfig)
public StudioConfiguration getStudioConfiguration()
public void setStudioConfiguration(StudioConfiguration studioConfiguration)
public DependencyService getDependencyService()
public void setDependencyService(DependencyService dependencyService)
public DeploymentHistoryProvider getDeploymentHistoryProvider()
public void setDeploymentHistoryProvider(DeploymentHistoryProvider deploymentHistoryProvider)
public PublishRequestMapper getPublishRequestMapper()
public void setPublishRequestMapper(PublishRequestMapper publishRequestMapper)
public RetryingOperationFacade getRetryingOperationFacade()
public void setRetryingOperationFacade(RetryingOperationFacade retryingOperationFacade)
Copyright © 2022 CrafterCMS. All rights reserved.