StoreProxy
Makes sure execution of commands are paused when a project is being tagged.
Constructor Summary
Public Constructor | ||
public |
constructor(store: Store) Create a new StoreProxy instance |
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
store: * |
Method Summary
Public Methods | ||
public |
applyChanges(changes: Changes): Promise Apply multiple changes to the store |
|
public |
Remove an item |
|
public |
Retrieve all projects at all versions |
|
public |
Handle a command |
|
public |
Store an item |
Protected Methods | ||
protected |
Retrieve a project collection |
|
protected |
shouldBePaused(command: Object): Boolean Decides wether a command should be paused |
|
protected |
unpause() Continue handling commands |
Public Constructors
Public Methods
public applyChanges(changes: Changes): Promise source
Apply multiple changes to the store
Params:
Name | Type | Attribute | Description |
changes | Changes | Array of changes |
public handle(command: Object): Promise source
Handle a command
Params:
Name | Type | Attribute | Description |
command | Object | A command to execute |
public putItem(projectId: String, schemaId: String, item: Item, projectVersion: Number): Promise source
Store an item