|
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.JaSSIAccessClient
The JaSSIAccessClient class provides access to the SiteSearch AccessServer for authentication and profiling. It also serves as a container for authorization and profiling information.
The JaSSIAccessClient class is initialized with information from a server object and a user object.
AccessConnectInfo
,
UserStateObject
Constructor Summary | |
JaSSIAccessClient()
Constructs a JaSSIAccessClient 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 |
authorizeByDNS(String IPAddress)
Performs a Domain Name type authorization using the input IP address and returns a boolean indicating success or failure. |
boolean |
authorizeByIP(String IPAddress)
Performs an IP Address type authorization using the input IP address and returns a boolean indicating success or failure. |
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 |
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. |
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. |
void |
delete(String resourceName,
Object resourceObject)
Deletes the input resource name from the user's profile data. |
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. |
Object |
getMetaData()
Gets the MetaData object which describes the available profile data. |
String |
getRemoteAutho(String resourceName)
Returns a String containing the remote service authorization for the input resource name (ie: server name). |
String |
getRemotePassword(String resourceName)
Returns a String containing the remote service password for the input resource name (ie: server name). |
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. |
String |
password()
Returns a String containing the password associated with the user. |
void |
put(String resourceName,
Object value,
Object resourceObject)
Stores the input Object into the user's profile data into the the input resource name and category. |
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. |
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 java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public JaSSIAccessClient()
Method Detail |
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 authorizeByIP(String IPAddress)
IPAddress
- the input IPpublic boolean authorizeByDNS(String IPAddress)
IPAddress
- the IPAddress of the user the Domain Name will be
retrieved thru the IP address.public Object getMetaData()
public Object getDbList()
public void setDbList(Object dbs)
dbs
- the Object containing a dblistpublic String getRemoteAutho(String resourceName)
resourceName
- the name of server to get the authorization for.public String getRemotePassword(String resourceName)
resourceName
- the name of the resource.public 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.public void put(String resourceName, Object value, Object resourceObject)
resourceName
- the name of the data to updatevalue
- the value for the resourceNameresourceObject
- 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. Only valid value is the "authos" table.
If resourceObject is null, assume "authos".public void delete(String resourceName, Object resourceObject)
resourceName
- the name of the object to deleteresourceObject
- 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. Only valid value is the "authos" table.
If resourceObject is null, assume "authos."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()
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |