Package org.sakaiproject.profile2.types
Enum PreferenceType
- java.lang.Object
-
- java.lang.Enum<PreferenceType>
-
- org.sakaiproject.profile2.types.PreferenceType
-
- All Implemented Interfaces:
Serializable,Comparable<PreferenceType>
public enum PreferenceType extends Enum<PreferenceType>
These are the types of preferences in Profile2.We use these when checking if different options are enabled.
See also
EmailType.- Since:
- 1.5
- Author:
- Steve Swinsburg (steve.swinsburg@gmail.com)
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PreferenceTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PreferenceType[]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 PreferenceType EMAIL_NOTIFICATION_REQUEST
-
EMAIL_NOTIFICATION_CONFIRM
public static final PreferenceType EMAIL_NOTIFICATION_CONFIRM
-
EMAIL_NOTIFICATION_MESSAGE_NEW
public static final PreferenceType EMAIL_NOTIFICATION_MESSAGE_NEW
-
EMAIL_NOTIFICATION_MESSAGE_REPLY
public static final PreferenceType EMAIL_NOTIFICATION_MESSAGE_REPLY
-
EMAIL_NOTIFICATION_WALL_EVENT_NEW
public static final PreferenceType EMAIL_NOTIFICATION_WALL_EVENT_NEW
-
EMAIL_NOTIFICATION_WALL_POST_MY_NEW
public static final PreferenceType EMAIL_NOTIFICATION_WALL_POST_MY_NEW
-
EMAIL_NOTIFICATION_WALL_POST_CONNECTION_NEW
public static final PreferenceType EMAIL_NOTIFICATION_WALL_POST_CONNECTION_NEW
-
EMAIL_NOTIFICATION_WALL_STATUS_NEW
public static final PreferenceType EMAIL_NOTIFICATION_WALL_STATUS_NEW
-
EMAIL_NOTIFICATION_WORKSITE_NEW
public static final PreferenceType EMAIL_NOTIFICATION_WORKSITE_NEW
-
EMAIL_NOTIFICATION_PROFILE_CHANGE
public static final PreferenceType EMAIL_NOTIFICATION_PROFILE_CHANGE
-
OFFICIAL_IMAGE
public static final PreferenceType OFFICIAL_IMAGE
-
GRAVATAR_IMAGE
public static final PreferenceType GRAVATAR_IMAGE
-
KUDOS_RATING
public static final PreferenceType KUDOS_RATING
-
PICTURES
public static final PreferenceType PICTURES
-
ONLINE_STATUS
public static final PreferenceType ONLINE_STATUS
-
-
Method Detail
-
values
public static PreferenceType[] 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 (PreferenceType c : PreferenceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PreferenceType 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
-
-