Class AlertService
java.lang.Object
io.camunda.optimize.service.alert.AlertService
- All Implemented Interfaces:
ReportReferencingService
-
Constructor Summary
ConstructorsConstructorDescriptionAlertService(org.springframework.context.ApplicationContext applicationContext, AlertReader alertReader, AlertWriter alertWriter, ConfigurationService configurationService, AlertReminderJobFactory alertReminderJobFactory, AlertCheckJobFactory alertCheckJobFactory, ReportService reportService, AuthorizedCollectionService authorizedCollectionService, AlertRecipientValidator alertRecipientValidator) -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyAndMoveAlerts(String oldReportId, String newReportId) createAlert(AlertCreationRequestDto toCreate, String userId) org.quartz.JobDetailcreateStatusCheckJobDetails(AlertDefinitionDto fakeReportAlert) org.quartz.TriggercreateStatusCheckTrigger(AlertDefinitionDto fakeReportAlert, org.quartz.JobDetail jobDetail) voiddeleteAlert(String alertId, String userId) voiddeleteAlerts(List<String> alertIds, String userId) voiddestroy()getConflictedItemsForReportDelete(ReportDefinitionDto reportDefinition) getConflictedItemsForReportUpdate(ReportDefinitionDto currentDefinition, ReportDefinitionDto updateDefinition) org.quartz.SchedulergetStoredAlertsForCollection(String userId, String collectionId) voidhandleReportDeleted(ReportDefinitionDto reportDefinition) voidhandleReportUpdated(String reportId, ReportDefinitionDto updateDefinition) voidinit()voidupdateAlert(String alertId, AlertCreationRequestDto toCreate, String userId)
-
Constructor Details
-
AlertService
public AlertService(org.springframework.context.ApplicationContext applicationContext, AlertReader alertReader, AlertWriter alertWriter, ConfigurationService configurationService, AlertReminderJobFactory alertReminderJobFactory, AlertCheckJobFactory alertCheckJobFactory, ReportService reportService, AuthorizedCollectionService authorizedCollectionService, AlertRecipientValidator alertRecipientValidator)
-
-
Method Details
-
init
@PostConstruct public void init() -
destroy
@PreDestroy public void destroy() -
getScheduler
public org.quartz.Scheduler getScheduler() -
getStoredAlertsForCollection
-
createStatusCheckJobDetails
-
createStatusCheckTrigger
public org.quartz.Trigger createStatusCheckTrigger(AlertDefinitionDto fakeReportAlert, org.quartz.JobDetail jobDetail) -
getConflictedItemsForReportDelete
public Set<ConflictedItemDto> getConflictedItemsForReportDelete(ReportDefinitionDto reportDefinition) - Specified by:
getConflictedItemsForReportDeletein interfaceReportReferencingService
-
handleReportDeleted
- Specified by:
handleReportDeletedin interfaceReportReferencingService
-
getConflictedItemsForReportUpdate
public Set<ConflictedItemDto> getConflictedItemsForReportUpdate(ReportDefinitionDto currentDefinition, ReportDefinitionDto updateDefinition) - Specified by:
getConflictedItemsForReportUpdatein interfaceReportReferencingService
-
handleReportUpdated
- Specified by:
handleReportUpdatedin interfaceReportReferencingService
-
createAlert
-
copyAndMoveAlerts
-
updateAlert
-
deleteAlert
-
deleteAlerts
-