public final class Rank extends Object implements Comparable<Rank>, Serializable
| Modifier and Type | Field and Description |
|---|---|
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
|
| Modifier | Constructor and Description |
|---|---|
protected |
Rank(int rank,
String description)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Rank r) |
static Rank |
createRank(int rank,
String rankDesc)
Creates and adds a new Rank for the security system.
|
static Rank |
deleteRank(String rankDesc)
Removes a rank from the security system.
|
boolean |
equals(Object o) |
int |
getInt()
This method gives back the internal int value of the rank
which can be used in switch statements
|
static Rank |
getRank(String rankDesc) |
static SortedSet<Rank> |
getRanks()
Returns all ranks currently known by the security implemetation.
|
int |
hashCode() |
protected static Rank |
registerRank(Rank rank) |
String |
toString() |
public static final int ANONYMOUS_INT
public static final int BASICUSER_INT
public static final int ADMIN_INT
public static final Rank ANONYMOUS
public static final Rank BASICUSER
public static final Rank ADMIN
protected Rank(int rank,
String description)
public int getInt()
public String toString()
public static Rank createRank(int rank, String rankDesc)
public static Rank deleteRank(String rankDesc)
public static SortedSet<Rank> getRanks()
public int hashCode()
hashCode in class ObjectObject.hashCode()public int compareTo(Rank r)
compareTo in interface Comparable<Rank>MMBase 1.9-SNAPSHOT - ${javadoctimestamp}