|
Open SiteSearch 4.1.1 Final |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--ORG.oclc.access.api.AuthoResults
The AuthoResults class contains the profiling information retrieved from a user authorization. It is created in the AccessServer to return database information, BER encoded in order to return it to the AccessClient, and then recreated from the BER information.
| Constructor Summary | |
AuthoResults()
Constructs an empty AuthoResults object. |
|
AuthoResults(DataDir resultsDir,
MetaData tableMetaData)
Constructs an AuthosResults object from the BER-encoded data returned from the AccessServer and the MetaData object. |
|
AuthoResults(MetaData tableMetaData)
Constructs an AuthoResults object and initializes the MetaData object which contains information about the database table. |
|
| Method Summary | |
Hashtable |
getAuthoRow()
Returns a Hashtable object containing the row in the "authos" table for this user There should only be one |
Vector |
getDBList()
Returns a Vector containing the list of database names for which this user is authorized. |
Integer |
getMaxSessions()
Returns an Integer containing the "sessions" value from the "autho" table row |
Hashtable |
getRow(String tableName,
String colName,
Object cellValue)
Returns a Hashtable object containing a row from the user's authoResults |
Vector |
getTable(String tableName)
Returns a Vector object containing rows from a table |
String |
getUserAutho()
Returns a String containing the "autho" from the "authos" table |
Object |
getUserDBKey()
Returns a string containing the "userdbkey" from the "authos" table This is the key into the "userdb" table (the authorized databases). |
Object |
getValue(String tableName,
String columnName)
Returns column(s) found in a row in a table If there is more than one row, the values are returned in a Vector |
void |
setAuthoTable(Vector rows)
Inserts the "authos" table into AuthoResults |
void |
setDBTable(Vector rows)
Inserts the "dbs" tables into AuthoResults |
void |
setTable(String tableName,
Vector rows)
Inserts this table in authoResults |
void |
setUserDBTable(Vector rows)
Inserts the "userdb" table into AuthoResults |
DataDir |
toDataDir()
Returns a BER encoded AuthoResults so that it may be sent from the AccessServer to the AccessClient. |
String |
toString()
Returns a String containing the string representation of the object. |
| Methods inherited from class java.util.Hashtable |
clear,
clone,
contains,
containsKey,
containsValue,
elements,
entrySet,
equals,
get,
hashCode,
isEmpty,
keys,
keySet,
put,
putAll,
rehash,
remove,
size,
values |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public AuthoResults()
public AuthoResults(MetaData tableMetaData)
tableMetaData - information about the database tables
public AuthoResults(DataDir resultsDir,
MetaData tableMetaData)
resultsDir - ber object returned from the AccessServertableMetaData - information about the database tables| Method Detail |
public Integer getMaxSessions()
public String getUserAutho()
public Vector getTable(String tableName)
tableName - name of the table to look forpublic Hashtable getAuthoRow()
public Object getValue(String tableName,
String columnName)
tableName - name of the table to look incolumnName - name of the column to look inpublic Vector getDBList()
public Object getUserDBKey()
public Hashtable getRow(String tableName,
String colName,
Object cellValue)
tableName - the name of the tablecolName - the name of the columncellValue - the value in that column
public void setTable(String tableName,
Vector rows)
tableName - the name of the tablerows - one or more rows to insertpublic void setAuthoTable(Vector rows)
one - or more rowspublic void setUserDBTable(Vector rows)
one - or more rows of authorized dbspublic void setDBTable(Vector rows)
one - or more rows of database namespublic DataDir toDataDir()
public String toString()
|
Open SiteSearch 4.1.1 Final |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||