|
Oracle Fusion Middleware Java API Reference for Oracle ADF Controller 11g Release 1 (11.1.1.1.0) E10651-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.adf.controller.ControllerContext
public abstract class ControllerContext
Context class for per request per web application Controller information.
Constructor Summary | |
---|---|
ControllerContext()
|
Method Summary | |
---|---|
abstract void |
detectMetadataChanges()
Forces Controller to detect metadata and customization class changes (due to DT@RT operations) on the next Http request, when MDS metadata provider is used. |
abstract ViewPortContext |
getCurrentViewPort()
Returns ViewPortContext corresponding to the current view port. |
abstract java.lang.String |
getGlobalViewActivityURL(java.lang.String localViewId)
Generate a URL for a view activity in the unbounded task flow. |
static ControllerContext |
getInstance()
Retrieves the ControllerContext active for the current thread. |
abstract java.lang.String |
getLocalViewActivityURL(java.lang.String localViewId)
Generate a URL for a view activity in the local task flow. |
abstract SavePointManager |
getSavePointManager()
Returns SavePointManager . |
abstract java.lang.String |
getSavePointRestoreURL(java.lang.String savePointId)
Generates a URL to a save point restore activity within the current web application. |
abstract ControllerSecurityManager |
getSecurity()
Returns the current ControllerSecurityManager instance. |
abstract java.lang.String |
getTaskFlowURL(boolean currentViewPort,
TaskFlowId taskFlowId,
java.util.Map<java.lang.String,java.lang.Object> params)
Generate a URL for invoking a specific task flow within the current web application. |
abstract java.lang.String |
getViewActivityViewID(java.lang.String localViewId)
Generate view ID for a view activity inside a task flow definition. |
abstract void |
markScopeDirty(java.util.Map<java.lang.String,java.lang.Object> scopeMap)
Used to mark the contents of a custom ADF scope as dirty. |
protected static void |
setInstance(ControllerContext controller)
Specifies a ControllerContext instance to be used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ControllerContext()
Method Detail |
---|
public abstract ViewPortContext getCurrentViewPort()
ViewPortContext
corresponding to the current view port.
ViewPortContext
public abstract SavePointManager getSavePointManager()
SavePointManager
.
SavePointManager
public static ControllerContext getInstance()
ControllerContext
active for the current thread.
protected static void setInstance(ControllerContext controller)
ControllerContext
instance to be used.
controller
- an instance of ControllerContextpublic abstract ControllerSecurityManager getSecurity()
ControllerSecurityManager
instance.
public abstract java.lang.String getGlobalViewActivityURL(java.lang.String localViewId) throws AdfcIllegalArgumentException
localViewId
- view ID of a view activity in the local task flow.
For example, if a view activity definition looks like:
AdfcIllegalArgumentException
- if the specified local view ID is not a
valid view ID in the unbounded task flow.public abstract java.lang.String getLocalViewActivityURL(java.lang.String localViewId) throws AdfcIllegalArgumentException
localViewId
- view ID of a view activity in the local task flow.
For example, if a view activity definition looks like:
AdfcIllegalArgumentException
- if the specified local view ID is not a
valid view ID in the current task flow.public abstract java.lang.String getTaskFlowURL(boolean currentViewPort, TaskFlowId taskFlowId, java.util.Map<java.lang.String,java.lang.Object> params)
currentViewPort
- should the URL included state information for display in the
current view port?taskFlowId
- ID of the task flow to be invoked.params
- map of task flow parameter values to include in the URL.
public abstract java.lang.String getViewActivityViewID(java.lang.String localViewId)
UIViewRoot
representing this view activity so that
it can be launched in a dialog window.
It is caller's responsibility to ensure that the view activity exists.
localViewId
- view ID of a view activity in the local task flow.
For example, if a view activity definition looks like:
javax.faces.component.UIViewRoot
,
org.apache.myfaces.trinidad.context.RequestContext#launchDialog
public abstract java.lang.String getSavePointRestoreURL(java.lang.String savePointId)
savePointId
- the id of the save point to be restored
public abstract void detectMetadataChanges()
public abstract void markScopeDirty(java.util.Map<java.lang.String,java.lang.Object> scopeMap) throws java.lang.IllegalArgumentException
When running in a clustered server environment an application needs to indicate when it has changed the contents of an object stored in one of the custom ADF scopes so that those changes may be replicated within the cluster. This is only needed for scopes that have a lifespan longer than a request (e.g. pageFlowScope, viewScope) but not scopes with a lifespan of request of less (e.g backingBeanScope).
scopeMap
- the scope whose contents have changed.
java.lang.IllegalArgumentException
- if the scope specified is not one of the ADF custom
scopes with a lifespan longer then one request.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Controller 11g Release 1 (11.1.1.1.0) E10651-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |