Java Client API Reference 6.0.2.61

com.baan.b3.boi1
Interface IUserSession


public interface IUserSession

Class that represents a UserSession on the OpenWorldX Adapter.
This class can be created with the BoiToolkit, and holds userinformation. With a UserSession Actions on the OpenWorldX Adapter (Managers) can be combined for one user. In case of Automatic Backend Activation, Managers can be grouped together in an UserSession, and Backend Connections can be Pooled.

Version:
Build Nr 61, file version \\main\\4, 15:08:58 24-07-2006 UTC

Method Summary
 void addManager(BusinessObjectManager p_manager)
          Adds a manager to this UserSession.
 void enableLicenseOverride(java.lang.String p_key)
          Enables the License Override Mechanism
 void enableLicenseOverrideWithId(java.lang.String p_key, int p_licenseId)
          Enables the License Override Mechanism, providing an override license
 java.lang.String getUserName()
          Gets the name of the user out of the UserSession.
 

Method Detail

getUserName

public java.lang.String getUserName()
Gets the name of the user out of the UserSession. This is the username Of The UserInfo Object that is used to create this UserSession.
Returns:
The username

enableLicenseOverride

public void enableLicenseOverride(java.lang.String p_key)
Enables the License Override Mechanism
Parameters:
p_key - The license override key

enableLicenseOverrideWithId

public void enableLicenseOverrideWithId(java.lang.String p_key,
                                        int p_licenseId)
Enables the License Override Mechanism, providing an override license
Parameters:
p_key - The license override key
p_licenseId - The Server license to be obtained at the server side

addManager

public void addManager(BusinessObjectManager p_manager)
                throws BoiException
Adds a manager to this UserSession. When a manager is add to an UserSession it can be initialized with an Buscomponent With Activation Enabled. When multiple managers are added to the same UserSession and they are initialized with the same backend, the pooling algoritm specified in the BusComponent is used.
Parameters:
p_manager - The BusinessObjectManager to be added.
Throws:
BoiException - if Manager is alreay in a UserSession, or Manager is null.

Java Client API Reference 6.0.2.61

Visit the SSA Global website for more information.