|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ifs.beans.LibraryService
A LibraryService represents an iFS service in the iFS application development API.
iFS services are uniquely identified by name within each process. This class provides static methods to determine whether a specified service has been started, to find a service by name, and to start a new service in this process.
To connect to an iFS service, thereby creating a new iFS session,
call the connect(Credential, ConnectOptions)
method.
Field Summary | |
static java.lang.String |
JDBCDRIVERTYPE_OCI8
The JDBC OCI8 driver. |
static java.lang.String |
JDBCDRIVERTYPE_THIN
The JDBC Thin driver. |
Method Summary | |
LibrarySession |
connect(Credential credential,
ConnectOptions options)
Connects to this iFS service, creating a new iFS session. |
void |
dispose(java.lang.String schemaPassword)
Disposes this iFS service. |
static LibraryService |
findService(java.lang.String serviceName)
Finds an existing iFS service with the specified name. |
CredentialNameTokenizer |
getCredentialNameTokenizer()
Gets the CredentialNameTokenizer for this iFS service. |
TokenCredential |
getTokenCredential(java.lang.String token,
java.util.Hashtable parameters)
Gets the previously-created TokenCredential for the specified token. |
static long |
getVersionNumber()
Gets the software version as a long. |
static java.lang.String |
getVersionString()
Gets the software version as a string. |
void |
invalidateTokenCredential(java.lang.String token,
java.util.Hashtable parameters)
Invalidates the previously-created TokenCredential for the specified token. |
static boolean |
isServiceStarted(java.lang.String serviceName)
Determines whether there exists an iFS service with the specified name. |
static LibraryService |
startService(java.lang.String serviceName,
java.lang.String schemaPassword)
Deprecated. iFS 9.0.3: use startService(String, String, String, String) |
static LibraryService |
startService(java.lang.String serviceName,
java.lang.String schemaPassword,
AttributeValue[] serviceConfiguration)
Deprecated. iFS 9.0.3: use startService(String, String, String, String) |
static LibraryService |
startService(java.lang.String serviceName,
java.lang.String schemaPassword,
java.lang.String serviceConfigurationName,
java.lang.String domainName)
Starts a new iFS service. |
Field Detail |
public static final java.lang.String JDBCDRIVERTYPE_THIN
public static final java.lang.String JDBCDRIVERTYPE_OCI8
Method Detail |
public static LibraryService findService(java.lang.String serviceName) throws IfsException
If there is no service with that name, an exception is thrown.
serviceName
- the name of the serviceIfsException
- (IFS-20100) if the operation failspublic static boolean isServiceStarted(java.lang.String serviceName) throws IfsException
serviceName
- the name of the serviceIfsException
- (IFS-20101) if the operation failspublic static LibraryService startService(java.lang.String serviceName, java.lang.String schemaPassword, java.lang.String serviceConfigurationName, java.lang.String domainName) throws IfsException
To start a service, you must specify three things:
serviceConfigurationName
and a
domainName
.
The serviceConfigurationName
specifies the name
of the desired SERVICECONFIGURATION object.
The domainName
identifies the iFS schema.
It has the format
ifs://host:port:globalDatabaseName:schema
,
where host
is the hostname of the database
server, port
is the port number of the database
listener, globalDatabaseName
is the global
database name, and schema
is the iFS schema
name. For example,
ifs://test.foo.com:1521:ora.test_foo_com:ifssys
.
serviceName
- the name to assign to the serviceschemaPassword
- the password of the iFS schemaserviceConfigurationName
- the service configuration (see above);
if null a default configuration is useddomainName
- the domain name (see above)IfsException
- (IFS-20102) if the operation failspublic static LibraryService startService(java.lang.String serviceName, java.lang.String schemaPassword, AttributeValue[] serviceConfiguration) throws IfsException
Throws an exception if there is already a service with that name.
serviceName
- the name of the serviceschemaPassword
- the password for the database schema
specified by the service configurationserviceConfiguration
- the service configuration propertiesIfsException
- (IFS-20102) if the operation failspublic static LibraryService startService(java.lang.String serviceName, java.lang.String schemaPassword) throws IfsException
iFS calls ResourceBundle.getBundle("oracle.ifs.server.properties.serviceName")
to obtain a ResourceBundle containing the service configuration properties
for the new service.
Throws an exception if there is already a service with that name.
serviceName
- the name of the serviceschemaPassword
- the password for the database schema
specified by the service configurationIfsException
- (IFS-20102) if the operation failspublic static java.lang.String getVersionString() throws IfsException
"1.0.8.3.1" would be returned for version 1.0.8.3.1.
IfsException
- if the operation failspublic static long getVersionNumber() throws IfsException
Each element in the version number is represented by two digits in the long value.
0100080301L would be returned for version 1.0.8.3.1.
IfsException
- if the operation failspublic TokenCredential getTokenCredential(java.lang.String token, java.util.Hashtable parameters) 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.IfsException
- (IFS-10192) if the operation failspublic void invalidateTokenCredential(java.lang.String token, java.util.Hashtable parameters) throws IfsException
Once invalidated, the token can no longer be used to authenticate.
token
- the tokenparameters
- the required parameters. For this method to
invalidate a TokenCredential, this hashtable
must contain a matching entry for every required
parameter that was specified in creating the
TokenCredential.IfsException
- (IFS-10189) if the operation failspublic CredentialNameTokenizer getCredentialNameTokenizer() throws IfsException
IfsException
- (IFS-12790) if the operation failspublic LibrarySession connect(Credential credential, ConnectOptions options) throws IfsException
credential
- the user's credentialsoptions
- connect options; may be nullIfsException
- (IFS-21008) if the operation failspublic void dispose(java.lang.String schemaPassword) throws IfsException
schemaPassword
- the password for the database schemaIfsException
- (IFS-20105) if the operation fails
|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |