|
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 | +--ORG.oclc.jassi.access.DefaultAccessClient | +--ORG.oclc.jassi.access.RBAccessClient
The RBAccessClient class provides access to the SiteSearch AccessServer for authentication and profiling. It also serves as a container for authorization and profiling information.
The RBAccessClient class is initialized with information from a server object and a user object.
AccessConnectInfo
,
UserStateObject
Fields inherited from class ORG.oclc.jassi.access.DefaultAccessClient |
autho,
authorizationStatus,
authorized,
authorizedDbs,
errorCode,
errorMessage,
initted,
IP,
log,
password,
user |
Constructor Summary | |
RBAccessClient()
Constructs an RBAccessClient object. |
Method Summary | |
protected void |
addRow(String tableName,
Hashtable row)
Adds a row to the input table the database. |
String |
autho()
Returns a String containing the authorization associated with the user. |
int |
authorizationStatus()
Returns an integer containing the Authorization status for the user. |
boolean |
authorizeByName(String autho,
String password)
Performs an authorization by name using the input authorization and password and returns a boolean indicating success or failure. |
boolean |
authorizeByName(String autho,
String system,
String password)
Performs an authorization by name using the input authorization and password and returns a boolean indicating success or failure. |
boolean |
authorizedByDNS()
Returns a boolean indicating whether the user is authorized by DNS address. |
boolean |
authorizedByIP()
Returns a boolean indicating whether the user is authorized by IP address. |
boolean |
authorizedByName()
Returns a boolean indicating whether this user is authorized by Name. |
int |
authorizeErrorCode()
Returns an integer containing the error code for failed authorizations which is an error Code from AccessClient. |
String |
authorizeErrorMessage()
Returns a String containing the error message for failed authorizations which is the error Message from AccessClient or empty string(""). |
boolean |
authosEquals(String autho,
String password)
Compares the input autho and password to the existing autho/password. |
boolean |
checkAutho(int authLevel)
Checks to see if the user is authorized for this action |
boolean |
checkAutho(String accessType,
String objectName,
String objectType)
Checks to see if the user is authorized for this action for this object type |
void |
close()
Cleans up the connection to the AccessServer. |
boolean |
dbAccessAllowed(String dbname)
Returns a boolean indicating whether access to the input database is allowed. |
protected void |
deleteRow(String tableName,
String colName,
Object cellValue)
Deletes a row from a table in the database for the input table name, column, and cell. |
Object |
get(String resourceName,
Object resourceObject)
Returns an Object containing the value for the input resource name from the user's profile data from the category defined in the input resourceObject. |
Object |
getDbList()
Gets the authorized database list for the user where the Object returned is a Vector object containing a list of database names. |
Vector |
getList(String uid,
String accessType,
String objectType)
|
Object |
getMetaData()
Gets the MetaData object which describes the available profile data. |
protected Vector |
getRows(String tableName,
String colName,
Object cellValue)
Returns a Vector containing a row or rows from a table in the database for the input database table, column and cell. |
void |
initialize(Object serverObj,
Object user)
Initializes the SiteSearch Access Client for the JaSSI using the configuration information held in the input AccessConnectInfo object and the UserStateObject. |
String |
IP()
Returns a String containing the IP Address associated with the user. |
Vector |
loadPersistentUserProfile()
Retrieves persistent user profile information from the database |
String |
password()
Returns a String containing the password associated with the user. |
protected void |
replaceRow(String tableName,
Hashtable changes,
String colName,
Object cellValue)
Replaces a row in a table in the database for the input database table, column, and cell. |
boolean |
same(String grp,
String rdgrp)
|
void |
savePersistentUserProfile(Vector pups)
Saves persistent user profile information to the database |
void |
setAuthoPassword(String authorization,
String password)
Sets the authorization/password associated with the user to the input authorization and password. |
void |
setDbList(Object dbs)
Sets the database list for the user. |
void |
setLog(Log log)
Sets the log that logging will write to. |
String |
toString()
Generates a String representation of the Object. |
Object |
user()
Returns an Object containing user information which has been associated with the AccessClient object - in this client, a UserStateObject. |
Methods inherited from class ORG.oclc.jassi.access.DefaultAccessClient |
authorizeByDNS,
authorizeByIP,
delete,
getRemoteAutho,
getRemotePassword,
put |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public RBAccessClient()
Method Detail |
public boolean checkAutho(int authLevel)
public boolean checkAutho(String accessType, String objectName, String objectType)
public void initialize(Object serverObj, Object user)
serverObj
- the application's Access Server Information ObjectuserObj
- a user context objectpublic void setLog(Log log)
log
- the log to write topublic boolean authorizeByName(String autho, String password)
autho
- the user's authorizationpassword
- the user's passwordpublic boolean authorizeByName(String autho, String system, String password)
autho
- the user's authorizationsystem
- the system to log in topassword
- the user's passwordpublic Object getMetaData()
public Object getDbList()
public Vector getList(String uid, String accessType, String objectType)
public void setDbList(Object dbs)
dbs
- the Object containing a dblistpublic boolean dbAccessAllowed(String dbname)
dbname
- the name of the database.public boolean authorizedByName()
public boolean authorizedByIP()
public boolean authorizedByDNS()
public boolean authosEquals(String autho, String password)
autho
- the authorization name to comparepassword
- the password to compare.public int authorizeErrorCode()
AccessClient
public String authorizeErrorMessage()
AccessClient
public void setAuthoPassword(String authorization, String password)
authorization
- the name used to authorize.password
- the password used to authorize.public String autho()
public String password()
public String IP()
public int authorizationStatus()
AccessClient
public Object user()
UserStateObject
public Object get(String resourceName, Object resourceObject)
resourceName
- the name of the data to retrieveresourceObject
- the name of the category or the category object
itself where the resource can be located. null can be passed in;
this is here for extensibility purposes. Defaults to the "authos" table.protected Vector getRows(String tableName, String colName, Object cellValue)
tableName
- the name of the database tablecolName
- the name of the column in which to look for the cellValuecellValue
- the value to look for the the colNameprotected void replaceRow(String tableName, Hashtable changes, String colName, Object cellValue)
tableName
- the name of the database tablechanges
- the column names and valuescolName
- the name of the column in which to look for the cellValuecellValue
- the value to look for the the colNameprotected void addRow(String tableName, Hashtable row)
tableName
- the name of the database tablerow
- the column names and valuesprotected void deleteRow(String tableName, String colName, Object cellValue)
tableName
- the name of the database tablecolName
- the name of the column in which to look for the cellValuecellValue
- the value to look for the the colNamepublic void close()
public String toString()
public boolean same(String grp, String rdgrp)
public Vector loadPersistentUserProfile()
public void savePersistentUserProfile(Vector pups)
Vector
- pupi user profile inforamtion
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |