|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eaglei.repository.auth.AuthUserTomcatFactory
public class AuthUserTomcatFactory
Simple lightweight class to manage RDBMS authorization system users for the purpose of importing and exporting auth. users.
| Method Summary | |
|---|---|
void |
commitMultiple(javax.servlet.http.HttpServletRequest request,
java.util.Collection<? extends AuthUser> authUsers)
Commit a group of modified (or created) entries, more efficient for use by import. |
AuthUser |
create(java.lang.String username)
Create a new auth user in the DB with indicated username. |
AuthUserTomcat |
find(java.lang.String targetUsername)
Get the auth-db description of the indicated user, if present. |
java.util.Map<java.lang.String,AuthUserTomcat> |
findAllAsMap()
Get a Map of each username key to AuthUserTomcat object. |
static java.sql.Connection |
getConnection()
Get a jdbc Connection to the authentication RDBMS Has to be public so AuthUserTomcat can use it. |
static AuthUserTomcatFactory |
getInstance()
Getter for singleton. |
org.openrdf.model.URI |
getType()
get the URI identifying this AuthUser implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AuthUserTomcatFactory getInstance()
public AuthUserTomcat find(java.lang.String targetUsername)
throws javax.servlet.ServletException
find in interface AuthUserFactorytargetUsername - the username to look up
javax.servlet.ServletException
public java.util.Map<java.lang.String,AuthUserTomcat> findAllAsMap()
throws javax.servlet.ServletException
findAllAsMap in interface AuthUserFactoryjavax.servlet.ServletExceptionpublic AuthUser create(java.lang.String username)
create in interface AuthUserFactoryusername - the username to look up
public static java.sql.Connection getConnection()
throws javax.naming.NamingException,
java.sql.SQLException
javax.naming.NamingException
java.sql.SQLException
public void commitMultiple(javax.servlet.http.HttpServletRequest request,
java.util.Collection<? extends AuthUser> authUsers)
throws javax.servlet.ServletException
commitMultiple in interface AuthUserFactoryrequest - the servlet requestauthUsers - the users to commit
javax.servlet.ServletExceptionpublic org.openrdf.model.URI getType()
getType in interface AuthUserFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||