com.atlassian.jira.notification
Enum JiraNotificationReason

java.lang.Object
  extended by java.lang.Enum<JiraNotificationReason>
      extended by com.atlassian.jira.notification.JiraNotificationReason
All Implemented Interfaces:
NotificationReason, Serializable, Comparable<JiraNotificationReason>

public enum JiraNotificationReason
extends Enum<JiraNotificationReason>
implements NotificationReason

The reasons that JIRA can produce notification

Since:
v6.0

Enum Constant Summary
ADHOC_NOTIFICATION
          An AdhocNotificationService call has been made
ISSUE_EVENT
          And issue event has happened
MENTIONED
          The recipient has been @mentioned
SHARED
          The recipient has been shared with the user
 
Method Summary
static JiraNotificationReason valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JiraNotificationReason[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ISSUE_EVENT

public static final JiraNotificationReason ISSUE_EVENT
And issue event has happened


MENTIONED

public static final JiraNotificationReason MENTIONED
The recipient has been @mentioned


SHARED

public static final JiraNotificationReason SHARED
The recipient has been shared with the user


ADHOC_NOTIFICATION

public static final JiraNotificationReason ADHOC_NOTIFICATION
An AdhocNotificationService call has been made

Method Detail

values

public static JiraNotificationReason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (JiraNotificationReason c : JiraNotificationReason.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JiraNotificationReason valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2002-2014 Atlassian. All Rights Reserved.