blackboard.data.discussionboard
Class Message.MessageLifecycle

java.lang.Object
  extended by blackboard.base.BbEnum
      extended by blackboard.data.discussionboard.Message.MessageLifecycle
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable
Enclosing class:
Message

public static final class Message.MessageLifecycle
extends BbEnum

Enumeration for reflecting user forum role A normal user will have a null value in the role A blocked user will be a READER A moderator will be a MODERATOR We can add additional roles in this later

See Also:
Serialized Form

Field Summary
static Message.MessageLifecycle DEFAULT
           
static Message.MessageLifecycle DRAFT
           
static Message.MessageLifecycle HIDDEN
           
static Message.MessageLifecycle MODQUEUE
           
static Message.MessageLifecycle PUBLISHED
           
static Message.MessageLifecycle REJECTED
           
static Message.MessageLifecycle REJECTED_EXPLANATION
           
static Message.MessageLifecycle UNAVAILABLE
           
 
Method Summary
 boolean equals(java.lang.Object o)
          
static Message.MessageLifecycle fromExternalString(java.lang.String externalString)
          Returns the Message.MessageLifecycle element specified by the externalString.
 java.lang.String getName()
           
static Message.MessageLifecycle[] getValues()
          Returns an array of all of the elements in this enumeration.
 
Methods inherited from class blackboard.base.BbEnum
compareTo, defineAlias, defineDefault, fromExternalString, fromFieldName, fromFieldName, getDefaultElement, getValues, isDefault, readResolve, toExternalString, toFieldName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DRAFT

public static final Message.MessageLifecycle DRAFT

PUBLISHED

public static final Message.MessageLifecycle PUBLISHED

HIDDEN

public static final Message.MessageLifecycle HIDDEN

MODQUEUE

public static final Message.MessageLifecycle MODQUEUE

REJECTED

public static final Message.MessageLifecycle REJECTED

UNAVAILABLE

public static final Message.MessageLifecycle UNAVAILABLE

DEFAULT

public static final Message.MessageLifecycle DEFAULT

REJECTED_EXPLANATION

public static final Message.MessageLifecycle REJECTED_EXPLANATION
Method Detail

getValues

public static Message.MessageLifecycle[] getValues()
Returns an array of all of the elements in this enumeration.


fromExternalString

public static Message.MessageLifecycle fromExternalString(java.lang.String externalString)
                                                   throws java.lang.IllegalArgumentException
Returns the Message.MessageLifecycle element specified by the externalString.

Throws:
java.lang.IllegalArgumentException - if the given string is not an external representation of one of the elements this enumeration class.

getName

public java.lang.String getName()

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object


Copyright © 2003 Blackboard, Inc. All Rights Reserved.