Class NotificationFilterContext

java.lang.Object
com.atlassian.jira.notification.NotificationFilterContext
Direct Known Subclasses:
IssueEventNotificationFilterContext

@PublicApi public class NotificationFilterContext extends Object
A context object is passed to each NotificationFilter instance. It tells you why the notification is being sent. It also allows state to be associated with it to help out each plugin.
Since:
6.0
  • Constructor Details

    • NotificationFilterContext

      public NotificationFilterContext()
  • Method Details

    • getReason

      public NotificationReason getReason()
    • getIssue

      public Issue getIssue()
    • get

      public Object get(String stateKey)
      Allows you to get previously put state into this context.
      Returns:
      the value of the state object
    • put

      public Object put(String stateKey, Object stateValue)
      Allows you to put state into the Context.
      Parameters:
      stateKey - the key of the staTe object
      stateValue - the value of the state object
      Returns:
      the previs value eg Map.put(Object, Object)