new OperationsDeserializer( [sourceId])
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
sourceId |
string |
<optional> |
olympe.dc.SourceType.SERVER |
Members
-
<protected> sourceId :string
-
Type:
- string
Methods
-
<static> deserializeProperties(props)
-
Deserializes properties
Parameters:
Name Type Description props
Object Properties map whose values will be modified
Returns:
Updated properties map (note: it is the same object as the one passed as argument)
- Type
- Map.<string, ?*>
-
deserialize(operations)
-
Deserializes an array of patch operations into an GraphPatch.
This method is called when the array of operation is a subcomponent of a larger JSON structure, that is being parsed beforehand. In that case, the parsing is already done which makes calling deserializeJson() above irrelevant.
Parameters:
Name Type Description operations
Array.<!Object> Patch operations as received by the server
- Deprecated:
-
- use
deserializePatch
instead
- use
Returns:
The created patch
-
deserializeNotification(graphdefId, operations)
-
Deserializes the specified array of operations into a graph notification. It includes the metadata operations to create and update graphdef blocks.
Parameters:
Name Type Description graphdefId
string operations
Array.<!Object> Returns:
-
deserializePatch(operations)
-
Deserializes an array of patch operations into an GraphPatch.
Parameters:
Name Type Description operations
Array.<!Object> Returns:
-
deserializeResult(graphdefId, destination, operations)
-
Deserializes the specified array of operations into a graph result. It includes the metadata operations to create and fill graphdef blocks.
Parameters:
Name Type Description graphdefId
string destination
olympe.dc.SourceType operations
Array.<!Object> Returns: