Class StudioPublisherTask
- java.lang.Object
-
- org.craftercms.studio.impl.v2.job.StudioClockTask
-
- org.craftercms.studio.impl.v2.job.StudioPublisherTask
-
- All Implemented Interfaces:
SiteJob
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class StudioPublisherTask extends StudioClockTask
-
-
Field Summary
Fields Modifier and Type Field Description protected static Set<String>
dbErrorNotifiedSites
protected static Map<String,Integer>
retryCounter
-
Fields inherited from class org.craftercms.studio.impl.v2.job.StudioClockTask
applicationContext, contentRepository, counters, executeEveryNCycles, offset, siteService, studioConfiguration
-
-
Constructor Summary
Constructors Constructor Description StudioPublisherTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
executeInternal(String siteId)
protected void
generateWorkflowActivity(String site, String environment, Set<String> packageIds, String username, String operation)
void
setActivityStreamServiceInternal(ActivityStreamServiceInternal activityStreamServiceInternal)
void
setAuditServiceInternal(AuditServiceInternal auditServiceInternal)
void
setMaxRetryCounter(int maxRetryCounter)
void
setNotificationService(NotificationService notificationService)
void
setPublishingManager(PublishingManager publishingManager)
void
setPublishingProgressServiceInternal(PublishingProgressServiceInternal publishingProgressServiceInternal)
void
setServicesConfig(ServicesConfig servicesConfig)
void
setUserServiceInternal(UserServiceInternal userServiceInternal)
-
Methods inherited from class org.craftercms.studio.impl.v2.job.StudioClockTask
checkCycleCounter, execute, setApplicationContext, setContentRepository, setCycleCounter, setExecuteEveryNCycles, setOffset, setSiteService, setStudioConfiguration
-
-
-
-
Method Detail
-
executeInternal
protected void executeInternal(String siteId)
- Specified by:
executeInternal
in classStudioClockTask
-
generateWorkflowActivity
protected void generateWorkflowActivity(String site, String environment, Set<String> packageIds, String username, String operation) throws ServiceLayerException, UserNotFoundException
-
setPublishingManager
public void setPublishingManager(PublishingManager publishingManager)
-
setServicesConfig
public void setServicesConfig(ServicesConfig servicesConfig)
-
setNotificationService
public void setNotificationService(NotificationService notificationService)
-
setAuditServiceInternal
public void setAuditServiceInternal(AuditServiceInternal auditServiceInternal)
-
setMaxRetryCounter
public void setMaxRetryCounter(int maxRetryCounter)
-
setPublishingProgressServiceInternal
public void setPublishingProgressServiceInternal(PublishingProgressServiceInternal publishingProgressServiceInternal)
-
setUserServiceInternal
public void setUserServiceInternal(UserServiceInternal userServiceInternal)
-
setActivityStreamServiceInternal
public void setActivityStreamServiceInternal(ActivityStreamServiceInternal activityStreamServiceInternal)
-
-