|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dtw.webmail.util.config.Administration
This class...
Constructor Summary | |
Administration()
|
Method Summary | |
void |
addAdmin(java.lang.String username)
Adds an administrator (by username). |
java.lang.String |
getAdminList()
Convenience method for obtaining the admin users (by username) as a simple comma seperated list. |
boolean |
isAdmin(java.lang.String username)
Tests if a given user (by username) has administrative rights. |
boolean |
isEnabled()
Tests if the administration part is enabled. |
java.lang.String[] |
listAdmins()
Returns the list of users (by username) with administrative rights. |
void |
removeAdmin(java.lang.String username)
Removes an administrator (by username). |
void |
setAdminList(java.lang.String list)
Convenience method for setting the admin users (by username) as a simple comma seperated list. |
void |
setEnabled(boolean b)
Sets the flag that controls if the adminstration part is enabled. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Administration()
Method Detail |
public boolean isEnabled()
public void setEnabled(boolean b)
b
- true if enabled, false otherwise.public java.lang.String getAdminList()
Note that this is supposed to be helpful for simplifying the persistency mechanism.
public void setAdminList(java.lang.String list)
Note that this is supposed to be helpful for simplifying the persistency mechanism.
public java.lang.String[] listAdmins()
public void addAdmin(java.lang.String username)
username
- the username as String.public void removeAdmin(java.lang.String username)
username
- the username as String.public boolean isAdmin(java.lang.String username)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |