|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.security.JdbcDatabase
public class JdbcDatabase
JDBC implementation of the Database
api.
Constructor Summary | |
---|---|
JdbcDatabase()
Constructor. |
|
JdbcDatabase(Registry r)
Constructor. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JdbcDatabase(Registry r)
r
- The registry to use for resource lookup.public JdbcDatabase()
Method Detail |
---|
public java.lang.Object[] lookupUser(Username username) throws java.sql.SQLException
lookupUser
in interface Database
username
- The username representing the user to look up.
java.sql.SQLException
- If an error occurs while communicating with the DB.public java.util.Set<java.lang.String> lookupPerms(java.lang.String userId) throws java.sql.SQLException
lookupPerms
in interface Database
userId
- The user id whose permissions we will retrieve.
java.sql.SQLException
- If an error occurs while communicating with the DB.public void setOptions(java.util.Map<java.lang.String,?> options)
setOptions
in interface Database
options
- A map of key:value pairs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |