public class WebTMLContextEnvironment extends java.lang.Object implements TMLContextEnvironment
TMLContextEnvironment.RootEnvironmentUserData| Constructor and Description |
|---|
WebTMLContextEnvironment(TMLContext mainContext,
javax.servlet.jsp.PageContext pageContext) |
| Modifier and Type | Method and Description |
|---|---|
de.innovationgate.webgate.api.WGDatabase |
fetchDB(java.lang.String dbKey) |
java.util.Map<java.lang.String,TMLAction> |
getActionRegistration() |
WGACore |
getCore() |
TMLForm |
getForm()
Return the "current" form of the WebTML environment
|
org.apache.log4j.Logger |
getLog() |
TMLContext |
getMainContext() |
de.innovationgate.webgate.api.WGDatabase |
getMainDesignDB() |
javax.servlet.jsp.PageContext |
getPageContext() |
java.util.Map<java.lang.String,java.lang.Object> |
getPageVars() |
java.util.Map<java.lang.String,TMLForm> |
getPersistentForms() |
ProcessContextRegistration |
getProcessContextRegistration() |
java.lang.String |
getPublisherURL() |
javax.servlet.http.HttpServletRequest |
getRequest() |
javax.servlet.http.HttpServletResponse |
getResponse() |
TMLContextEnvironment.RootEnvironmentUserData |
getRootEnvironmentUserData()
Returns data about the user that is responsible for creating and using calling this environment
Must return null if there this is the root environment.
|
javax.servlet.http.HttpSession |
getSession() |
java.util.Map<java.lang.String,de.innovationgate.utils.TransientObjectWrapper<java.lang.Object>> |
getSessionVars() |
TMLContext |
getTMLContextForDocument(TMLContext parentContext,
de.innovationgate.webgate.api.WGDocument doc) |
java.util.Map<java.lang.String,TMLForm> |
getTransientForms() |
WGAURLBuilder |
getURLBuilder() |
TMLUserProfile |
getUserProfile(de.innovationgate.webgate.api.WGDatabase db) |
java.util.List<Warning> |
getWarnings() |
void |
importEnvironmentData(TMLContext context,
boolean includeIntrusiveData)
Import data from another context.
|
boolean |
isPageContextAvailable() |
boolean |
isWebEnvironment() |
de.innovationgate.webgate.api.WGDatabase |
openDB(de.innovationgate.webgate.api.WGDatabase db) |
void |
removeForm(java.lang.String id) |
void |
setForm(TMLForm form) |
void |
setLog(org.apache.log4j.Logger log) |
public WebTMLContextEnvironment(TMLContext mainContext, javax.servlet.jsp.PageContext pageContext)
public java.util.Map<java.lang.String,TMLAction> getActionRegistration()
getActionRegistration in interface TMLContextEnvironmentpublic WGACore getCore()
getCore in interface TMLContextEnvironmentpublic TMLForm getForm()
TMLContextEnvironmentgetForm in interface TMLContextEnvironmentpublic TMLContext getMainContext()
getMainContext in interface TMLContextEnvironmentpublic java.util.Map<java.lang.String,de.innovationgate.utils.TransientObjectWrapper<java.lang.Object>> getSessionVars()
getSessionVars in interface TMLContextEnvironmentpublic TMLContext getTMLContextForDocument(TMLContext parentContext, de.innovationgate.webgate.api.WGDocument doc)
getTMLContextForDocument in interface TMLContextEnvironmentpublic TMLUserProfile getUserProfile(de.innovationgate.webgate.api.WGDatabase db)
getUserProfile in interface TMLContextEnvironmentpublic java.util.Map<java.lang.String,java.lang.Object> getPageVars()
getPageVars in interface TMLContextEnvironmentpublic java.util.List<Warning> getWarnings()
getWarnings in interface TMLContextEnvironmentpublic void importEnvironmentData(TMLContext context, boolean includeIntrusiveData) throws TMLException
TMLContextEnvironmentimportEnvironmentData in interface TMLContextEnvironmentcontext - The context to read data from.includeIntrusiveData - Whether to include data from the execution of WebTML code, like vars. False means that
just environment information is imported, so the context remains independent.TMLExceptionpublic void setForm(TMLForm form)
setForm in interface TMLContextEnvironmentpublic java.util.Map<java.lang.String,TMLForm> getPersistentForms()
getPersistentForms in interface TMLContextEnvironmentpublic java.util.Map<java.lang.String,TMLForm> getTransientForms()
getTransientForms in interface TMLContextEnvironmentpublic boolean isPageContextAvailable()
isPageContextAvailable in interface TMLContextEnvironmentpublic boolean isWebEnvironment()
isWebEnvironment in interface TMLContextEnvironmentpublic de.innovationgate.webgate.api.WGDatabase getMainDesignDB()
getMainDesignDB in interface TMLContextEnvironmentpublic de.innovationgate.webgate.api.WGDatabase openDB(de.innovationgate.webgate.api.WGDatabase db)
throws de.innovationgate.webgate.api.WGException
openDB in interface TMLContextEnvironmentde.innovationgate.webgate.api.WGExceptionpublic de.innovationgate.webgate.api.WGDatabase fetchDB(java.lang.String dbKey)
fetchDB in interface TMLContextEnvironmentpublic ProcessContextRegistration getProcessContextRegistration()
getProcessContextRegistration in interface TMLContextEnvironmentpublic TMLContextEnvironment.RootEnvironmentUserData getRootEnvironmentUserData()
TMLContextEnvironmentgetRootEnvironmentUserData in interface TMLContextEnvironmentpublic void removeForm(java.lang.String id)
removeForm in interface TMLContextEnvironmentpublic javax.servlet.jsp.PageContext getPageContext()
getPageContext in interface TMLContextEnvironmentpublic java.lang.String getPublisherURL()
getPublisherURL in interface TMLContextEnvironmentpublic javax.servlet.http.HttpServletRequest getRequest()
getRequest in interface TMLContextEnvironmentpublic javax.servlet.http.HttpServletResponse getResponse()
getResponse in interface TMLContextEnvironmentpublic javax.servlet.http.HttpSession getSession()
getSession in interface TMLContextEnvironmentpublic WGAURLBuilder getURLBuilder()
getURLBuilder in interface TMLContextEnvironmentpublic org.apache.log4j.Logger getLog()
getLog in interface TMLContextEnvironmentpublic void setLog(org.apache.log4j.Logger log)
setLog in interface TMLContextEnvironment