|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.ScriptBase org.springframework.extensions.webscripts.ScriptRenderContext
public final class ScriptRenderContext
A root-scoped Java object that wraps the Render Context object.
Field Summary |
---|
Fields inherited from class org.springframework.extensions.webscripts.ScriptBase |
---|
context, properties |
Constructor Summary | |
---|---|
ScriptRenderContext(RenderContext context)
Constructs a new ScriptRequestContext object. |
Method Summary | |
---|---|
protected ScriptableMap |
buildProperties()
|
boolean |
getAuthenticated()
Returns whether the current user is authenticated If there is no curren tuesr, this will return false. |
String |
getContentId()
Gets the id of the content instance If a content instance is not bound, null is returned. |
boolean |
getExternalAuthentication()
|
String |
getFormatId()
Gets the format id. |
String |
getFrameworkTitle()
|
String |
getFrameworkVersion()
|
String |
getId()
Gets the id. |
ScriptLinkBuilder |
getLinkBuilder()
Gets the link builder helper object |
ScriptModelObject |
getPage()
Gets the page. |
String |
getPageId()
Gets the id of the page |
String |
getPreviewStoreId()
|
String |
getPreviewWebappId()
|
ScriptResource |
getResource()
Gets the content instance. |
ScriptModelObject |
getRootPage()
|
ScriptModelObject |
getTemplate()
Gets the template. |
String |
getTemplateId()
Gets the id of the template |
ScriptModelObject |
getTheme()
Gets the theme. |
String |
getThemeId()
Gets the theme id. |
String |
getUri()
|
ScriptUser |
getUser()
Gets the user. |
String |
getWebsiteTitle()
|
ScriptResource |
loadResource(String resourceId)
|
ScriptResource |
loadResource(String protocolId,
String endpointId,
String objectId)
|
void |
setValue(String key,
Object value)
|
Methods inherited from class org.springframework.extensions.webscripts.ScriptBase |
---|
getConfig, getModel, getObject, getProperties, getRequestContext, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScriptRenderContext(RenderContext context)
context
- The RenderContext instance for the current requestMethod Detail |
---|
protected ScriptableMap buildProperties()
buildProperties
in class ScriptBase
public void setValue(String key, Object value)
public String getContentId()
public ScriptResource getResource()
public String getFormatId()
public String getId()
public String getPageId()
public ScriptModelObject getPage()
public String getTemplateId()
public ScriptModelObject getTemplate()
public String getThemeId()
public ScriptModelObject getTheme()
public ScriptUser getUser()
public boolean getAuthenticated()
public boolean getExternalAuthentication()
public ScriptLinkBuilder getLinkBuilder()
public String getWebsiteTitle()
public String getUri()
public ScriptModelObject getRootPage()
public String getPreviewWebappId()
public String getPreviewStoreId()
public String getFrameworkTitle()
public String getFrameworkVersion()
public ScriptResource loadResource(String resourceId)
public ScriptResource loadResource(String protocolId, String endpointId, String objectId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |