Package org.sakaiproject.profile2.types
Enum EmailType
- java.lang.Object
-
- java.lang.Enum<EmailType>
-
- org.sakaiproject.profile2.types.EmailType
-
- All Implemented Interfaces:
Serializable,Comparable<EmailType>
public enum EmailType extends Enum<EmailType>
The types of emails that can be sent. See alsoPreferenceType.- Since:
- 1.5
- Author:
- Steve Swinsburg (steve.swinsburg@gmail.com)
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PreferenceTypetoPreference()Return the PreferenceType that matches this type.static EmailTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EmailType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMAIL_NOTIFICATION_REQUEST
public static final EmailType EMAIL_NOTIFICATION_REQUEST
-
EMAIL_NOTIFICATION_CONFIRM
public static final EmailType EMAIL_NOTIFICATION_CONFIRM
-
EMAIL_NOTIFICATION_MESSAGE_NEW
public static final EmailType EMAIL_NOTIFICATION_MESSAGE_NEW
-
EMAIL_NOTIFICATION_MESSAGE_REPLY
public static final EmailType EMAIL_NOTIFICATION_MESSAGE_REPLY
-
EMAIL_NOTIFICATION_WALL_EVENT_NEW
public static final EmailType EMAIL_NOTIFICATION_WALL_EVENT_NEW
-
EMAIL_NOTIFICATION_WALL_POST_MY_NEW
public static final EmailType EMAIL_NOTIFICATION_WALL_POST_MY_NEW
-
EMAIL_NOTIFICATION_WALL_POST_CONNECTION_NEW
public static final EmailType EMAIL_NOTIFICATION_WALL_POST_CONNECTION_NEW
-
EMAIL_NOTIFICATION_WALL_STATUS_NEW
public static final EmailType EMAIL_NOTIFICATION_WALL_STATUS_NEW
-
EMAIL_NOTIFICATION_WORKSITE_NEW
public static final EmailType EMAIL_NOTIFICATION_WORKSITE_NEW
-
EMAIL_NOTIFICATION_PROFILE_CHANGE
public static final EmailType EMAIL_NOTIFICATION_PROFILE_CHANGE
-
-
Method Detail
-
values
public static EmailType[] 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 (EmailType c : EmailType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EmailType 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
-
toPreference
public PreferenceType toPreference()
Return the PreferenceType that matches this type.- Returns:
-
-