org.mmbase.security
Class Rank

java.lang.Object
  |
  +--org.mmbase.security.Rank

public final class Rank
extends java.lang.Object

This class is somekinda enumeration of the ranks possible within the security context


Field Summary
static Rank ADMIN
          Identifier for admin rank
static int ADMIN_INT
          int value for the anonymous Rank
static Rank ANONYMOUS
          Identifier for anonymous rank
static int ANONYMOUS_INT
          int value for the anonymous Rank
static Rank BASICUSER
          Identifier for basic user rank
static int BASICUSER_INT
          int value for the basic user Rank
 
Method Summary
 int getInt()
          This method gives back the internal int value of the rank which can be used in switch statements
static Rank getRank(java.lang.String rankDesc)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ANONYMOUS_INT

public static final int ANONYMOUS_INT
int value for the anonymous Rank

BASICUSER_INT

public static final int BASICUSER_INT
int value for the basic user Rank

ADMIN_INT

public static final int ADMIN_INT
int value for the anonymous Rank

ANONYMOUS

public static final Rank ANONYMOUS
Identifier for anonymous rank

BASICUSER

public static final Rank BASICUSER
Identifier for basic user rank

ADMIN

public static final Rank ADMIN
Identifier for admin rank
Method Detail

getInt

public int getInt()
This method gives back the internal int value of the rank which can be used in switch statements
Returns:
the internal int value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a string containing the description of the rank

getRank

public static Rank getRank(java.lang.String rankDesc)


MMBase 2002