All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface ibs.ebf.session.ISessionProperties

public interface ISessionProperties
extends Serializable

Method Index

 o existsInForm(String)
Checks if given key exists in the form submitted by the user.
 o existsInSession(String)
Checks if given key exists in the session/custom values container.
 o getBusinessUnitId()
Returns value of the submitted field Business Unit Id If not found, returns Default business unit id as defined in the application controls.
 o getFormId()
Returns value of the submitted field Form ID.
 o getFormKeys()
Returns all keys submitted in a form by the user.
 o getFormKeysValues()
Returns IKeys object from session properties containing all the key value pairs submitted by the user.
 o getFormValue(String)
Call this method to access a value for the given key.
 o getFormValue(String, String)
Call this method to access a value for the given key.
 o getFormValues(String)
Call this method to access a (multiple) values for the given key.
 o getIpAddr()
Returns IpAddress of the remote host (Value of REMOTE_HOST in HTTP Header).
 o getLoginAttempts()
Returns a counter indicating number of times user in current session has made unsuccessful attempts to login.
 o getLoginId()
Returns value of the submitted field Login Id.
 o getPassword()
Returns value of the submitted field Password.
 o getSessionKeys()
Returns all session/custom keys.
 o getSessionRecord(String)
This method provides access to previously stored IbsRecord objects.
 o getSessionResultSet(String)
This method provides access to previously stored EbfResultSet objects.
 o getSessionTable(String)
This method provides access to previously stored IbsTable objects.
 o getSessionValue(String)
Call this method to access a value for the given session key.
 o getSessionValue(String, String)
Call this method to access a value for the given session key.
 o getSessionValues(String)
Call this method to access a (multiple) values for the given key.
 o isLoginVerified()
Check to see if user login is set as verified.
 o setLoginAttempt()
If this server instance is configured to use external (custom) Login Verification mechanism, the process simply has to call this method to indicate that there was a failed login attempt in this session.
 o setLoginId(String)
Allows application developer to set login_id for current user session.
 o setLoginVerified(boolean)
If this server instance is configured to use external (custom) Login Verification mechanism, the process simply has to call this method to set user login as verified or not verified.
 o setPassword(String)
Allows application developer to set password for current user session.
 o setSessionRecord(String, IbsRecord)
This method allows app developer to store IbsRecord objects for later use in template formatting.
 o setSessionResultSet(String, ResultSet)
This method allows app developer to store ResultSet objects for later use in template formatting.
 o setSessionTable(String, IbsTable)
This method allows app developer to store IbsTable objects for later use in template formatting.
 o setSessionValue(String, String)
This method allows app developer to set session/custom key/value in the session properties.
 o setSessionValue(String, String[])
This method allows app developer to set session/custom key/values in the session properties.

Methods

 o getFormKeysValues
 public abstract IKeys getFormKeysValues()
Returns IKeys object from session properties containing all the key value pairs submitted by the user.

Returns:
IKeys An object of type IKeys containing all the key value pairs submitted by the user.
See Also:
IKeys
 o getFormKeys
 public abstract Enumeration getFormKeys()
Returns all keys submitted in a form by the user.

Returns:
An Enumeration of all form keys.
 o getSessionKeys
 public abstract Enumeration getSessionKeys()
Returns all session/custom keys.

Returns:
An Enumeration of all session/custom keys.
 o getIpAddr
 public abstract String getIpAddr()
Returns IpAddress of the remote host (Value of REMOTE_HOST in HTTP Header). If not found, returns 'unknown'.

Returns:
A string containing Ip Address of the remote host.
 o getFormId
 public abstract String getFormId()
Returns value of the submitted field Form ID. If not found, returns Default form id as defined in the application controls.

Returns:
A string containing submitted Form Id.
 o getBusinessUnitId
 public abstract String getBusinessUnitId()
Returns value of the submitted field Business Unit Id If not found, returns Default business unit id as defined in the application controls.

Returns:
A string containing submitted Business Unit Id.
 o getLoginId
 public abstract String getLoginId() throws KeyNotFoundException
Returns value of the submitted field Login Id. If not found, returns empty string.

Returns:
A string containing submitted 'Login Id'.
 o getPassword
 public abstract String getPassword() throws KeyNotFoundException
Returns value of the submitted field Password. If not found, returns empty string.

Returns:
A string containing submitted 'Login Id'.
 o getLoginAttempts
 public abstract int getLoginAttempts()
Returns a counter indicating number of times user in current session has made unsuccessful attempts to login.

Returns:
An integer value for number of login attempts.
 o isLoginVerified
 public abstract boolean isLoginVerified()
Check to see if user login is set as verified.

Returns:
boolean value. true if login was verified. false otherwise.
 o setLoginAttempt
 public abstract void setLoginAttempt()
If this server instance is configured to use external (custom) Login Verification mechanism, the process simply has to call this method to indicate that there was a failed login attempt in this session.

 o setLoginVerified
 public abstract void setLoginVerified(boolean true_or_false)
If this server instance is configured to use external (custom) Login Verification mechanism, the process simply has to call this method to set user login as verified or not verified.

Parameters:
true_or_false - A boolean flag - 'true' sets login as verified. 'false' set is as not verified.
 o setLoginId
 public abstract void setLoginId(String login_id)
Allows application developer to set login_id for current user session. This method should be used only if you wish to bypass build-in access control mechanism for your entire application.

Parameters:
login_id - A String containing login id.
 o setPassword
 public abstract void setPassword(String password)
Allows application developer to set password for current user session. This method should be used only if you wish to bypass build-in access control mechanism for your entire application.

Parameters:
password - A String containing user password.
 o existsInForm
 public abstract boolean existsInForm(String key)
Checks if given key exists in the form submitted by the user. Returns 'true' if key was found, otherwise returns 'false'.

Parameters:
key - A key submitted by the user.
Returns:
A boolean value
 o existsInSession
 public abstract boolean existsInSession(String key)
Checks if given key exists in the session/custom values container. Returns 'true' if key was found, otherwise returns 'false'.

Parameters:
key - A key in the session/custom values container.
Returns:
A boolean value
 o getFormValue
 public abstract String getFormValue(String key)
Call this method to access a value for the given key. This method looks at the keys and values submitted in the form. If it finds multiple values for the given key, returns very first value in the list. If it does not find given key, returns an empty string ("").

Parameters:
key - A key submitted by the user.
Returns:
String A value submitted for the given key. If key is not found, returns "".
 o getFormValue
 public abstract String getFormValue(String key,
                                     String default_value)
Call this method to access a value for the given key. This method looks at the keys and values submitted in the form. If it finds multiple values for the given key, returns very first value in the list. If it does not find given key, returns 'default_value'.

Parameters:
key - A key submitted by the user.
default_value - A value to be returned if key was not found.
Returns:
String A value submitted for the given key or 'default_value' if key was not found.
 o getFormValues
 public abstract String[] getFormValues(String key)
Call this method to access a (multiple) values for the given key. This method looks at the keys and values submitted in the form. This method call is valid even if given key has only one value. Call to this method always returns a String array (String[]). If it does not find given key, returns an empty String array.

Parameters:
key - A key submitted by the user.
Returns:
String[] An array containg one or more values submitted for the given key or an empty array of string if key was not found.
 o getSessionValues
 public abstract String[] getSessionValues(String key)
Call this method to access a (multiple) values for the given key. This method looks at the keys and values in the custom values container. This method call is valid even if given key has only one value. Call to this method always returns a String array (String[]). If it does not find given key, returns an empty String array.

Parameters:
key - A key in the custom values container.
Returns:
String[] An array containg one or more values assigned to the given key or an empty array of string if key was not found.
 o getSessionValue
 public abstract String getSessionValue(String key)
Call this method to access a value for the given session key. This method looks at the keys and values in the custom values container. If it finds multiple values for the given key, returns very first value in the list. If it does not find given key, returns an empty string.

Parameters:
key - A key in the custom values container.
Returns:
String A value assigned to the given key. If key is not found, returns empty string.
 o getSessionValue
 public abstract String getSessionValue(String key,
                                        String default_value)
Call this method to access a value for the given session key. This method looks at the keys and values in the custom values container. If it finds multiple values for the given key, returns very first value in the list. If it does not find given key, returns 'default_value'.

Parameters:
key - A key in the custom values container.
default_value - A value to be returned if key was not found.
Returns:
String A value assigned to the given key or 'default_value' if key was not found.
 o setSessionValue
 public abstract void setSessionValue(String key,
                                      String value)
This method allows app developer to set session/custom key/value in the session properties.

Parameters:
key - A key for the custom values
value - A String containing value for the given key.
 o setSessionValue
 public abstract void setSessionValue(String key,
                                      String values[])
This method allows app developer to set session/custom key/values in the session properties.

Parameters:
key - A key for the custom values
values - An array of String containing values for the given key. May contain one or more values.
 o setSessionResultSet
 public abstract void setSessionResultSet(String result_set_name,
                                          ResultSet rs)
This method allows app developer to store ResultSet objects for later use in template formatting.

Parameters:
result_set_name - A name given to this result set. Later, this name will be used to access the result set.
rs - An object of type ResultSet
 o setSessionTable
 public abstract void setSessionTable(String table_name,
                                      IbsTable table)
This method allows app developer to store IbsTable objects for later use in template formatting.

Parameters:
table_name - A name given to this IbsTable. Later, this name will be used to access the table data.
table - An object of type IbsTable
 o setSessionRecord
 public abstract void setSessionRecord(String record_name,
                                       IbsRecord record)
This method allows app developer to store IbsRecord objects for later use in template formatting.

Parameters:
record_name - A name given to this IbsRecord. Later, this name will be used to access the record data.
record - An object of type IbsRecord
 o getSessionResultSet
 public abstract ResultSet getSessionResultSet(String result_set_name)
This method provides access to previously stored EbfResultSet objects. It returns null if given name not found in storage area.

Parameters:
result_set_name - Name of the previously stored ResultSet object.
Returns:
ResultSet An object of type ResultSet
 o getSessionTable
 public abstract IbsTable getSessionTable(String table_name)
This method provides access to previously stored IbsTable objects. It returns null if given name not found in storage area.

Parameters:
table_name - Name of the previously stored IbsTable object.
Returns:
IbsTable An object of type IbsTable
 o getSessionRecord
 public abstract IbsRecord getSessionRecord(String record_name)
This method provides access to previously stored IbsRecord objects. It returns null if given name not found in storage area.

Parameters:
record_name - Name of the previously stored IbsRecord object.
Returns:
IbsRecord An object of type IbsRecord

All Packages  Class Hierarchy  This Package  Previous  Next  Index