hudson.plugins.jabber
Enum NotificationStrategy

java.lang.Object
  extended by java.lang.Enum<NotificationStrategy>
      extended by hudson.plugins.jabber.NotificationStrategy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NotificationStrategy>

Deprecated. only left here to deserialize old configs

public enum NotificationStrategy
extends java.lang.Enum<NotificationStrategy>

Represents the notification strategy.

Author:
Uwe Schaefer

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

ALL

public static final NotificationStrategy ALL
Deprecated. 
Not matter what, notifications should always be send.


ANY_FAILURE

public static final NotificationStrategy ANY_FAILURE
Deprecated. 
Whenever there is a failure, a notification should be send.


FAILURE_AND_FIXED

public static final NotificationStrategy FAILURE_AND_FIXED
Deprecated. 
Whenever there is a failure or a failure was fixed, a notification should be send.


STATECHANGE_ONLY

public static final NotificationStrategy STATECHANGE_ONLY
Deprecated. 
Notifications should be send only if there was a change in the build state, or this was the first build.

Method Detail

values

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

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

valueOf

public static NotificationStrategy valueOf(java.lang.String name)
Deprecated. 
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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

notificationWanted

public abstract boolean notificationWanted(hudson.model.AbstractBuild<?,?> build)
Deprecated. 
Signals if the given build qualifies to send a notification according to the current strategy.

Parameters:
build - The build for which it should be decided, if notification is wanted or not.
Returns:
true if, according to the given strategy, a notification should be sent.

getDisplayName

public java.lang.String getDisplayName()
Deprecated. 
Returns the name of the strategy to display in dialogs etc.

Returns:
the display name

forDisplayName

public static NotificationStrategy forDisplayName(java.lang.String displayName)
Deprecated. 
Returns the notification strategy with the given display name.

Parameters:
displayName - the display name
Returns:
the notification strategy or null


Copyright © 2010. All Rights Reserved.