com.atlassian.jira.notification
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotificationFilterContext
public NotificationFilterContext()
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 objectstateValue
- the value of the state object
- Returns:
- the previs value eg
Map.put(Object, Object)
Copyright © 2002-2014 Atlassian. All Rights Reserved.