|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.4.0) E10653-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Session
An interface for session context objects. A session context represents an
application's session. An implementation of this interface is
instantiated for each root application module when the application module
is activated ApplicationModule.activate
.
The session object is garbage collected when the root application module
is garbage collected.
This interface is used by the framework to load/store session context throughout the client application's lifetime.
A default implementation of this interface, SessionImpl
is provided with the Business Components for Java framework. Custom implementations may be developed
by application developers who are interested in extending the default
implementation. For example, an application may extend the init
method with logic to load application specific session context like the local
currency.
Custom implementations of this interface may be identified to the framework with the SessionClass server property.
Field Summary | |
---|---|
static java.lang.String |
JBO_SESSION_COOKIE
Deprecated. since 11.0. the SessionCookie is an implementation detail that should not be available on the session. Any context provided by the SessionCookie should be added to the cookie UserData This will then be propogated to the Session UserData. |
static java.lang.String |
JBO_SESSION_LOCALE
|
Method Summary | |
---|---|
ApplicationModule |
findSharedApplicationModule(java.lang.String appModuleName)
INTERNAL: Applications should not use. |
java.lang.String[] |
getAllApplicationModuleDefNames()
Gets the names of the Application Module definitions contained in all packages. |
java.lang.String[] |
getAllEntityAssociationDefNames()
Gets the names of the entity association definitions defined in all packages. |
java.lang.String[] |
getAllEntityDefNames()
Gets the names of the Entity Object definitions available in all packages. |
java.lang.String[] |
getAllViewDefNames()
Gets the names of the View Object definitions available in all packages. |
java.lang.String[] |
getAllViewLinkDefNames()
Gets the names of the View Link definitions defined in all packages. |
java.lang.String[] |
getApplicationModuleDefNames(java.lang.String packageName)
Gets the names of the Application Module definitions contained in a package. |
java.lang.String[] |
getEntityAssociationDefNames(java.lang.String packageName)
Gets the names of the entity association definitions defined in a package. |
java.lang.String[] |
getEntityDefNames(java.lang.String packageName)
Gets the names of the Entity Object definitions available in a package. |
java.util.Hashtable |
getEnvironment()
Returns the BC4J context for the session. |
java.util.Locale |
getLocale()
Gets the current Locale used for localizing error messages. |
LocaleContext |
getLocaleContext()
retrieves the locale context for the session |
java.lang.String[] |
getPackageNames()
Gets names of the packages that make up this middle tier application. |
java.util.Hashtable |
getUserData()
Returns application context for the session. |
java.lang.String[] |
getUserRoles()
Returns the Roles/Groups for current user principal. |
java.lang.String |
getVersion()
Gets the middle tier's version information. |
java.lang.String[] |
getViewDefNames(java.lang.String packageName)
Gets the names of the View Object definitions available in a package. |
java.lang.String[] |
getViewLinkDefNames(java.lang.String packageName)
Gets the names of the View Link definitions defined in a package. |
void |
invalidateSession()
INTERNAL: Applications should not use. |
boolean |
isClient()
Returns whether this session is running as a client in 3 tier or not. |
boolean |
isUserInRole(java.lang.String role)
|
void |
loadPackage(java.lang.String packageName)
Loads a package that may be browsed for defined objects. |
void |
setLocale(java.util.Locale locale)
Sets a new Locale for localizing error messages. |
Field Detail |
---|
static final java.lang.String JBO_SESSION_COOKIE
static final java.lang.String JBO_SESSION_LOCALE
Method Detail |
---|
java.lang.String getVersion()
java.util.Locale getLocale()
Locale
used for localizing error messages.
Locale
.void setLocale(java.util.Locale locale)
Locale
for localizing error messages.
locale
- the new Locale
.java.lang.String[] getPackageNames()
java.lang.String[] getApplicationModuleDefNames(java.lang.String packageName)
packageName
- the name of the package.
ApplicationModule
definition names.java.lang.String[] getAllApplicationModuleDefNames()
ApplicationModule
definition names.java.lang.String[] getViewDefNames(java.lang.String packageName)
packageName
- the name of the package.
ViewDef
names.java.lang.String[] getAllViewDefNames()
ViewDef
names.java.lang.String[] getEntityDefNames(java.lang.String packageName)
packageName
- the name of the package.
EntityDef
names.java.lang.String[] getAllEntityDefNames()
EntityDef
names.java.lang.String[] getEntityAssociationDefNames(java.lang.String packageName)
packageName
- the name of the package.
EntityAssociationDef
names.java.lang.String[] getAllEntityAssociationDefNames()
EntityAssociationDef
names.java.lang.String[] getViewLinkDefNames(java.lang.String packageName)
packageName
- the name of the package.
ViewLinkDef
names.java.lang.String[] getAllViewLinkDefNames()
ViewLinkDef
names.void loadPackage(java.lang.String packageName)
packageName
- a fully qualified package name.java.util.Hashtable getEnvironment()
PropertyMetadata
. Applications
should store custom session context in the Session userdata.
getUserData()
LocaleContext getLocaleContext()
java.util.Hashtable getUserData()
ApplicationModuleImpl.prepareSession(Session)
.
java.lang.String[] getUserRoles()
boolean isUserInRole(java.lang.String role)
role
- the name of the role.
boolean isClient()
ApplicationModule findSharedApplicationModule(java.lang.String appModuleName)
void invalidateSession()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.4.0) E10653-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |