|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Database
Database API used for authentication.
Method Summary | |
---|---|
java.util.Set<java.lang.String> |
lookupPerms(java.lang.String userId)
Look up a user's permissions from the DB. |
java.lang.Object[] |
lookupUser(Username username)
Lookup details of a user from the DB. |
void |
setOptions(java.util.Map<java.lang.String,?> options)
Specify the options for the database. |
Method Detail |
---|
java.lang.Object[] lookupUser(Username username) throws java.sql.SQLException
username
- The username representing the user to look up.
java.sql.SQLException
- If an error occurs while communicating with the DB.java.util.Set<java.lang.String> lookupPerms(java.lang.String userId) throws java.sql.SQLException
userId
- The user id whose permissions we will retrieve.
java.sql.SQLException
- If an error occurs while communicating with the DB.void setOptions(java.util.Map<java.lang.String,?> options)
options
- A map of key:value pairs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |