|
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.access.api.AccessConnection
The AccessConnection connects to the SiteSearch AccessServer and provides the BER interface coding and decoding.
| Constructor Summary | |
AccessConnection(String host,
int port,
int timeout)
Constructs an AccessConnection object |
|
| Method Summary | |
AuthoResults |
authoByDomain(String ip,
String serverType)
Returns profiling information by performing authorization by domain name Looks up DNS with the ip. |
AuthoResults |
authoByIP(String ip,
String serverType)
Returns profiling information by performing authorization by IP. |
AuthoResults |
authoByName(String userid,
String password,
String serverType)
Returns profiling information by performing authorization by name and password. |
AuthoResults |
authoByName(String userid,
String system,
String password,
String serverType)
Returns profiling information by performing authorization by name, system, and password. |
void |
deleteResource(String table,
String colName,
Object value,
String oper)
Deletes a particular row from a table in the database. |
void |
endUserSession(String serverType,
String userAutho)
Removes this user from the AuthoMgr in the AccessServer. |
Hashtable |
getAuthoByName(String autho,
String system,
String password,
String serverType)
Returns authos information by performing authorization by name, password and system. |
Vector |
getList(String uid,
String accessType,
String objectType)
Retrieves a Vector for ECat |
MetaData |
getMetaData()
Retrieves MetaData object which contains information about the database tables. |
void |
insertResource(String table,
Hashtable row)
Adds a new row of information to the database. |
Vector |
selectResource(String table,
String colName,
Object value,
String op)
Retrieves specified information from the database. |
void |
setLog(Log log)
Sets the log object. |
void |
updateResource(String table,
Hashtable changes,
String colName,
Object colValue,
String oper)
Updates a database table with changes provided. |
boolean |
validAuthoName(String userid)
Returns a boolean indicating whether this autho name is valid. |
boolean |
validAuthoName(String userid,
String password)
Returns a boolean indicating whether this autho and password are valid. |
boolean |
validIP(String ip)
Returns a boolean indicating whether this ip is valid. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public AccessConnection(String host,
int port,
int timeout)
host - the host to connect toport - the port to connect totimeout - how long to wait for a connection| Method Detail |
public void setLog(Log log)
log - the log to write to
public AuthoResults authoByName(String userid,
String password,
String serverType)
throws Exception
userid - the user's idpassword - the user's passwordserverType - JaSSI or ZBaseAuthoResults,
AuthoException,
AccessException
public AuthoResults authoByName(String userid,
String system,
String password,
String serverType)
throws Exception
userid - the user's idsystem - the system requestedpassword - the user's passwordserverType - JaSSI or ZBaseAuthoResults,
AuthoException,
AccessException
public boolean validAuthoName(String userid,
String password)
throws Exception
userid - this user's idpassword - this user's passwordAuthoException,
AccessException
public boolean validAuthoName(String userid)
throws Exception
userid - this user's idAuthoException,
AccessException
public Hashtable getAuthoByName(String autho,
String system,
String password,
String serverType)
throws Exception
autho - the user's idsystem - the system to log in topassword - the user's passwordserverType - JaSSI or ZBaseAuthoResults,
AuthoException,
AccessException
public AuthoResults authoByIP(String ip,
String serverType)
throws Exception
ip - ip address for this userserverType - JaSSI or ZBaseAuthoResults,
AuthoException,
AccessException
public boolean validIP(String ip)
throws Exception
ip - this user's ipAuthoException,
AccessException
public AuthoResults authoByDomain(String ip,
String serverType)
throws Exception
ip - this user's ip addressserverType - JaSSI or ZBaseAuthoResults,
AuthoException,
AccessException
public Vector selectResource(String table,
String colName,
Object value,
String op)
throws Exception
table - the database tablecolName - the column in the tablevalue - the value to find the the columnAuthoException,
AccessException
public Vector getList(String uid,
String accessType,
String objectType)
throws Exception
public void updateResource(String table,
Hashtable changes,
String colName,
Object colValue,
String oper)
throws Exception
table - table namechanges - Hashtable of column/value pairscolName - column to look incolValue - this value in the columnAuthoException,
AccessException
public void insertResource(String table,
Hashtable row)
throws Exception
table - the table namerow - a Hashtable of the row of data to add.AuthoException,
AccessException
public void deleteResource(String table,
String colName,
Object value,
String oper)
throws Exception
table - the table namecolName - the column to look intovalue - the value in the columnoper - "=" or "LIKE"AuthoException,
AccessException
public void endUserSession(String serverType,
String userAutho)
throws Exception
serverType - JaSSI or ZBaseuserAutho - the string user autho'd withAuthoException,
AccessException
public MetaData getMetaData()
throws Exception
MetaData,
AccessException
|
Open SiteSearch 4.1.1 Final |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||