|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ifs.beans.LibraryService
The LibraryService class is used for connecting to the iFS server and launching sessions via the LibrarySession object.
This class has a public constructor, and one primary method: connect(). The connect() method either returns a LibrarySession, or throws an exception indicating a connect failure.
There are two overloaded connect methods. One takes a simple set of clear text credentials and the iFS service name, and the other takes explicit Credential and ConnectOptions arguments. The ConnectOptions can contain options such as the Locale.
LibrarySession
Constructor Summary | |
LibraryService()
Constructs a LibraryService. |
Method Summary | |
LibrarySession |
connect(Credential credential,
ConnectOptions options)
Connects to iFS, establishing a new LibrarySession. |
LibrarySession |
connect(java.lang.String user,
java.lang.String password,
java.lang.String server)
Connects to iFS, establishing a new LibrarySession. |
TokenCredential |
getTokenCredential(java.lang.String token,
java.util.Hashtable parameters,
ConnectOptions options)
Gets the previously-created TokenCredential for the specified token. |
static long |
getVersionNumber()
Returns software version number, as a long value. |
static java.lang.String |
getVersionString()
Returns software version String. |
Constructor Detail |
public LibraryService() throws IfsException
IfsException
- if the operation fails.Method Detail |
public TokenCredential getTokenCredential(java.lang.String token, java.util.Hashtable parameters, ConnectOptions options) throws IfsException
token
- the tokenparameters
- the required parameters. For this method to return
a TokenCredential, this hashtable must contain a
matching entry for every required parameter that
was specified in creating the TokenCredential.options
- connect optionsIfsException
- (IFS-10192) if the operation failspublic LibrarySession connect(java.lang.String user, java.lang.String password, java.lang.String server) throws IfsException
username
- user name (e.g. "scott")password
- password (e.g. "tiger")server
- iFS service names (e.g. "IfsDefault")IfsException
- if operation fails.public LibrarySession connect(Credential credential, ConnectOptions options) throws IfsException
credential
- the user's credentialsoptions
- connect optionsIfsException
- if the operation failspublic static final java.lang.String getVersionString() throws IfsException
IfsException
- if operation failspublic static final long getVersionNumber() throws IfsException
IfsException
- if operation fails
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |