public class ResourceWebScriptHelper extends Object
Constructor and Description |
---|
ResourceWebScriptHelper() |
Modifier and Type | Method and Description |
---|---|
Object |
processAdditionsToTheResponse(org.springframework.extensions.webscripts.WebScriptResponse res,
Api api,
String entityCollectionName,
Params params,
Object objectToWrap)
Looks at the object passed in and recursively expands any @EmbeddedEntityResource annotations or related relationship.
|
void |
setExecutor(ActionExecutor executor) |
void |
setLocator(ResourceLocator locator) |
static void |
setUniqueId(Object theObj,
String uniqueId)
Set the id of theObj to the uniqueId.
|
public static void setUniqueId(Object theObj, String uniqueId)
theObj
- ObjectuniqueId
- Stringpublic Object processAdditionsToTheResponse(org.springframework.extensions.webscripts.WebScriptResponse res, Api api, String entityCollectionName, Params params, Object objectToWrap)
EmbeddedEntityResource
is expanded by calling the ReadById method for this entity.
Either returns a ExecutionResult object or a CollectionWithPagingInfo containing a collection of ExecutionResult objects.api
- ApientityCollectionName
- Stringparams
- ParamsobjectToWrap
- Objectpublic void setLocator(ResourceLocator locator)
public void setExecutor(ActionExecutor executor)
Copyright © 2005–2017 Alfresco Software. All rights reserved.