org.activemath.webapp.user
Class UserRole

java.lang.Object
  extended by org.activemath.webapp.user.UserRole

public class UserRole
extends Object

Typesafe Enum Pattern


Field Summary
static UserRole ADMIN
           
static UserRole ANON
           
static UserRole AUTHOR
           
static UserRole LEARNER
           
static UserRole TUTOR
           
static List<UserRole> VALUES
           
static UserRole VISITOR
           
 
Method Summary
static UserRole getByName(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VALUES

public static final List<UserRole> VALUES

ANON

public static final UserRole ANON

VISITOR

public static final UserRole VISITOR

LEARNER

public static final UserRole LEARNER

TUTOR

public static final UserRole TUTOR

AUTHOR

public static final UserRole AUTHOR

ADMIN

public static final UserRole ADMIN
Method Detail

getByName

public static final UserRole getByName(String name)
Returns:
UserRole instance for type name, or null.

toString

public String toString()
Overrides:
toString in class Object