public abstract class ScriptBase extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected RequestContext |
context |
protected org.springframework.extensions.webscripts.ScriptableMap<String,Serializable> |
properties |
| Constructor and Description |
|---|
ScriptBase() |
ScriptBase(RequestContext context)
Instantiates a new web framework script base
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.springframework.extensions.webscripts.ScriptableMap<String,Serializable> |
buildProperties() |
WebFrameworkConfigElement |
getConfig() |
ScriptModelObject |
getObject(String objectTypeId,
String objectId)
Retrieves a model object from the underlying store and hands it back
wrapped as a ScriptModelObject.
|
protected ModelObjectService |
getObjectService()
Gets the model object service
|
org.springframework.extensions.webscripts.ScriptableMap<String,Serializable> |
getProperties() |
RequestContext |
getRequestContext()
Gets the request context.
|
String |
toString() |
protected final RequestContext context
protected org.springframework.extensions.webscripts.ScriptableMap<String,Serializable> properties
public ScriptBase(RequestContext context)
context - the contextpublic ScriptBase()
public final RequestContext getRequestContext()
protected ModelObjectService getObjectService()
public final ScriptModelObject getObject(String objectTypeId, String objectId)
objectTypeId - the object type idobjectId - the object idpublic org.springframework.extensions.webscripts.ScriptableMap<String,Serializable> getProperties()
public final WebFrameworkConfigElement getConfig()
protected abstract org.springframework.extensions.webscripts.ScriptableMap<String,Serializable> buildProperties()
Copyright © 2005–2016 Alfresco Software. All rights reserved.