Class ExecutionResult
- java.lang.Object
-
- org.alfresco.rest.framework.jacksonextensions.ExecutionResult
-
public class ExecutionResult extends Object
Represents the result of 1 or more executions. This object will be rendered as JSON- Author:
- Gethin James
-
-
Constructor Summary
Constructors Constructor Description ExecutionResult(Object root, BeanPropertiesFilter filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEmbedded(Map<String,Object> embedded)
Adds embeddeds object to the enclosing root objectvoid
addRelated(Map<String,Object> related)
Adds related object to the enclosing root objectMap<String,Object>
getEmbedded()
Returns the Map of embedded objectsBeanPropertiesFilter
getFilter()
Map<String,Object>
getRelated()
Returns the Map of related objectsObject
getRoot()
boolean
isAnEmbeddedEntity()
Is this object and embedded entityvoid
setAnEmbeddedEntity(boolean anEmbeddedEntity)
Is this object and embedded entityString
toString()
-
-
-
Constructor Detail
-
ExecutionResult
public ExecutionResult(Object root, BeanPropertiesFilter filter)
-
-
Method Detail
-
getFilter
public BeanPropertiesFilter getFilter()
- Returns:
- the filter
-
getRoot
public Object getRoot()
-
addEmbedded
public void addEmbedded(Map<String,Object> embedded)
Adds embeddeds object to the enclosing root object- Parameters:
embedded
- objects to add
-
addRelated
public void addRelated(Map<String,Object> related)
Adds related object to the enclosing root object- Parameters:
related
- objects to add
-
isAnEmbeddedEntity
public boolean isAnEmbeddedEntity()
Is this object and embedded entity- Returns:
- boolean - true if it is embedded, defaults to false
-
setAnEmbeddedEntity
public void setAnEmbeddedEntity(boolean anEmbeddedEntity)
Is this object and embedded entity- Parameters:
anEmbeddedEntity
- - true if it is embedded, defaults to false
-
getEmbedded
public Map<String,Object> getEmbedded()
Returns the Map of embedded objects- Returns:
- Map
-
-