|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cmu.jspsurveymanager.data.AdminStorage
public class AdminStorage
Field Summary | |
---|---|
static char |
DENIED
Character that represents a denied permission. |
static char |
GRANTED
Character that represents a granted permission. |
Constructor Summary | |
---|---|
AdminStorage()
|
|
AdminStorage(DatabaseObjectStorage objectStorage)
|
Method Summary | |
---|---|
void |
deleteAdmin(Admin admin)
|
Admin |
getAdmin(int id)
Loads the admin with the given unique ID. |
Admin |
getAdmin(java.lang.String username)
|
Admin[] |
getAdmins()
Gets an array of all Admins. |
Admin |
getNewAdmin(java.lang.String username)
|
boolean |
saveAdmin(Admin admin)
Saves the user, but does not update their id yet! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char GRANTED
public static final char DENIED
Constructor Detail |
---|
public AdminStorage(DatabaseObjectStorage objectStorage)
public AdminStorage()
Method Detail |
---|
public Admin[] getAdmins()
public Admin getNewAdmin(java.lang.String username)
public boolean saveAdmin(Admin admin)
admin
-
public Admin getAdmin(java.lang.String username)
public Admin getAdmin(int id)
id
- The ID of the admin.
public void deleteAdmin(Admin admin)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |