public class IndependentDesignContext extends java.lang.Object implements TMLDesignContext
| Constructor and Description |
|---|
IndependentDesignContext(IndependentTMLScriptEnvironment env,
de.innovationgate.webgate.api.WGDatabase designDB,
java.lang.String baseDesignReference) |
| Modifier and Type | Method and Description |
|---|---|
void |
addWarning(TMLContext cx,
java.lang.String msg,
boolean severe,
java.lang.Throwable cause)
Adds a WebTML warning to the design context
|
TMLDesignContext |
createContextDelegate(de.innovationgate.webgate.api.WGDatabase designdb,
java.lang.String baseReference)
Creates a delegate of this design context type for the given design reference information
|
boolean |
equals(java.lang.Object obj) |
DesignResourceReference |
getBaseReference()
Returnrs the base reference of the design that uses this design context
|
de.innovationgate.webgate.api.WGDatabase |
getDesignDB()
Returns the design application for this design context
|
java.lang.String |
getMediaKey()
Returns the WebTML media key of the design that uses this design context
|
de.innovationgate.wga.common.beans.csconfig.v1.Version |
getMinimumWGAVersion()
Gets the minimum version for OpenWGA of the design that uses this design context
|
TMLOption |
getOption(java.lang.String name)
Returns a WebTML option of the current design context
|
java.util.List<java.lang.String> |
getOptionNames()
Returns the names of WebTML options known on this design context
|
TMLPortlet |
getPortlet()
Returns the portlet associated with this design context
|
BaseTagStatus |
getTag()
Returns the associated WebTML tag with this design context
|
de.innovationgate.wga.common.beans.csconfig.v1.Version |
getVersionCompliance()
Gets the version compliance of the design that uses this design context
|
int |
hashCode() |
boolean |
isTagAvailable() |
java.lang.Object |
removeLocalVar(java.lang.String name)
Removes a local WebTML variable.
|
void |
removeOption(java.lang.String name) |
java.lang.Object |
retrieveLocalVar(java.lang.String name)
Retrieves the value of a local WebTML variable.
|
void |
setDownwardOption(java.lang.String name,
java.lang.Object value,
java.lang.String scope)
Defines a WebTML option on the scope of the current design context
|
void |
setLocalVar(java.lang.String name,
java.lang.Object value)
Sets a local WebTML variable to the scope of this design context
|
void |
setLocalVarOnModule(java.lang.String name,
java.lang.Object value)
Sets a local WebTML variable to WebTML module scope (if available).
|
void |
setOption(java.lang.String name,
java.lang.Object value,
java.lang.String scope)
Defines a WebTML option on WebTML module scope (if available).
|
public IndependentDesignContext(IndependentTMLScriptEnvironment env, de.innovationgate.webgate.api.WGDatabase designDB, java.lang.String baseDesignReference)
public de.innovationgate.webgate.api.WGDatabase getDesignDB()
TMLDesignContextgetDesignDB in interface TMLDesignContextpublic BaseTagStatus getTag()
TMLDesignContextgetTag in interface TMLDesignContextpublic void addWarning(TMLContext cx, java.lang.String msg, boolean severe, java.lang.Throwable cause)
TMLDesignContextaddWarning in interface TMLDesignContextcx - WebTML contextmsg - Messagesevere - Whether the message indicates a cancelled tag executioncause - Optional cause exceptionpublic boolean isTagAvailable()
public TMLDesignContext createContextDelegate(de.innovationgate.webgate.api.WGDatabase designdb, java.lang.String baseReference)
TMLDesignContextcreateContextDelegate in interface TMLDesignContextdesigndb - The design applicationbaseReference - The base referencepublic DesignResourceReference getBaseReference()
TMLDesignContextgetBaseReference in interface TMLDesignContextpublic de.innovationgate.wga.common.beans.csconfig.v1.Version getVersionCompliance()
TMLDesignContextgetVersionCompliance in interface TMLDesignContextpublic TMLPortlet getPortlet() throws de.innovationgate.webgate.api.WGAPIException
TMLDesignContextgetPortlet in interface TMLDesignContextde.innovationgate.webgate.api.WGAPIExceptionpublic TMLOption getOption(java.lang.String name)
TMLDesignContextgetOption in interface TMLDesignContextname - Option namepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void setOption(java.lang.String name,
java.lang.Object value,
java.lang.String scope)
TMLDesignContextsetOption in interface TMLDesignContextname - Option namevalue - Option valuescope - Option inheritance scope. Use TMLOption.SCOPE_... constantspublic void setDownwardOption(java.lang.String name,
java.lang.Object value,
java.lang.String scope)
TMLDesignContextsetDownwardOption in interface TMLDesignContextname - Option namevalue - Option valuescope - Option inheritance scope. Use TMLOption.SCOPE_... constantspublic java.util.List<java.lang.String> getOptionNames()
TMLDesignContextgetOptionNames in interface TMLDesignContextpublic java.lang.String getMediaKey()
throws de.innovationgate.webgate.api.WGException
TMLDesignContextgetMediaKey in interface TMLDesignContextde.innovationgate.webgate.api.WGExceptionpublic void removeOption(java.lang.String name)
throws de.innovationgate.webgate.api.WGException
removeOption in interface TMLDesignContextde.innovationgate.webgate.api.WGExceptionpublic de.innovationgate.wga.common.beans.csconfig.v1.Version getMinimumWGAVersion()
TMLDesignContextgetMinimumWGAVersion in interface TMLDesignContextpublic void setLocalVarOnModule(java.lang.String name,
java.lang.Object value)
throws de.innovationgate.webgate.api.WGAPIException
TMLDesignContextsetLocalVarOnModule in interface TMLDesignContextname - Variable namevalue - Variable valuede.innovationgate.webgate.api.WGAPIExceptionpublic void setLocalVar(java.lang.String name,
java.lang.Object value)
throws de.innovationgate.webgate.api.WGAPIException
TMLDesignContextsetLocalVar in interface TMLDesignContextname - Variable namevalue - Variable valuede.innovationgate.webgate.api.WGAPIExceptionpublic java.lang.Object retrieveLocalVar(java.lang.String name)
throws de.innovationgate.webgate.api.WGAPIException
TMLDesignContextNullPlaceHolder instance of no variable was found.retrieveLocalVar in interface TMLDesignContextname - Variable namede.innovationgate.webgate.api.WGAPIExceptionpublic java.lang.Object removeLocalVar(java.lang.String name)
throws de.innovationgate.webgate.api.WGAPIException
TMLDesignContextNullPlaceHolder instance of no variable was found.removeLocalVar in interface TMLDesignContextname - Variable namede.innovationgate.webgate.api.WGAPIException