|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.dataengine.ExecutingContext
An ExecutingContext contains information or data to be used for the currently executing state of some action, operation, or request being carried out by the user.
Nested Class Summary | |
static class |
ExecutingContext.RenderingMode
The rendering mode indicates what type of rendering is currently occurring. |
Field Summary | |
static ExecutingContext.RenderingMode |
RENDERING_MODE_CSV
Rendering to a CSV file |
static ExecutingContext.RenderingMode |
RENDERING_MODE_HTML
Rendering in HTML |
static ExecutingContext.RenderingMode |
RENDERING_MODE_PDF
Rendering to PDF |
static ExecutingContext.RenderingMode |
RENDERING_MODE_SPLF
Rendering to a Spooled File |
Constructor Summary | |
ExecutingContext()
Creates a new ExecutingContext object |
|
ExecutingContext(IUser user)
Creates a new ExecutingContext object |
|
ExecutingContext(IUser user,
Application application)
Creates a new ExecutingContext object |
Method Summary | |
void |
addReplacementLibraries(java.util.Map replacements)
Sets any replacement libraries |
static void |
clearCurrentExecutingContext()
Sets the current executing context |
Application |
getApplication()
Get the current application of this executing context. |
static ExecutingContext |
getCurrentExecutingContext()
Gets the current executing context |
static ExecutingContext |
getCurrentExecutingContext(IUser user)
Gets the current executing context. |
static HttpExecutingContext |
getCurrentHttpExecutingContext()
Gets the current Http executing context |
int |
getCurrentTabIndex()
Get current tab index. |
static ExecutingContext |
getDefaultExecutingContext()
Return a default ExecutingContext with unknown user and application |
static ExecutingContext |
getDefaultExecutingContext(int pMode)
Return a default ExecutingContext with unknown user and application, and the specified mode |
java.lang.String |
getInitParameter(java.lang.String paramName)
Gets the value of an initialization parameter which was specified in the WEB.XML |
java.lang.String |
getLibraryList()
Gets the current library list. |
int |
getMode()
Gets the mode of the current action being performed on the database (e.g. |
java.lang.Object |
getObject(java.lang.Object key)
|
ExecutingContext.RenderingMode |
getRenderingMode()
Gets a RenderingMode object which describes the type of rendering which is currently being performed |
java.util.Map |
getReplacementLibraries()
Gets the current replace libraries |
java.lang.String |
getReplacementLibrary(java.lang.String library)
Gets the current replacement library for the given library |
java.lang.Object |
getRuntimeParameterValue(java.lang.String name)
Gets the value of a runtime parameter |
java.lang.String |
getThemeId()
Gets the current theme id. |
IUser |
getUser()
Get the current user of this executing context. |
java.lang.String |
getUserLibrary()
Gets the current user library. |
java.lang.Object |
getUserValue(java.lang.String key)
Convience method that returns the a current user's value for the given field name. |
boolean |
isLoadParameterValuesFromRequest()
Do we load parameter values from the http request during the executing of this magic request? If parameters for a context are being displayed and a different context ends up being executed, it may cause a new copy of the first context to be executed as well, and we may not want to load the "old" parameter values into that context. |
boolean |
isModeCopy()
Copy mode? |
boolean |
isModeDelete()
Delete mode? |
boolean |
isModeEdit()
Edit mode? |
boolean |
isModeInsert()
Insert mode? |
boolean |
isModeView()
View mode? |
java.lang.Object |
putObject(java.lang.Object key,
java.lang.Object value)
|
java.lang.Object |
removeObject(java.lang.Object key)
|
void |
setApplication(Application application)
Set the current application of this executing context. |
static void |
setCurrentExecutingContext(ExecutingContext ec)
Sets the current executing context |
void |
setCurrentTabIndex(int index)
Set the current tab index. |
void |
setDataEngineMode(java.lang.String newMode)
Sets the mode of the current action being performed by the application (e.g. |
void |
setLibraryList(java.lang.String libraryList)
Sets the current library list. |
void |
setLoadParameterValuesFromRequest(boolean loadValues)
Do we load parameter values from the http request during the executing of this magic request? If parameters for a context are being displayed and a different context ends up being executed, it may cause a new copy of the first context to be executed as well, and we may not want to load the "old" parameter values into that context. |
void |
setMode(int newMode)
Sets the mode of the current action being performed on the database (e.g. |
void |
setRenderingMode(ExecutingContext.RenderingMode renderingMode)
Sets a RenderingMode object which describes the type of rendering which is currently being performed |
void |
setStayOnSameNavigationGroup(boolean stay)
|
void |
setThemeId(int themeId)
Sets the current theme id |
void |
setThemeId(java.lang.String themeId)
Sets the current theme id |
void |
setUser(IUser user)
Set the current user of this executing context. |
void |
setUserLibrary(java.lang.String newUserLibrary)
Sets the current user library |
static java.lang.String |
transformAlias(java.lang.String originalAlias)
Given a shared connection alias, returns the appropriate connection alias to use for DB access. |
java.lang.String |
transformSystemAlias(java.lang.String originalAlias)
Given a shared connection alias, returns the appropriate connection alias to use for DB access. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final ExecutingContext.RenderingMode RENDERING_MODE_HTML
public static final ExecutingContext.RenderingMode RENDERING_MODE_CSV
public static final ExecutingContext.RenderingMode RENDERING_MODE_PDF
public static final ExecutingContext.RenderingMode RENDERING_MODE_SPLF
Constructor Detail |
public ExecutingContext()
public ExecutingContext(IUser user)
public ExecutingContext(IUser user, Application application)
Method Detail |
public static void clearCurrentExecutingContext()
public Application getApplication()
public int getCurrentTabIndex()
public java.lang.String getInitParameter(java.lang.String paramName)
public java.lang.String getLibraryList()
public static ExecutingContext getCurrentExecutingContext()
public static HttpExecutingContext getCurrentHttpExecutingContext()
public static ExecutingContext getCurrentExecutingContext(IUser user)
public static ExecutingContext getDefaultExecutingContext()
public static ExecutingContext getDefaultExecutingContext(int pMode)
public int getMode()
public java.lang.Object getObject(java.lang.Object key)
public ExecutingContext.RenderingMode getRenderingMode()
public java.lang.Object getRuntimeParameterValue(java.lang.String name)
public java.lang.String getThemeId()
public IUser getUser()
public java.util.Map getReplacementLibraries()
public java.lang.String getReplacementLibrary(java.lang.String library)
public java.lang.String getUserLibrary()
public java.lang.Object getUserValue(java.lang.String key)
public boolean isLoadParameterValuesFromRequest()
public boolean isModeCopy()
public boolean isModeDelete()
public boolean isModeEdit()
public boolean isModeInsert()
public boolean isModeView()
public java.lang.Object putObject(java.lang.Object key, java.lang.Object value)
public java.lang.Object removeObject(java.lang.Object key)
public void setApplication(Application application)
public void setCurrentTabIndex(int index)
public static void setCurrentExecutingContext(ExecutingContext ec)
public void setDataEngineMode(java.lang.String newMode)
public void setLibraryList(java.lang.String libraryList)
public void setLoadParameterValuesFromRequest(boolean loadValues)
public void setMode(int newMode)
public void addReplacementLibraries(java.util.Map replacements)
public void setRenderingMode(ExecutingContext.RenderingMode renderingMode)
public void setStayOnSameNavigationGroup(boolean stay)
public void setThemeId(int themeId)
public void setThemeId(java.lang.String themeId)
public void setUser(IUser user)
public void setUserLibrary(java.lang.String newUserLibrary)
public static java.lang.String transformAlias(java.lang.String originalAlias)
public java.lang.String transformSystemAlias(java.lang.String originalAlias)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |