org.sakaiproject.profile2.types
Enum EmailType

java.lang.Object
  extended by java.lang.Enum<EmailType>
      extended by 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 also PreferenceType.

Since:
1.5
Author:
Steve Swinsburg (steve.swinsburg@gmail.com)

Enum Constant Summary
EMAIL_NOTIFICATION_CONFIRM
           
EMAIL_NOTIFICATION_MESSAGE_NEW
           
EMAIL_NOTIFICATION_MESSAGE_REPLY
           
EMAIL_NOTIFICATION_PROFILE_CHANGE
           
EMAIL_NOTIFICATION_REQUEST
           
EMAIL_NOTIFICATION_WALL_EVENT_NEW
           
EMAIL_NOTIFICATION_WALL_POST_CONNECTION_NEW
           
EMAIL_NOTIFICATION_WALL_POST_MY_NEW
           
EMAIL_NOTIFICATION_WALL_STATUS_NEW
           
EMAIL_NOTIFICATION_WORKSITE_NEW
           
 
Method Summary
 PreferenceType toPreference()
          Return the PreferenceType that matches this type.
static EmailType valueOf(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.
 
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

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 name
NullPointerException - if the argument is null

toPreference

public PreferenceType toPreference()
Return the PreferenceType that matches this type.

Returns:


Copyright © 2008-2013 The Sakai Foundation. All Rights Reserved.