|
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.zbase.access.ZBaseAccessClient
The ZBaseAccessClient connects to the SiteSearch AccessServer to get user specific information.
Constructor Summary | |
ZBaseAccessClient()
Constructs a ZBaseAccessClient object. |
Method Summary | |
String |
autho()
Retrieves the String containing the authorization associated with the user. |
boolean |
authorizeByDNS(String IPAddress)
Dummy method in ZBase to perform a Domain Name authorization. |
boolean |
authorizeByIP(String IPAddress)
Dummy method in ZBase to perform an IP Address authorization. |
boolean |
authorizeByName(String autho,
String password)
Performs an autho/password Authorization. |
boolean |
authorizedByDNS()
Determines whether the user has been authorized by DNS address. |
boolean |
authorizedByIP()
Determines whether the user has been authorized by IP address. |
boolean |
authorizedByName()
Determines whether the user has been authorized by Name. |
int |
authorizeErrorCode()
Retrieves an integer containing the error code for failed authorizations which is the appropriate Z3950 init failure code reason. |
String |
authorizeErrorMessage()
Retrieves a String containing the error message for failed authorizations. |
boolean |
authosEquals(String autho,
String password)
Compares the input autho and password to the existing autho/password to check for equality. |
void |
close()
Cleans-up the connection to the Access Server. |
boolean |
dbAccessAllowed(String dbname)
Determines whether access to the input database is allowed. |
void |
delete(String resourceName,
Object resourceObject)
Deletes the resource name from the user's profile data. |
Object |
get(String resourceName,
Object resourceObject)
Gets the value for the resource name from the user's profile data. |
Object |
getDbList()
Returns a String array object containing the authorized database list for the user. |
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: database). |
String |
getRemotePassword(String resourceName)
Returns a String containing the remote service password for the input resource name(ie: database). |
void |
initialize(Object serverObj,
Object user)
Initialzes a SiteSearch Access Client that will connect to the the input server object for the input ZBase user object. |
String |
IP()
Retrieves the String containing the IP address associated with the user. |
String |
password()
Retrieves the String containing the password associated with the user. |
void |
put(String resourceName,
Object value,
Object resourceObject)
Stores the value for the resource name from the user's profile data. |
void |
setAuthoPassword(String authorization,
String password)
Sets the user authorization/password to the input strings. |
void |
setDbList(Object dbs)
Sets up the String array object of authorized database names for user using the input database list object. |
void |
setLog(Log log)
Associates the input Log object to the Access Client object. |
String |
toString()
Generates a String representation of the Object. |
Object |
user()
Retrieves the Object defining the user data associated with the AccessClient. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public ZBaseAccessClient()
Method Detail |
public void initialize(Object serverObj, Object user)
serverObj
- the application's Access Server ObjectuserObj
- a user context objectpublic void setLog(Log log)
log
- the logging object.public boolean authorizeByName(String autho, String password)
autho
- the user's authorizationpassword
- the user's passwordpublic Object getMetaData()
public boolean authorizeByIP(String IPAddress)
IPAddress
- the input IPpublic boolean authorizeByDNS(String IPAddress)
IPAddress
- the IP address that can look upt the Domain Namepublic Object getDbList()
public void setDbList(Object dbs)
dbs
- either a Hashtable object of dbnames or a String[] of dbnamespublic String getRemoteAutho(String resourceName)
public String getRemotePassword(String resourceName)
public boolean dbAccessAllowed(String dbname)
public boolean authorizedByName()
public boolean authorizedByIP()
public boolean authorizedByDNS()
public boolean authosEquals(String autho, String password)
public int authorizeErrorCode()
public String authorizeErrorMessage()
public void setAuthoPassword(String authorization, String password)
authorization
- the user's authorizationpassword
- the user's passwordpublic String autho()
public String password()
public String IP()
public Object user()
public Object get(String resourceName, Object resourceObject)
resourceName
- the name of the data to updateresourceObject
- the name of the category or the category object itself
where the resource can be located - ignored.public void put(String resourceName, Object value, Object resourceObject)
resourceName
- the name of the data to updateresourceObject
- the name of the category or the category object itself
where the resource can be located - ignoredvalue
- the value for the resourceNamepublic void delete(String resourceName, Object resourceObject)
resourceName
- the name to deleteresourceObject
- the name of the category or the category object itself
where the resource can be located - ignoredpublic 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 |