public final class ScriptRenderContext extends ScriptBase
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.extensions.webscripts.ScriptableMap<String,Serializable> |
attributes |
protected org.springframework.extensions.webscripts.ScriptableMap<String,Serializable> |
headers |
protected org.springframework.extensions.webscripts.ScriptableMap<String,Serializable> |
parameters |
context, properties| Constructor and Description |
|---|
ScriptRenderContext(RequestContext context)
Constructs a new ScriptRequestContext object.
|
getConfig, getObject, getObjectService, getProperties, getRequestContext, toStringprotected org.springframework.extensions.webscripts.ScriptableMap<String,Serializable> parameters
protected org.springframework.extensions.webscripts.ScriptableMap<String,Serializable> attributes
protected org.springframework.extensions.webscripts.ScriptableMap<String,Serializable> headers
public ScriptRenderContext(RequestContext context)
context - The RequestContext instance for the current requestprotected org.springframework.extensions.webscripts.ScriptableMap buildProperties()
buildProperties in class ScriptBasepublic 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 void setThemeId(String themeId)
public ScriptModelObject getSiteConfiguration()
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 getPreviewUserId()
public String getFrameworkTitle()
public String getFrameworkVersion()
public ScriptResource loadResource(String resourceId)
public ScriptResource loadResource(String protocolId, String endpointId, String objectId)
public org.springframework.extensions.webscripts.ScriptableMap getParameters()
public org.springframework.extensions.webscripts.ScriptableMap getAttributes()
public org.springframework.extensions.webscripts.ScriptableMap getHeaders()
Copyright © 2005–2016 Alfresco Software. All rights reserved.