Package com.day.cq.mailer
Enum MailingStatusCode
- All Implemented Interfaces:
Serializable,Comparable<MailingStatusCode>,java.lang.constant.Constable
Codes of Status a Mailing.
The Status is divided into two categories. One category is considered
erroneous. This can be tested with a call to
isError
method.- Since:
- 5.4
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThere was an attempt to sent the mailing, that failed.There was an attempt to sent the mailing that failed.Initial state.There was an attempt to sent the mailing, that failed.There was an attempt to sent the mailing, that failed.There was an attempt to sent the mailing, that failed.There was an attempt to sent the mailing, that failed.Mailing has been sent without error -
Method Summary
Modifier and TypeMethodDescriptionbooleanisError()True if the Status indicates a reason that prevented the Mailing from being deliveredstatic MailingStatusCodeReturns the enum constant of this type with the specified name.static MailingStatusCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NEW
Initial state. mailing may change -
SENT
Mailing has been sent without error- See Also:
-
ERROR
There was an attempt to sent the mailing, that failed. No reason given.- See Also:
-
NO_TEMPLATE
There was an attempt to sent the mailing, that failed. NoMessageTemplatecould be created for theMailing- See Also:
-
NO_GATEWAY
There was an attempt to sent the mailing, that failed. No Gateway is registered to sent mailing- See Also:
-
NO_ADDRESS
There was an attempt to sent the mailing, that failed. NoMailingRecipientdidn't provide an address suited for this mailing (eg. no e-mail address) -
INVALID_MESSAGE
There was an attempt to sent the mailing that failed. TemplateMessageTemplateprovided malformed values eg. e-mail addresses without "@" -
NOT_DELIVERABLE
There was an attempt to sent the mailing, that failed. TheMessageGatewaydenied relaying of the message
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
isError
public boolean isError()True if the Status indicates a reason that prevented the Mailing from being delivered- Returns:
- true if the state has to be considered abnormal false otherwise
-