Package step.plugins.notification.event
Class NotificationEventType
- java.lang.Object
-
- step.plugins.notification.event.NotificationEventType
-
- Direct Known Subclasses:
ExecutionEndedEventType
,ExecutionFailedEventType
,ScheduledTaskAssertionsFailedEventType
public abstract class NotificationEventType extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EXECUTION_DESCRIPTION
-
Constructor Summary
Constructors Modifier Constructor Description protected
NotificationEventType(MultitenancyManager multitenancyManager)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addNotificationBindingsForExecutionEvent(step.core.execution.ExecutionContext context, Notification notification)
protected void
buildWebhookNotificationMessage(ExecutionMessage executionMessage, NotificationSubscription subscription, step.core.execution.ExecutionContext context, java.lang.String eventType)
protected static Notification
createNotification(NotificationSubscription subscription, step.core.execution.ExecutionContext context)
protected static java.lang.String
getControllerUrl(ch.exense.commons.app.Configuration configuration)
protected static java.lang.String
getControllerUrl(step.core.execution.ExecutionContext context)
protected static java.lang.String
getDescription(step.core.execution.ExecutionContext context)
protected static java.util.Map<java.lang.String,java.lang.String>
getExecutionParameters(step.core.execution.ExecutionContext context)
java.lang.String
getExecutionUrl(ch.exense.commons.app.Configuration configuration, step.core.execution.model.Execution execution)
static java.lang.String
getExecutionUrl(MultitenancyManager multitenancyManager, step.core.execution.ExecutionContext context)
protected java.lang.String
getExecutionUrl(step.core.execution.ExecutionContext context)
protected static java.lang.String
getRecipientContext(NotificationSubscription subscription, step.core.execution.ExecutionContext context)
protected static step.core.artefacts.reports.ReportNodeStatus
getStatus(step.core.execution.ExecutionContext context)
static java.lang.String
getTenant(MultitenancyManager multitenancyManager, step.core.execution.ExecutionContext context)
protected java.lang.String
getTenant(step.core.execution.ExecutionContext context)
java.lang.String
getTenant(step.core.execution.model.Execution execution)
abstract Notification
handle(NotificationSubscription subscription, step.core.execution.ExecutionContext context)
-
-
-
Field Detail
-
EXECUTION_DESCRIPTION
public static final java.lang.String EXECUTION_DESCRIPTION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NotificationEventType
protected NotificationEventType(MultitenancyManager multitenancyManager)
-
-
Method Detail
-
getRecipientContext
protected static java.lang.String getRecipientContext(NotificationSubscription subscription, step.core.execution.ExecutionContext context)
-
createNotification
protected static Notification createNotification(NotificationSubscription subscription, step.core.execution.ExecutionContext context)
-
handle
public abstract Notification handle(NotificationSubscription subscription, step.core.execution.ExecutionContext context)
-
getTenant
protected java.lang.String getTenant(step.core.execution.ExecutionContext context)
-
getTenant
public static java.lang.String getTenant(MultitenancyManager multitenancyManager, step.core.execution.ExecutionContext context)
-
getTenant
public java.lang.String getTenant(step.core.execution.model.Execution execution)
-
addNotificationBindingsForExecutionEvent
protected void addNotificationBindingsForExecutionEvent(step.core.execution.ExecutionContext context, Notification notification)
-
getStatus
protected static step.core.artefacts.reports.ReportNodeStatus getStatus(step.core.execution.ExecutionContext context)
-
getExecutionParameters
protected static java.util.Map<java.lang.String,java.lang.String> getExecutionParameters(step.core.execution.ExecutionContext context)
-
getDescription
protected static java.lang.String getDescription(step.core.execution.ExecutionContext context)
-
getExecutionUrl
protected java.lang.String getExecutionUrl(step.core.execution.ExecutionContext context)
-
getExecutionUrl
public static java.lang.String getExecutionUrl(MultitenancyManager multitenancyManager, step.core.execution.ExecutionContext context)
-
getExecutionUrl
public java.lang.String getExecutionUrl(ch.exense.commons.app.Configuration configuration, step.core.execution.model.Execution execution)
-
getControllerUrl
protected static java.lang.String getControllerUrl(step.core.execution.ExecutionContext context)
-
getControllerUrl
protected static java.lang.String getControllerUrl(ch.exense.commons.app.Configuration configuration)
-
buildWebhookNotificationMessage
protected void buildWebhookNotificationMessage(ExecutionMessage executionMessage, NotificationSubscription subscription, step.core.execution.ExecutionContext context, java.lang.String eventType)
-
-