| java.lang.Object org.mmbase.security.Rank
Rank | final public class Rank implements Comparable<Rank>,java.io.Serializable(Code) | | This class defines Rank objects which are used in security implementation. Ranks can be
associated with users. Every Rank has an unique integer 'height' (so every rank is higher or
lower than any other rank) and a String which can be used to identify it.
Possible Ranks are maintained by static methods in this class. Generally the 'anonymous', 'basic
user' and 'adminstrator' ranks should always be available, and only be delete with good reason.
author: Eduard Witteveen author: Pierre van Rooden author: Michiel Meeuwissen version: $Id: Rank.java,v 1.18 2008/01/21 15:25:28 michiel Exp $ |
Constructor Summary | |
protected | Rank(int rank, String description) |
ADMIN | final public static Rank ADMIN(Code) | | Identifier for admin rank
|
ADMIN_INT | final public static int ADMIN_INT(Code) | | int value for the anonymous Rank
|
ANONYMOUS | final public static Rank ANONYMOUS(Code) | | Identifier for anonymous rank
|
ANONYMOUS_INT | final public static int ANONYMOUS_INT(Code) | | int value for the anonymous Rank
|
BASICUSER | final public static Rank BASICUSER(Code) | | Identifier for basic user rank
|
BASICUSER_INT | final public static int BASICUSER_INT(Code) | | int value for the basic user Rank
|
Rank | protected Rank(int rank, String description)(Code) | | constructor
|
compareTo | public int compareTo(Rank r)(Code) | | since: MMBase-1.6.4 |
createRank | public static Rank createRank(int rank, String rankDesc)(Code) | | Creates and adds a new Rank for the security system.
since: MMBase-1.6.4 |
deleteRank | public static Rank deleteRank(String rankDesc)(Code) | | Removes a rank from the security system.
since: MMBase-1.6.4 |
equals | public boolean equals(Object o)(Code) | | since: MMBase-1.6.4 |
getInt | public int getInt()(Code) | | This method gives back the internal int value of the rank
which can be used in switch statements
the internal int value |
getRanks | public static SortedSet<Rank> getRanks()(Code) | | Returns all ranks currently known by the security implemetation. Default and to start with there
are three ranks available: 'anonymous', 'basic user' and 'administrator'. You probably
should never remove them.
since: MMBase-1.6.4 |
registerRank | protected static Rank registerRank(Rank rank)(Code) | | since: MMBase-1.6.4 |
toString | public String toString()(Code) | | a string containing the description of the rank |
|
|