|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dss.appmodule.client.BISession
The BISession
bean class. Every BI Beans program must instantiate a BISession
. The BISession
creates an application module and connects to it.
The BISession
also keeps track of user information. The BISession
can read an XML configuration file that contains information such as deployment information and user information.
To use the BISession
, you instantiate the BISession
and call its connect
method.
As a Java bean, BISession
exposes its properties so that you can see and set them in a Java Development Environment.
Constructor Summary | |
BISession() Constructor. | |
BISession(java.lang.String configXML) Constructor that specifies the name of the configuration file. | |
BISession(java.lang.String configXML, java.lang.Class configLoader) Constructor that specifies the name of the configuration file a class loader to load the configuration file. |
Method Summary | |
void |
addErrorHandler(ErrorHandler handler) Adds a single error handler to this BISession . |
void |
connect() Creates an application module and connects to it. |
void |
disconnect() Disconnects the application module. |
BIUser |
getBIUser() Retrieves the application user for this session. |
java.lang.String |
getConfigFileName() Retrieves the name of the configuration file that contains information about the properties of this session, the application user, and the security configuration entries. |
int |
getDebugMode() Retrieve the debug mode specified in the configuration file. |
ErrorHandler |
getErrorHandler() Retrieves the error handler from this BISession . |
java.util.Locale |
getLocale() Retrieves the locale used by this BISession . |
ManagerFactory |
getManagerFactory() Creates and returns a ManagerFactory that uses information from the configuration file. |
ManagerFactory |
getManagerFactory(javax.naming.directory.InitialDirContext initPM) Retrieves a ManagerFactory that uses information stored from a JNDI source. |
java.lang.Object |
getProperty(java.lang.String name) Retrieves the value of a property in the session object. |
boolean |
isConfigFileSpecified() Indicates whether a configuration file has been specified. |
void |
removeErrorHandler() Removes a customized error handler for this BISession . |
void |
removeProperty(java.lang.String name) Removes a property from the session object. |
void |
setAuthenticationProvider(java.lang.String level, java.lang.String className, boolean required) Specifies an authentication provider for this BISession . |
void |
setBIUser(BIUser user) Specifies the application user for this session. |
void |
setConfigFileName(java.lang.String configFile) Specifies the configuration file that contains information about the properties of this session, the application user, and the security configuration entries. |
void |
setConnectionProvider(java.lang.String level, java.lang.String className, boolean required) Specifies a connection provider for this BISession . |
void |
setLocale(java.util.Locale locale) Specifies the locale to use by this BISession . |
void |
setProperty(java.lang.String name, java.lang.Object value) Specifies additional properties of this session object. |
void |
setSecurityConfigEntries(java.util.Vector entries) Deprecated. As of 2.7 |
void |
setSecurityConfigFileName(java.lang.String fileName) Deprecated. As of 2.7 |
void |
setUserCommunityProvider(java.lang.String level, java.lang.String className, boolean required) Specifies a user community provider for this BISession . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BISession()
setConfigFileName
to specify a configuration file.setConfigFileName(java.lang.String)
, connect()
public BISession(java.lang.String configXML)
The configuration file can be used to specify the following information:
BIUser
-- The application user for the session.ConnectionProvider
to use.PersistenceManager
-- This BISession
can create an InitialPersistenceManager
, based on the information specified in the configuration file.BISession
can create Connection
, based on the information specified by the configuration file.BISession
can create MetadataManager
objects, based on the information specified by the configuration file.configXML
- The configuration file that contains information for this BISession
to use.connect()
public BISession(java.lang.String configXML, java.lang.Class configLoader)
The configuration file can be used to specify the following information:
BIUser
-- The application user for the session.ConnectionProvider
to use.PersistenceManager
-- This BISession
can create an InitialPersistenceManager
, based on the information specified in the configuration file.BISession
can create Connection
, based on the information specified by the configuration file.BISession
can create MetadataManager
objects, based on the information specified by the configuration file.configXML
- The configuration file that contains information for this BISession
to use.configLoader
- The class in which its class loader is used to load the configuration file. If you pass null
, then the default class loader is used to load the configuration file.connect()
Method Detail |
public void connect() throws BISessionException
BISessionException
- If one of the following occurs:
BISession(String)
public void disconnect() throws BISessionException
ManagerFactory
maintains, and releases all other resources that this session holds.BISessionException
- If an error occurs while releasing the manager objects held by the ManagerFactory
.public void addErrorHandler(ErrorHandler handler)
BISession
. The error handler is called whenever this BISession
traps an error from another part of the system.
This error handler is also used by other beans in this BISession
.
Use this method to install your own error handler.
addErrorHandler
in interface ErrorHandlerCallback
handler
- The error handler to use.public void removeErrorHandler()
BISession
. This method replaces the current error handler with a default error handler. The default error handler prints information to the console.removeErrorHandler
in interface ErrorHandlerCallback
public ErrorHandler getErrorHandler()
BISession
. This method is called by other beans, so they can use the same error handler.BISession
. If no custom error handler has been registered, then this method returns the default error handler.public int getDebugMode()
public void setLocale(java.util.Locale locale)
BISession
.public java.util.Locale getLocale()
BISession
. Other beans call this method to use the same locale.BISession
.public void setConfigFileName(java.lang.String configFile)
BISession
should create Connection
objects, MetadataManager
objects, and the InitialPersistenceManager
.configFile
- The full path name of the configuration file.Connection
, MetadataManager
, InitialPersistenceManager
public java.lang.String getConfigFileName()
public boolean isConfigFileSpecified()
true
if a configuration file has been specified, false
if no file has been specified.public ManagerFactory getManagerFactory() throws BISessionException
ManagerFactory
that uses information from the configuration file.
You can use the ManagerFactory
to create the InitialPersistenceManager
, the QueryManager
, and the MetadataManager
.
ManagerFactory
that uses configuration information.BISessionException
- If an error occurs in parsing the configuration file, or if an error occurs in the creation of the ManagerFactory
.InitialPersistenceManager
, QueryManager
, MetadataManager
public ManagerFactory getManagerFactory(javax.naming.directory.InitialDirContext initPM) throws BISessionException
ManagerFactory
that uses information stored from a JNDI source.
You can use the ManagerFactory
to create the InitialPersistenceManager
, the QueryManager
, and the MetadataManager
.
ManagerFactory
that uses JNDI information.BISessionException
- If an error occurs in the creation of the ManagerFactory
.InitialPersistenceManager
, QueryManager
, MetadataManager
public BIUser getBIUser()
public void setBIUser(BIUser user)
user
- the BIUser
for this session.public void setSecurityConfigEntries(java.util.Vector entries)
ConnectionProvider
, AuthenticationProvider
, and UserCommunityProvider
to use for the session. This method overrides the settings in the setSecurityConfigFileName
method.entries
- A list of ConfigEntry
objects.setSecurityConfigFileName(java.lang.String)
, AuthenticationProvider
, ConnectionProvider
, UserCommunityProvider
public void setSecurityConfigFileName(java.lang.String fileName)
ConnectionProvider
, AuthenticationProvider
, and UserCommunityProvider
to use for this session.
This method overrides the default configuration file (config.xml
), which is in the oracle.dss.security
package.
fileName
- The name of the security configuration file to use.public void setAuthenticationProvider(java.lang.String level, java.lang.String className, boolean required)
BISession
.
This method overrides the authentication provider information that is specified in the BI Beans configuration file.
level
- The invocation level in which this authentication provider is applied. Valid values are listed in the See Also section.className
- The class name of the authentication provider.required
- true
if the authentication provider should be loaded, false
if it should not be loaded.AuthenticationProvider
, BISecurityConstants.OLAP
, BISecurityConstants.BICATALOG
public void setConnectionProvider(java.lang.String level, java.lang.String className, boolean required)
BISession
.
This method overrides the connection provider information that is specified in the BI Beans configuration file.
level
- The invocation level in which this connection provider is applied. Valid values are listed in the See Also section.className
- The class name of the connection provider.required
- true
if the connection provider should be loaded, false
if it should not be loaded.ConnectionProvider
, BISecurityConstants.OLAP
, BISecurityConstants.BICATALOG
public void setUserCommunityProvider(java.lang.String level, java.lang.String className, boolean required)
BISession
.
This method overrides the user community provider information that is specified in the BI Beans configuration file.
level
- The invocation level in which this user community provider is applied. The valid value is listed in the See Also section.className
- The class name of the user community provider.required
- true
if the user community provider should be loaded, false
if it should not be loaded.UserCommunityProvider
, BISecurityConstants.SESSION
public void setProperty(java.lang.String name, java.lang.Object value)
name
- The name of the property.value
- The value of the property.PSRConstants.Login
, MDU.DRIVER_TYPE
public java.lang.Object getProperty(java.lang.String name)
name
- The name of the property.public void removeProperty(java.lang.String name)
name
- The name of the property to remove.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |