|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<NotificationStrategy>
hudson.plugins.jabber.NotificationStrategy
public enum NotificationStrategy
Represents the notification strategy.
| Enum Constant Summary | |
|---|---|
ALL
Deprecated. Not matter what, notifications should always be send. |
|
ANY_FAILURE
Deprecated. Whenever there is a failure, a notification should be send. |
|
FAILURE_AND_FIXED
Deprecated. Whenever there is a failure or a failure was fixed, a notification should be send. |
|
STATECHANGE_ONLY
Deprecated. Notifications should be send only if there was a change in the build state, or this was the first build. |
|
| Method Summary | |
|---|---|
static NotificationStrategy |
forDisplayName(java.lang.String displayName)
Deprecated. Returns the notification strategy with the given display name. |
java.lang.String |
getDisplayName()
Deprecated. Returns the name of the strategy to display in dialogs etc. |
abstract boolean |
notificationWanted(hudson.model.AbstractBuild<?,?> build)
Deprecated. Signals if the given build qualifies to send a notification according to the current strategy. |
static NotificationStrategy |
valueOf(java.lang.String name)
Deprecated. Returns the enum constant of this type with the specified name. |
static NotificationStrategy[] |
values()
Deprecated. 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 |
|---|
public static final NotificationStrategy ALL
public static final NotificationStrategy ANY_FAILURE
public static final NotificationStrategy FAILURE_AND_FIXED
public static final NotificationStrategy STATECHANGE_ONLY
| Method Detail |
|---|
public static NotificationStrategy[] values()
for (NotificationStrategy c : NotificationStrategy.values()) System.out.println(c);
public static NotificationStrategy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic abstract boolean notificationWanted(hudson.model.AbstractBuild<?,?> build)
build - The build for which it should be decided, if notification is
wanted or not.
public java.lang.String getDisplayName()
public static NotificationStrategy forDisplayName(java.lang.String displayName)
displayName - the display name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||