|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eaglei.repository.admin.AuthUser
public class AuthUser
Simple lightweight class to manage RDBMS authorization system users for the purpose of importing and exporting auth. users. XXX this should eventually be folded into or merged with the AuthAdminBean but that code was too monolithic to give these functions.
| Method Summary | |
|---|---|
static void |
abortTransaction(java.sql.Connection c)
Hook to rollback and close the current transaction. |
static void |
commitTransaction(java.sql.Connection c)
Hook to commit and close the current transaction. |
static void |
create(java.sql.Connection c,
java.lang.String ausername,
java.lang.String apassword,
boolean aisSuperuser)
Create a new auth user in the DB with indicated username, password, and superuser status. |
static AuthUser |
find(java.lang.String targetUsername)
Get the auth-db description of the indicated user, if present. |
static java.util.Map<java.lang.String,AuthUser> |
findAllAsMap()
Get a Map of each username key to AuthUser object. |
static java.util.Set<java.lang.String> |
getAllUsernames()
Get all username keys in the DB. |
java.lang.String |
getPassword()
|
java.lang.String |
getUsername()
Getters |
boolean |
isSuperuser()
|
void |
setIsSuperuser(boolean su)
|
void |
setPassword(java.lang.String pw)
|
static java.sql.Connection |
startTransaction()
Hook to create a connection to manage one transaction. |
void |
update()
Update auth DB entries if any values have changed. |
void |
update(java.sql.Connection c)
Update auth DB entries if any values have changed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AuthUser find(java.lang.String targetUsername)
throws javax.naming.NamingException,
java.sql.SQLException
javax.naming.NamingException
java.sql.SQLException
public static java.util.Map<java.lang.String,AuthUser> findAllAsMap()
throws javax.naming.NamingException,
java.sql.SQLException
javax.naming.NamingException
java.sql.SQLException
public static java.util.Set<java.lang.String> getAllUsernames()
throws javax.naming.NamingException,
java.sql.SQLException
javax.naming.NamingException
java.sql.SQLException
public static java.sql.Connection startTransaction()
throws javax.naming.NamingException,
java.sql.SQLException
javax.naming.NamingException
java.sql.SQLException
public static void commitTransaction(java.sql.Connection c)
throws javax.naming.NamingException,
java.sql.SQLException
javax.naming.NamingException
java.sql.SQLException
public static void abortTransaction(java.sql.Connection c)
throws javax.naming.NamingException,
java.sql.SQLException
javax.naming.NamingException
java.sql.SQLException
public static void create(java.sql.Connection c,
java.lang.String ausername,
java.lang.String apassword,
boolean aisSuperuser)
throws javax.naming.NamingException,
java.sql.SQLException
javax.naming.NamingException
java.sql.SQLException
public void update()
throws javax.naming.NamingException,
java.sql.SQLException
javax.naming.NamingException
java.sql.SQLException
public void update(java.sql.Connection c)
throws javax.naming.NamingException,
java.sql.SQLException
javax.naming.NamingException
java.sql.SQLExceptionpublic java.lang.String getUsername()
public java.lang.String getPassword()
public boolean isSuperuser()
public void setPassword(java.lang.String pw)
public void setIsSuperuser(boolean su)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||