Enum MailNotificationProcessor.StatusCondition
- java.lang.Object
-
- java.lang.Enum<MailNotificationProcessor.StatusCondition>
-
- org.craftercms.deployer.impl.processors.MailNotificationProcessor.StatusCondition
-
- All Implemented Interfaces:
Serializable
,Comparable<MailNotificationProcessor.StatusCondition>
- Enclosing class:
- MailNotificationProcessor
public static enum MailNotificationProcessor.StatusCondition extends Enum<MailNotificationProcessor.StatusCondition>
Status conditions used to control whe the notifications should be sent.- Author:
- joseross
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ON_ANY_FAILURE
Notifications will be sent for deployments in which at least one processor has failed.ON_ANY_STATUS
Notifications will be sent for all deployments.ON_TOTAL_FAILURE
Notifications will be sent for deployments in which the general status indicates failure.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MailNotificationProcessor.StatusCondition
valueOf(String name)
Returns the enum constant of this type with the specified name.static MailNotificationProcessor.StatusCondition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ON_ANY_STATUS
public static final MailNotificationProcessor.StatusCondition ON_ANY_STATUS
Notifications will be sent for all deployments.
-
ON_ANY_FAILURE
public static final MailNotificationProcessor.StatusCondition ON_ANY_FAILURE
Notifications will be sent for deployments in which at least one processor has failed.
-
ON_TOTAL_FAILURE
public static final MailNotificationProcessor.StatusCondition ON_TOTAL_FAILURE
Notifications will be sent for deployments in which the general status indicates failure.
-
-
Method Detail
-
values
public static MailNotificationProcessor.StatusCondition[] 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 (MailNotificationProcessor.StatusCondition c : MailNotificationProcessor.StatusCondition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MailNotificationProcessor.StatusCondition 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
-
-