Enum AbstractNotificationRulesManager.DBWatchType
- java.lang.Object
-
- java.lang.Enum<AbstractNotificationRulesManager.DBWatchType>
-
- jetbrains.buildServer.notification.impl.AbstractNotificationRulesManager.DBWatchType
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractNotificationRulesManager.DBWatchType>
- Enclosing class:
- AbstractNotificationRulesManager<T,H extends AuthorityHolder>
public static enum AbstractNotificationRulesManager.DBWatchType extends Enum<AbstractNotificationRulesManager.DBWatchType>
Uncoupling database representation and java/UI representation. DB contains 3 watchtypes - project, buildtype, system; java contains 2 types - projectsOrBuildTypes and SystemWide; UI still contains 5 types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUILD_TYPE
PROJECT
SYSTEM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getId()
WatchType
getMatchingWatchType()
static AbstractNotificationRulesManager.DBWatchType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractNotificationRulesManager.DBWatchType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROJECT
public static final AbstractNotificationRulesManager.DBWatchType PROJECT
-
BUILD_TYPE
public static final AbstractNotificationRulesManager.DBWatchType BUILD_TYPE
-
SYSTEM
public static final AbstractNotificationRulesManager.DBWatchType SYSTEM
-
-
Method Detail
-
values
public static AbstractNotificationRulesManager.DBWatchType[] 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 (AbstractNotificationRulesManager.DBWatchType c : AbstractNotificationRulesManager.DBWatchType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractNotificationRulesManager.DBWatchType 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 nameNullPointerException
- if the argument is null
-
getMatchingWatchType
public WatchType getMatchingWatchType()
-
getId
public long getId()
-
-