public interface TMLContextEnvironment
Modifier and Type | Interface and Description |
---|---|
static class |
TMLContextEnvironment.RootEnvironmentUserData |
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) |
TMLContext getMainContext()
java.util.Map<java.lang.String,TMLAction> getActionRegistration()
ProcessContextRegistration getProcessContextRegistration()
java.util.Map<java.lang.String,de.innovationgate.utils.TransientObjectWrapper<java.lang.Object>> getSessionVars()
java.util.Map<java.lang.String,java.lang.Object> getPageVars()
java.util.List<Warning> getWarnings()
void importEnvironmentData(TMLContext context, boolean includeIntrusiveData) throws TMLException
context
- 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.TMLException
TMLContext getTMLContextForDocument(TMLContext parentContext, de.innovationgate.webgate.api.WGDocument doc)
TMLForm getForm()
TMLUserProfile getUserProfile(de.innovationgate.webgate.api.WGDatabase db)
WGACore getCore()
void setForm(TMLForm form)
boolean isPageContextAvailable()
boolean isWebEnvironment()
java.util.Map<java.lang.String,TMLForm> getPersistentForms()
java.util.Map<java.lang.String,TMLForm> getTransientForms()
de.innovationgate.webgate.api.WGDatabase getMainDesignDB()
de.innovationgate.webgate.api.WGDatabase openDB(de.innovationgate.webgate.api.WGDatabase db) throws de.innovationgate.webgate.api.WGException
de.innovationgate.webgate.api.WGException
de.innovationgate.webgate.api.WGDatabase fetchDB(java.lang.String dbKey)
TMLContextEnvironment.RootEnvironmentUserData getRootEnvironmentUserData()
void removeForm(java.lang.String id)
javax.servlet.jsp.PageContext getPageContext()
java.lang.String getPublisherURL()
javax.servlet.http.HttpServletRequest getRequest()
javax.servlet.http.HttpServletResponse getResponse()
javax.servlet.http.HttpSession getSession()
WGAURLBuilder getURLBuilder()
org.apache.log4j.Logger getLog()
void setLog(org.apache.log4j.Logger log)