|
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.webz.ZDb
The ZDb class maintains a User's customized database information based on user profiling. It maintains a reference to the static Db object as well as settings indicating the authorization status for the database for the user. ZDb also provides methods to retrieve configuration information for the database.
ZServer
,
Db
Field Summary | |
protected String |
autho
String data type containing the authorization for the database. |
protected int |
authorizationStatus
integer data type containing the user's authorization status for the the database, default = NO_AUTHORIZATION. |
protected Db |
db
Db object containg the database definition. |
protected String |
dedupPreferredDatabaseNames
String data type containing the user specified preferred database order for dedup requests that can override the system configured list. |
protected boolean |
hideit
boolean data type indicating whether to hide the database name in menus generated by the system. |
static int |
IP_DNS_AUTHORIZED
integer data type defining an Authorization status for the database: Authorized by IP or DNS 2 . |
static int |
NAME_AUTHORIZED
integer data type defining Authorization status for the database: Authorized by Name (Autho/password) 3 . |
static int |
NO_AUTHORIZATION
integer data type defining an Authorization status for the database: No authorization performed: 1 . |
protected String |
password
String data type containing the password for the database. |
protected boolean |
requiresAutho
boolean data type indicating whether the database requires authorization. |
Constructor Summary | |
ZDb(Db db)
Constructs a ZDb object using the information from the input Db object. |
Method Summary | |
String |
alternateThesaurusDb()
Returns the String containing the name of the alternate thesaurus database. |
int |
authorizationStatus()
Returns an integer indicating the Authorization status for the database. |
Db |
db()
Returns the Db object maintained by this ZDb object. |
String |
dbIniFile()
Returns the String containing the name of the database inifile. |
DedupKeys |
dedup()
Returns the DedupKeys object containing the information needed to perform a Z3950 Dedup for the database. |
String |
dedupPreferredDatabaseNames()
Returns the preferred database order for dedup requests, if there is a user specific list stored, it overrides the configuration for the database. |
String |
deweyDb()
Returns the String containing the name of the dewey database. |
boolean |
fCanDoRanked()
Returns the boolean indicating whether probalistic queries are allowed for this database. |
boolean |
fCanDoScan()
Returns the boolean indicating whether Z3950 Scan is supported for the database. |
boolean |
fCanDoSort()
Returns the boolean indicating whether Z3950 Sort is supported the database. |
boolean |
fCanDoTermFinder()
Returns the boolean indicating whether the database supports the term finder search option. |
boolean |
fFullText()
Returns boolean indicating whether the database can show full text. |
Hashtable |
fmtClassTable()
Returns a Hashtable object table containing a list of Format objects for the database. |
String |
fullTextRecordSyntax()
Returns a String containing the preferred record syntax for Z3950 present requests for FullText (ElementSetName=T). |
static Db |
get(String dbname)
Returns a Db object for the input database name. |
static Hashtable |
getAllDbs()
Retrieves a Hashtable object of all Db objects in the system. |
DbAttributes |
getAttributes()
Returns the DbAttributes object containing the set of index information for the database. |
static Db |
getDefaultDbGroup()
Returns the Db object for the database defined as the default Db Group database. |
Format |
getFormat(String whichone)
Returns the Format object for the requested format that can be used to format records returned from a Z3950 request. |
static String[] |
getSortedNames()
Returns a sorted String array of all dbnames for all Db objects in the system. |
String |
holdingsDb()
Returns a String containing the name of the holdings info database. |
String |
ILLService()
Returns the String containing the ILL Service Type. |
IndexMap |
indexMap()
Returns the IndexMap object containing index configuration information for the database. |
boolean |
isDbGroupDefinition()
Returns a boolean indicating whether this is a DbGroup database object. |
boolean |
isHidden()
Returns the boolean indicating whether database should be hidden in generated menus of databases. |
String |
longName()
Returns a String containing the textual long name of the database. |
String |
name()
Returns a String containing the database name. |
protected String |
partialSearchOID()
Returns the String containing the Z3950 OID for partial searches. |
protected DataDir |
partialSearchParms()
Returns the DataDir object to perform a partial search. |
String |
recordIdTag()
Returns the String containing the BER tag path to the record ID. |
String |
recordSyntax()
Returns a String containing the preferred record syntax for Z3950 present requests. |
boolean |
remoteAuthorizationRequired()
Returns a boolean indicating whether remote authorization is required. |
String |
remoteDatabaseAutho()
Returns the autho for the remote server hosting the database. |
String |
remoteDatabasePassword()
Returns the password for the remote server hosting the database. |
String |
remoteServerName()
Returns the name of the remote server hosting the database. |
void |
setAuthorizationStatus(int status)
Sets the authorization status for the database to the input integer. |
void |
setDedupPreferredDatabaseNames(String dbnames)
Sets the list of database names that specifies the preferred database order for dedup requests, if there is a user specific list stored, it overrides the configuration for the database. |
void |
setRemoteDatabaseAutho(String autho)
Sets the authorization string for the database to the input string. |
void |
setRemoteDatabasePassword(String password)
Sets the password string for the database to the input string. |
Sort |
sort()
Returns the Sort object containing the information needed to perform a Z3950 sort for the database. |
StopWord |
stopWords()
Returns the StopWord object containing the list of database stopwords. |
TermFinderInfo |
termFinderInfo()
Returns the TermFinderInfo object containing all the parameters for TermFinder Searching |
String |
thesaurusDb()
Returns the String containing the name of the thesaurus database. |
String |
toString()
Generates the string representation of this object. |
String |
zName()
Returns a String containing the name of the database on the Z3950 server. |
ZServer |
zServer()
Returns the ZServer object that owns this database. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int NO_AUTHORIZATION
1
.public static final int IP_DNS_AUTHORIZED
2
.public static final int NAME_AUTHORIZED
3
.protected Db db
protected boolean hideit
protected int authorizationStatus
protected boolean requiresAutho
protected String autho
protected String password
protected String dedupPreferredDatabaseNames
Constructor Detail |
public ZDb(Db db)
Db
- the database objectMethod Detail |
public final int authorizationStatus()
public final void setAuthorizationStatus(int status)
public static Hashtable getAllDbs()
public static Db get(String dbname)
dbname
- the name of the database.public final Db db()
public static Db getDefaultDbGroup()
public static String[] getSortedNames()
public final boolean fCanDoScan()
public final boolean fCanDoTermFinder()
public final boolean fCanDoSort()
public final boolean fCanDoRanked()
public final boolean isHidden()
public final Hashtable fmtClassTable()
public final Sort sort()
public final DedupKeys dedup()
public final String dedupPreferredDatabaseNames()
public final void setDedupPreferredDatabaseNames(String dbnames)
public final Format getFormat(String whichone)
public final boolean fFullText()
public final String ILLService()
public final IndexMap indexMap()
qparse
public final DbAttributes getAttributes()
DbAttributes
public final boolean isDbGroupDefinition()
public final String longName()
public final String name()
public final String holdingsDb()
public final String thesaurusDb()
public final String alternateThesaurusDb()
public final String deweyDb()
public final TermFinderInfo termFinderInfo()
TermFinderInfo
public final String recordIdTag()
public final String recordSyntax()
public final String fullTextRecordSyntax()
public final StopWord stopWords()
public final String dbIniFile()
protected final DataDir partialSearchParms()
protected final String partialSearchOID()
public String toString()
public final String zName()
public void setRemoteDatabaseAutho(String autho)
autho
- the autho stringpublic void setRemoteDatabasePassword(String password)
password
- the password stringpublic String remoteDatabaseAutho()
public String remoteDatabasePassword()
public String remoteServerName()
public boolean remoteAuthorizationRequired()
public final ZServer zServer()
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |