import DataObjectsStorage from 'runtime-core/src/store-objects/DataObjectsStorage.js'
DataObjectsStorage
Constructor Summary
Public Constructor | ||
public |
constructor(storageManager: *, storedDataObjects: *) |
Method Summary
Public Methods | ||
public |
|
|
public |
deleteResource(resource: *): * TODO: check if this process is viable because the storage manager ability to delete now the storageManager only can delete an specific key, but not the specific value inside that key; |
|
public |
getAll(): * |
|
public |
getDataObject(resource: DataObjectURL): * |
|
public |
getResourcesByCriteria(msg: Object, isReporter: Boolean): * |
|
public |
saveChildrens(isReporter: *, resource: *, attribute: *, value: *): * |
|
public |
|
|
public |
set(url: DataObjectURL, isReporter: Boolean, schema: SchemaURL, status: String, reporter: HypertyURL, subscription: Array<HypertyURL>, children: Array<DataObjectChild>, childrens: Array<String>, subscriberUser: Array<UserURL): * |
|
public |
|
Public Constructors
public constructor(storageManager: *, storedDataObjects: *) source
Params:
Name | Type | Attribute | Description |
storageManager | * | ||
storedDataObjects | * |
Public Methods
public delete(isReporter: Boolean, resource: DataObjectURL, attribute: String, data: any): * source
Return:
* |
public deleteResource(resource: *): * source
TODO: check if this process is viable because the storage manager ability to delete now the storageManager only can delete an specific key, but not the specific value inside that key;
Params:
Name | Type | Attribute | Description |
resource | * |
Return:
* |
public getDataObject(resource: DataObjectURL): * source
Params:
Name | Type | Attribute | Description |
resource | DataObjectURL | the dataObjectURL will be searched |
Return:
* | Promise<Object> object with the dataObject information; |
public getResourcesByCriteria(msg: Object, isReporter: Boolean): * source
Return:
* | Promise<object> should retun an object with the dataObject or null |
public saveChildrens(isReporter: *, resource: *, attribute: *, value: *): * source
Params:
Name | Type | Attribute | Description |
isReporter | * | ||
resource | * | ||
attribute | * | ||
value | * |
Return:
* |
public saveData(isReporter: Boolean, resource: DataObjectURL, attribute: String, data: any): * source
Return:
* |
public set(url: DataObjectURL, isReporter: Boolean, schema: SchemaURL, status: String, reporter: HypertyURL, subscription: Array<HypertyURL>, children: Array<DataObjectChild>, childrens: Array<String>, subscriberUser: Array<UserURL): * source
Params:
Name | Type | Attribute | Description |
url | DataObjectURL | dataObjectURL to be saved; |
|
isReporter | Boolean | the object to be saved is a reporter |
|
schema | SchemaURL | the schema url |
|
status | String | the status of current dataObject |
|
reporter | HypertyURL | the Reporter hypertyURL |
|
subscription | Array<HypertyURL> | list of subscriptions |
|
children | Array<DataObjectChild> | list of childs of dataObjectURL |
|
childrens | Array<String> | list of childrens, like, 'chatmessage'; |
|
subscriberUser | Array<UserURL | list of subscribed users; |
Return:
* |