public class DesignContext extends java.lang.Object implements TMLDesignContext
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() |
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 BaseTagStatus getTag()
TMLDesignContext
getTag
in interface TMLDesignContext
public de.innovationgate.webgate.api.WGDatabase getDesignDB()
TMLDesignContext
getDesignDB
in interface TMLDesignContext
public DesignResourceReference getBaseReference()
TMLDesignContext
getBaseReference
in interface TMLDesignContext
public de.innovationgate.wga.common.beans.csconfig.v1.Version getVersionCompliance()
TMLDesignContext
getVersionCompliance
in interface TMLDesignContext
public void addWarning(TMLContext cx, java.lang.String msg, boolean severe, java.lang.Throwable cause)
TMLDesignContext
addWarning
in interface TMLDesignContext
cx
- WebTML contextmsg
- Messagesevere
- Whether the message indicates a cancelled tag executioncause
- Optional cause exceptionpublic TMLDesignContext createContextDelegate(de.innovationgate.webgate.api.WGDatabase designdb, java.lang.String baseReference)
TMLDesignContext
createContextDelegate
in interface TMLDesignContext
designdb
- The design applicationbaseReference
- The base referencepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public TMLPortlet getPortlet() throws de.innovationgate.webgate.api.WGAPIException
TMLDesignContext
getPortlet
in interface TMLDesignContext
de.innovationgate.webgate.api.WGAPIException
public TMLOption getOption(java.lang.String name)
TMLDesignContext
getOption
in interface TMLDesignContext
name
- Option namepublic void setOption(java.lang.String name, java.lang.Object value, java.lang.String scope) throws de.innovationgate.webgate.api.WGNotSupportedException
TMLDesignContext
setOption
in interface TMLDesignContext
name
- Option namevalue
- Option valuescope
- Option inheritance scope. Use TMLOption.SCOPE_... constantsde.innovationgate.webgate.api.WGNotSupportedException
public void setDownwardOption(java.lang.String name, java.lang.Object value, java.lang.String scope) throws de.innovationgate.webgate.api.WGNotSupportedException
TMLDesignContext
setDownwardOption
in interface TMLDesignContext
name
- Option namevalue
- Option valuescope
- Option inheritance scope. Use TMLOption.SCOPE_... constantsde.innovationgate.webgate.api.WGNotSupportedException
public java.util.List<java.lang.String> getOptionNames()
TMLDesignContext
getOptionNames
in interface TMLDesignContext
public java.lang.String getMediaKey() throws de.innovationgate.webgate.api.WGException
TMLDesignContext
getMediaKey
in interface TMLDesignContext
de.innovationgate.webgate.api.WGException
public void removeOption(java.lang.String name) throws de.innovationgate.webgate.api.WGNotSupportedException
removeOption
in interface TMLDesignContext
de.innovationgate.webgate.api.WGNotSupportedException
public de.innovationgate.wga.common.beans.csconfig.v1.Version getMinimumWGAVersion()
TMLDesignContext
getMinimumWGAVersion
in interface TMLDesignContext
public void setLocalVarOnModule(java.lang.String name, java.lang.Object value) throws de.innovationgate.webgate.api.WGAPIException
TMLDesignContext
setLocalVarOnModule
in interface TMLDesignContext
name
- Variable namevalue
- Variable valuede.innovationgate.webgate.api.WGAPIException
public void setLocalVar(java.lang.String name, java.lang.Object value) throws de.innovationgate.webgate.api.WGAPIException
TMLDesignContext
setLocalVar
in interface TMLDesignContext
name
- Variable namevalue
- Variable valuede.innovationgate.webgate.api.WGAPIException
public java.lang.Object retrieveLocalVar(java.lang.String name) throws de.innovationgate.webgate.api.WGAPIException
TMLDesignContext
NullPlaceHolder
instance of no variable was found.retrieveLocalVar
in interface TMLDesignContext
name
- Variable namede.innovationgate.webgate.api.WGAPIException
public java.lang.Object removeLocalVar(java.lang.String name) throws de.innovationgate.webgate.api.WGAPIException
TMLDesignContext
NullPlaceHolder
instance of no variable was found.removeLocalVar
in interface TMLDesignContext
name
- Variable namede.innovationgate.webgate.api.WGAPIException