import ComplexBuilder from 'opengate-js/src/provision/entities/ComplexBuilder.js'ComplexBuilder
Extends:
Direct Subclass:
This class extends SimpleBuilder to allow set complex values. What is a complex value? It is simple, It is a value that need a communications module identifier to allow set into the box.
Constructor Summary
| Public Constructor | ||
| public |
constructor(ogapi: InternalOpenGateAPI, resource: string, allowedDatastreams: array, definedSchemas: array, jsonSchemaValidator: Validator) Constructor |
|
Method Summary
| Public Methods | ||
| public |
initFromFlattened(_flattenedEntityData: *) |
|
| public |
initFromJson(_jsonEntityData: *) |
|
| public |
withComplex(_id: string, idCommunicationModules: string, val: object): * Set a complex value to entity |
|
Inherited Summary
| From class BaseProvision | ||
| public |
This invoke a request to OpenGate North API and the callback is managed by promises This function create a entity of provision |
|
| public |
This invoke a request to OpenGate North API and the callback is managed by promises This function deletes a entity of provision |
|
| public |
This invoke a request to OpenGate North API and the callback is managed by promises This function updates a entity of provision |
|
| From class SimpleBuilder | ||
| public |
This invoke a request to OpenGate North API and the callback is managed by promises This function deletes a entity of provision |
|
| public |
getAllowedDatastreams(): array |
|
| public |
|
|
| public |
initFromFlattened(_flattenedEntityData: *) |
|
| public |
initFromJson(_jsonEntityData: *) |
|
| public |
This invoke a request to OpenGate North API and the callback is managed by promises This function patch a entity of provision |
|
| public |
This invoke a request to OpenGate North API and the callback is managed by promises This function updates a entity of provision |
|
| public |
Set new datastream value |
|
Public Constructors
public constructor(ogapi: InternalOpenGateAPI, resource: string, allowedDatastreams: array, definedSchemas: array, jsonSchemaValidator: Validator) source
Constructor
Override:
SimpleBuilder#constructorParams:
| Name | Type | Attribute | Description |
| ogapi | InternalOpenGateAPI |
|
this is ogapi instance |
| resource | string |
|
this is the resource url where can be create/delete/update/read the entity |
| allowedDatastreams | array |
|
Allowed datastreams to add into the new entity |
| definedSchemas | array |
|
Jsonschema about all OpenGate specific types |
| jsonSchemaValidator | Validator |
|
Json schema validator tool |
Public Methods
public initFromFlattened(_flattenedEntityData: *) source
Override:
SimpleBuilder#initFromFlattenedParams:
| Name | Type | Attribute | Description |
| _flattenedEntityData | * |
public initFromJson(_jsonEntityData: *) source
Override:
SimpleBuilder#initFromJsonParams:
| Name | Type | Attribute | Description |
| _jsonEntityData | * |