|
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.DefaultAccessClient
The DefaultAccessClient is a placeholder access client to use when the system is not connected to an access server to control user access.
Constructor Summary | |
DefaultAccessClient()
Construct a DefaultAccessClient object. |
Method Summary | |
String |
autho()
Get the authorization associated with the user. |
boolean |
authorizeByDNS(String DNS)
Perform a Domain Name authorization. |
boolean |
authorizeByIP(String IPAddress)
Perform an IP Address authorization. |
boolean |
authorizeByName(String autho,
String password)
Perform an autho/password Authorization. |
boolean |
authorizedByDNS()
Determine whether the user is authorized by DNS address. |
boolean |
authorizedByIP()
Determine whether the user is authorized by IP address. |
boolean |
authorizedByName()
Determine whether the user is authorized by Name. |
int |
authorizeErrorCode()
Get the error code for failed authorizations. |
String |
authorizeErrorMessage()
Get the error message for failed authorizations - return empty string("") always, no authorizations fail. |
boolean |
authosEquals(String autho,
String password)
Compare the input autho and password to the existing autho/password |
void |
close()
Clean-up the the client. |
boolean |
dbAccessAllowed(String dbname)
Determine whether access to the database is allowed. |
void |
delete(String resourceName,
Object resourceObject)
Stub method to Delete the resource name from the user's profile data. |
Object |
get(String resourceName,
Object resourceObject)
Stub methos to get the value for the resource name from the user's profile data. |
Object |
getDbList()
Get the database list for the user. |
Object |
getMetaData()
Get the MetaData object which describes the available profile data. |
String |
getRemoteAutho(String resourceName)
Return null so that server default autho used. |
String |
getRemotePassword(String resourceName)
Return null so that server default password used. |
void |
initialize(Object serverObj,
Object user)
Initialze the Access Client. |
String |
IP()
Get the IP Address associated with the user. |
String |
password()
Get the password associated with the user. |
void |
put(String resourceName,
Object value,
Object resourceObject)
Stub method to put the value for the resource name from the user's profile data. |
void |
setAuthoPassword(String authorization,
String password)
Set the authorization/password associated with the user. |
void |
setDbList(Object dbs)
Set the database list for the user. |
void |
setLog(Log log)
Set the log object for logging within the class. |
String |
toString()
Generate a String representation of the Object. |
Object |
user()
Get the ZBaseUser object for the user. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public DefaultAccessClient()
Method Detail |
public void initialize(Object serverObj, Object user)
serverObj
- the application's Access Server ObjectuserObj
- a user context objectpublic void setLog(Log log)
public 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 DNS)
IPAddress
- the IP address to look upt the Domain Namepublic Object getMetaData()
public Object getDbList()
public void setDbList(Object dbs)
public String getRemoteAutho(String resourceName)
public String getRemotePassword(String resourceName)
public boolean dbAccessAllowed(String dbname)
public int authorizeErrorCode()
public String authorizeErrorMessage()
public boolean authorizedByName()
public boolean authorizedByIP()
public boolean authorizedByDNS()
public void setAuthoPassword(String authorization, String password)
public String autho()
public String password()
public String IP()
public Object user()
public boolean authosEquals(String autho, String password)
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. null can be passed in, this is here
for extensibility purposes.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.public 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. null can be passed in, this is here
for extensibility purposes.public 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 |