com.atlassian.jira.notification.type
Enum NotificationType

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

@PublicApi
public enum NotificationType
extends Enum<NotificationType>

A simple enumeration of the different JIRA notification types

Since:
v6.0

Enum Constant Summary
ALL_WATCHERS
           
COMPONENT_LEAD
           
CURRENT_ASSIGNEE
           
CURRENT_USER
           
GROUP
           
GROUP_CUSTOM_FIELD_VALUE
           
PROJECT_LEAD
           
PROJECT_ROLE
           
REPORTER
           
SINGLE_EMAIL_ADDRESS
           
SINGLE_USER
           
USER_CUSTOM_FIELD_VALUE
           
 
Method Summary
 String dbCode()
           
static NotificationType from(String dbCode)
          Returns a NotificationType from the database code that JIRA uses internally.
static NotificationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NotificationType[] 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

CURRENT_ASSIGNEE

public static final NotificationType CURRENT_ASSIGNEE

REPORTER

public static final NotificationType REPORTER

CURRENT_USER

public static final NotificationType CURRENT_USER

PROJECT_LEAD

public static final NotificationType PROJECT_LEAD

COMPONENT_LEAD

public static final NotificationType COMPONENT_LEAD

SINGLE_USER

public static final NotificationType SINGLE_USER

GROUP

public static final NotificationType GROUP

PROJECT_ROLE

public static final NotificationType PROJECT_ROLE

SINGLE_EMAIL_ADDRESS

public static final NotificationType SINGLE_EMAIL_ADDRESS

ALL_WATCHERS

public static final NotificationType ALL_WATCHERS

USER_CUSTOM_FIELD_VALUE

public static final NotificationType USER_CUSTOM_FIELD_VALUE

GROUP_CUSTOM_FIELD_VALUE

public static final NotificationType GROUP_CUSTOM_FIELD_VALUE
Method Detail

values

public static NotificationType[] 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 (NotificationType c : NotificationType.values())
    System.out.println(c);

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

valueOf

public static NotificationType 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

dbCode

public String dbCode()

from

public static NotificationType from(String dbCode)
Returns a NotificationType from the database code that JIRA uses internally.

Parameters:
dbCode - a magic string stored in the database tables
Returns:
a notification type
Throws:
IllegalArgumentException - if you give an invalid string


Copyright © 2002-2013 Atlassian. All Rights Reserved.