|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.fh_mannheim.mm.dms.framework.Accesstype
This class gives a representation of the accesstype of a specific user.
| Field Summary | |
static int |
ACCESSTYPE_COUNT
|
static int |
FULL
Full rights to do everything. |
static int |
GUEST
Guest may only view. |
static int |
NONE
User has no right to start the program. |
static int |
READ
Users may only view and bookmark. |
static int |
WRITE
Rights to edit and add new uploads. |
| Constructor Summary | |
Accesstype(int nAccesstype)
Constructor. |
|
| Method Summary | |
boolean |
equals(java.lang.Object other)
Compares two Accesstype objects. |
static int |
getAccesstype(java.lang.String strAccesstype)
Convert the accesstype to int. |
static java.lang.String |
getAccesstypeText(int nAccesstype)
Convert the accesstype to string. |
boolean |
hasFullRights()
Check if accesstype has admin-rights. |
boolean |
hasGuestRights()
Check if accesstype has rights to read. |
boolean |
hasLessRightsThan(Accesstype other)
Compares two Accesstype objects if less. |
boolean |
hasMoreRightsThan(Accesstype other)
Compares two Accesstype objects if more. |
boolean |
hasReadRights()
Check if accesstype has rights to read. |
boolean |
hasWriteRights()
Check if accesstype has rights to Add, Remove an Edit. |
org.w3c.dom.Element |
toElement(org.w3c.dom.Document doc)
Write information of accesstype in a xml element. |
org.w3c.dom.Element |
toElement(org.w3c.dom.Element element,
org.w3c.dom.Document doc)
Write information of accesstype in a xml element. |
int |
toInt()
Convert the accesstype to int. |
java.lang.String |
toString()
Convert the accesstype to string. |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NONE
public static final int GUEST
public static final int READ
public static final int WRITE
public static final int FULL
public static final int ACCESSTYPE_COUNT
| Constructor Detail |
public Accesstype(int nAccesstype)
nAccesstype - Pre-selected accesstype| Method Detail |
public static java.lang.String getAccesstypeText(int nAccesstype)
nAccesstype - Accesstype
public static int getAccesstype(java.lang.String strAccesstype)
strAccesstype - Accesstype as string
public boolean equals(java.lang.Object other)
other - Accesstype to compare
public boolean hasFullRights()
public boolean hasLessRightsThan(Accesstype other)
other - Accesstype to compare
public boolean hasMoreRightsThan(Accesstype other)
other - Accesstype to compare
public boolean hasGuestRights()
public boolean hasReadRights()
public boolean hasWriteRights()
public int toInt()
public java.lang.String toString()
toString in interface IElementpublic org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
toElement in interface IElementdoc - XML Document
public org.w3c.dom.Element toElement(org.w3c.dom.Element element,
org.w3c.dom.Document doc)
toElement in interface IElementelement - Root elementdoc - XML Document
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||