org.benow.web.message
Enum Message.Priority

java.lang.Object
  extended by java.lang.Enum<Message.Priority>
      extended by org.benow.web.message.Message.Priority
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Message.Priority>
Enclosing interface:
Message

public static enum Message.Priority
extends java.lang.Enum<Message.Priority>

Priorities for messages. By default:

  1. Important: always shown, even during operations which would typically not show message reception. Messages are sent to user via the system and via email.
  2. Normal: the default. Messages are sent via the system, and collected. If many messages queue or a certain period passes, a reminder of the messages is sent via email.
  3. Low: Messages are sent by the system and collected. Reminders are never sent via email. Message notification is delayed until other more important things are done.


Enum Constant Summary
Important
           
Low
           
Normal
           
 
Method Summary
static Message.Priority valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Message.Priority[] 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

Important

public static final Message.Priority Important

Normal

public static final Message.Priority Normal

Low

public static final Message.Priority Low
Method Detail

values

public static Message.Priority[] 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 (Message.Priority c : Message.Priority.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Message.Priority valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null