|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.security.voms.database.DBAdmin
A class representing VO administrators. Essentially, a wrapper class for the admin table.
Field Summary | |
private int |
ca
Issuer certificate authority. |
private long |
createdBy
The id of the client who created this administrator. |
private long |
createdSerial
The number of the transaction that created this administrator. |
private java.lang.String |
dn
The distinguished name of this administrator. |
private static int |
DN
|
private long |
id
The internal id of this administrator. |
private static int |
ID
|
private static org.apache.log4j.Logger |
log
Logger. |
(package private) static Sequence |
seq
Seqence. |
Constructor Summary | |
private |
DBAdmin(long id)
|
private |
DBAdmin(java.lang.String dn,
DBCA ca)
|
Method Summary | |
static DBAdmin |
createAdmin(java.lang.String dn,
DBCA ca)
|
DBUser |
getAsDBUser()
|
User |
getAsUser()
Return this as a User. |
DBCA |
getCA()
|
java.lang.String |
getCADN()
Returns the name of this admin's CA, if present (convenience method). |
int |
getCAId()
|
DBAdmin |
getCreatedBy()
|
long |
getCreatedById()
|
long |
getCreatedSerial()
|
java.lang.String |
getDN()
|
long |
getId()
|
static DBAdmin |
getInstance(long id)
|
static DBAdmin |
getInstance(java.lang.String name,
DBCA ca)
|
static DBAdmin |
getInstanceFromAttribute(java.lang.String attribute)
|
static DBAdmin |
getInstanceFromCapability(java.lang.String groupname,
java.lang.String rolename,
java.lang.String capability)
|
static DBAdmin |
getInstanceFromGroup(java.lang.String groupname)
|
static DBAdmin |
getInstanceFromRole(QualifiedRole role)
|
private void |
initialize(int from)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static org.apache.log4j.Logger log
private java.lang.String dn
private long id
private int ca
private long createdBy
private long createdSerial
static final Sequence seq
private static final int DN
private static final int ID
Constructor Detail |
private DBAdmin(java.lang.String dn, DBCA ca) throws GeneralDatabaseException, NotInDatabase, ArgumentException
private DBAdmin(long id) throws GeneralDatabaseException, NotInDatabase
Method Detail |
private void initialize(int from) throws GeneralDatabaseException, NotInDatabase
GeneralDatabaseException
NotInDatabase
public static DBAdmin getInstance(java.lang.String name, DBCA ca) throws GeneralDatabaseException, NotInDatabase, ArgumentException
GeneralDatabaseException
NotInDatabase
ArgumentException
public static DBAdmin getInstance(long id) throws GeneralDatabaseException, NotInDatabase
GeneralDatabaseException
NotInDatabase
public static DBAdmin getInstanceFromAttribute(java.lang.String attribute) throws GeneralDatabaseException, NotInDatabase, ArgumentException
GeneralDatabaseException
NotInDatabase
ArgumentException
public static DBAdmin getInstanceFromGroup(java.lang.String groupname) throws GeneralDatabaseException, NotInDatabase, ArgumentException
GeneralDatabaseException
NotInDatabase
ArgumentException
public static DBAdmin getInstanceFromRole(QualifiedRole role) throws GeneralDatabaseException, NotInDatabase, ArgumentException
GeneralDatabaseException
NotInDatabase
ArgumentException
public static DBAdmin getInstanceFromCapability(java.lang.String groupname, java.lang.String rolename, java.lang.String capability) throws DatabaseError, NotInDatabase, InconsistentDatabase, ArgumentException
DatabaseError
NotInDatabase
InconsistentDatabase
ArgumentException
public long getId()
public int getCAId()
public java.lang.String getDN()
public java.lang.String toString()
toString
in class java.lang.Object
public long getCreatedById()
public long getCreatedSerial()
public DBCA getCA() throws GeneralDatabaseException
GeneralDatabaseException
public DBAdmin getCreatedBy() throws GeneralDatabaseException, NotInDatabase
GeneralDatabaseException
NotInDatabase
public java.lang.String getCADN() throws GeneralDatabaseException
GeneralDatabaseException
public static DBAdmin createAdmin(java.lang.String dn, DBCA ca) throws ArgumentException, GeneralDatabaseException
ArgumentException
GeneralDatabaseException
public User getAsUser() throws GeneralDatabaseException, NotInDatabase
GeneralDatabaseException
NotInDatabase
public DBUser getAsDBUser() throws GeneralDatabaseException, NotInDatabase
GeneralDatabaseException
NotInDatabase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |