Home Reference Source
import EntitySubject from 'vibejs/src/entity/EntitySubject.js'
public class | source

EntitySubject

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

id: *

public
public

model: *

public

name: *

public
public

store: *

public

Method Summary

Public Methods
public

asObject(relationDeepness: *): *

public
public

equals(entitySubject: *): *

public

isSubscriberOf(name: *, id: *): *

public

mutate(mutation: *, message: string)

public

subscribe(name: *, id: *): *

public
public

unsubscribe(name: *, id: *)

public
Private Methods
private

_applyComputed(reactiveInterface: *)

private

_applyMutations(reactiveInterface: *)

private

_asObject(structure: *, item: *, deepness: *): *

private

_mapObserverToSource(item: {}, structure: *, stateProvider: *): *

private

_processReference(value: *, stateProvider: *): *

Public Constructors

public constructor() source

Public Members

public id: * source

public interface: * source

public model: * source

public name: * source

public observable: * source

public store: * source

public subscriptions: {} source

Public Methods

public asObject(relationDeepness: *): * source

Params:

NameTypeAttributeDescription
relationDeepness *

Return:

*

public createReactiveInterface(): * source

Return:

*

public equals(entitySubject: *): * source

Params:

NameTypeAttributeDescription
entitySubject *

Return:

*

public isSubscriberOf(name: *, id: *): * source

Params:

NameTypeAttributeDescription
name *
id *

Return:

*

public mutate(mutation: *, message: string) source

Params:

NameTypeAttributeDescription
mutation *
message string
  • optional
  • default:

public subscribe(name: *, id: *): * source

Params:

NameTypeAttributeDescription
name *
id *

Return:

*

public toString(): string source

Return:

string

public unsubscribe(name: *, id: *) source

Params:

NameTypeAttributeDescription
name *
id *

public updateInterface() source

Private Methods

private _applyComputed(reactiveInterface: *) source

Params:

NameTypeAttributeDescription
reactiveInterface *

private _applyMutations(reactiveInterface: *) source

Params:

NameTypeAttributeDescription
reactiveInterface *

private _asObject(structure: *, item: *, deepness: *): * source

Params:

NameTypeAttributeDescription
structure *
item *
deepness *

Return:

*

private _mapObserverToSource(item: {}, structure: *, stateProvider: *): * source

Params:

NameTypeAttributeDescription
item {}
  • optional
  • default: {}
structure *
stateProvider *

Return:

*

private _processReference(value: *, stateProvider: *): * source

Params:

NameTypeAttributeDescription
value *
stateProvider *

Return:

*