import DataObjectObserver from 'service-framework/src/syncher/DataObjectObserver.js'
DataObjectObserver
Extends:
The class returned from the Syncher subscribe call. To be used as an observation point from a DataObjectReporter change.
Method Summary
Public Methods | ||
public |
delete() Release and delete object data |
|
public |
Register the change listeners sent by the reporter |
|
public |
Release and delete object data |
Inherited Summary
From class DataObject | ||
public get |
childrens: Object<ChildId, DataObjectChild> All created children's since the subscription, doesn't contain all children's since reporter creation. |
|
public get |
Data structure to be synchronized. |
|
public get |
All Metadata about the Data Object |
|
public get |
schema: SchemaURL Object schema URL (this field is not yet stable, and is subsject to change) |
|
public get |
status: Status Status of the reporter or observer connection (this field is not yet stable, and is subsject to change) |
|
public get |
url: ObjectURL Object URL of reporter or observer |
|
public |
addChild(children: String, initialData: JSON, identity: MessageBodyIdentity, input: SyncChildMetadata): Promise<DataObjectChild> Create and add a DataObjectChild to a children collection. |
|
public |
onAddChild(callback: function(event: MsgEvent)) Setup the callback to process create and delete of childrens. |
|
public |
resumeChildrens(childrens: *) |