|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
|
static java.lang.String |
JBO_SESSION_LOCALE
|
Method Summary | |
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. |
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 |
public static final java.lang.String JBO_SESSION_COOKIE
public static final java.lang.String JBO_SESSION_LOCALE
Method Detail |
public java.lang.String getVersion()
public java.util.Locale getLocale()
Locale
used for localizing error messages.
Locale
.public void setLocale(java.util.Locale locale)
Locale
for localizing error messages.
locale
- the new Locale
.public java.lang.String[] getPackageNames()
public java.lang.String[] getApplicationModuleDefNames(java.lang.String packageName)
packageName
- the name of the package.
ApplicationModule
definition names.public java.lang.String[] getAllApplicationModuleDefNames()
ApplicationModule
definition names.public java.lang.String[] getViewDefNames(java.lang.String packageName)
packageName
- the name of the package.
ViewDef
names.public java.lang.String[] getAllViewDefNames()
ViewDef
names.public java.lang.String[] getEntityDefNames(java.lang.String packageName)
packageName
- the name of the package.
EntityDef
names.public java.lang.String[] getAllEntityDefNames()
EntityDef
names.public java.lang.String[] getEntityAssociationDefNames(java.lang.String packageName)
packageName
- the name of the package.
EntityAssociationDef
names.public java.lang.String[] getAllEntityAssociationDefNames()
EntityAssociationDef
names.public java.lang.String[] getViewLinkDefNames(java.lang.String packageName)
packageName
- the name of the package.
ViewLinkDef
names.public java.lang.String[] getAllViewLinkDefNames()
ViewLinkDef
names.public void loadPackage(java.lang.String packageName)
packageName
- a fully qualified package name.public java.util.Hashtable getEnvironment()
PropertyMetadata
. Applications
should store custom session context in the Session userdata.
getUserData()
public LocaleContext getLocaleContext()
public java.util.Hashtable getUserData()
public java.lang.String[] getUserRoles()
public boolean isUserInRole(java.lang.String role)
role
- the name of the role.
public boolean isClient()
|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.