Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-03

oracle.apps.fnd.applcore.common.security
Interface LwsSession

All Known Implementing Classes:
ApplSession

public interface LwsSession

All classes in this package are private and intended for applcore use only.


Method Summary
 void attachSession(java.sql.Connection conn)
          Attaches the LWS session of this context to a db connection.
 void attachSession(java.sql.Connection conn, LwsUser user, java.util.List<? extends LwsRole> roles)
          Attaches the LWS session of this context to a db connection using the specified user and roles.
 boolean checkSession()
          Check to see if this session still exists on the server, or is no longer valid (due to timeout, or explicit destruction).
 boolean checkSession(java.sql.Connection conn)
           
 void detachSession()
          detaches the LWS session from the db connection if it is in Attach state.
 java.sql.Connection getConnection()
          Get the Oracle connection associated with this session, if it is currently bound to one.
 java.util.List<? extends LwsRole> getRoles()
          Get the list of LwsRoles associated with this session.
 java.lang.String getSessionCookie()
          Get the secure session cookie used for this session.
 java.lang.String getSessionID()
          Get the session ID used for this session
 LwsSessionNamespace getSessionNamespace(java.lang.String namespaceName)
          Return the specified namespace associated with this session.
 LwsUser getUser()
          Get the LwsUser associated with this session.
 boolean isAttached()
          checks if the LWS session of this context is in Attach state.
 

Method Detail

getConnection

java.sql.Connection getConnection()
Get the Oracle connection associated with this session, if it is currently bound to one.


getSessionID

java.lang.String getSessionID()
Get the session ID used for this session


getSessionCookie

java.lang.String getSessionCookie()
Get the secure session cookie used for this session.


getUser

LwsUser getUser()
Get the LwsUser associated with this session.


getRoles

java.util.List<? extends LwsRole> getRoles()
Get the list of LwsRoles associated with this session.


getSessionNamespace

LwsSessionNamespace getSessionNamespace(java.lang.String namespaceName)
Return the specified namespace associated with this session.

Parameters:
namespaceName -
Returns:

checkSession

boolean checkSession()
Check to see if this session still exists on the server, or is no longer valid (due to timeout, or explicit destruction).


checkSession

boolean checkSession(java.sql.Connection conn)

attachSession

void attachSession(java.sql.Connection conn)
                   throws java.lang.Exception
Attaches the LWS session of this context to a db connection.

Throws:
java.lang.Exception - if it fails to perform session Attach.

attachSession

void attachSession(java.sql.Connection conn,
                   LwsUser user,
                   java.util.List<? extends LwsRole> roles)
                   throws java.lang.Exception
Attaches the LWS session of this context to a db connection using the specified user and roles.

Throws:
java.lang.Exception - if it fails to perform session Attach.

detachSession

void detachSession()
                   throws java.lang.Exception
detaches the LWS session from the db connection if it is in Attach state.

Throws:
java.lang.Exception - if it fails to perform session Detach.

isAttached

boolean isAttached()
checks if the LWS session of this context is in Attach state.

Returns:
true if attached, false if not.

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-03

Copyright © 2012 Oracle. All Rights Reserved.