Stack
Extends:
Data stack user API
Data is stored on a per user basis. However, notifications can be sent to a configurable set of listeners. Stack names are arbitrary and do not need to be explicitly initialized.
Static Member Summary
Static Public Members | ||
public static get |
Get default deployment id associated to Stack service |
Method Summary
Public Methods | ||
public |
getListeners(objectPattern: {"stack": *, "owner": *}): * Lists the listeners |
|
public |
list(objectPattern: {"stack": *, "owner": *, "page": *}): * Lists content |
|
public |
purge(objectPattern: {"stack": *, "owner": *}): * Empties a stack |
|
public |
push(objectPattern: {"stack": *, "data": *, "owner": *}): * Pushes an item |
|
public |
remove(objectPattern: {"guids": *, "stack": *, "owner": *}): * Removes items |
|
public |
setListeners(objectPattern: {"listeners": *, "stack": *, "owner": *}): * Sets the listeners |
|
public |
update(objectPattern: {"guid": *, "stack": *, "data": *, "owner": *}): * Updates an item |
Static Public Members
Public Methods
public getListeners(objectPattern: {"stack": *, "owner": *}): * source
Lists the listeners
Returns the whole list of listeners for the given stack.
Params:
Name | Type | Attribute | Description |
objectPattern | {"stack": *, "owner": *} |
|
Return:
* |
public list(objectPattern: {"stack": *, "owner": *, "page": *}): * source
Lists content
Returns a paginated list of contents for the given stack. Content is sorted according to the statically configured order.
Params:
Name | Type | Attribute | Description |
objectPattern | {"stack": *, "owner": *, "page": *} |
|
Return:
* |
public purge(objectPattern: {"stack": *, "owner": *}): * source
Empties a stack
Removes all items from the given stack.
Params:
Name | Type | Attribute | Description |
objectPattern | {"stack": *, "owner": *} |
|
Return:
* |
public push(objectPattern: {"stack": *, "data": *, "owner": *}): * source
Pushes an item
Pushes an item onto the given stack. The stack does not need to be created.
Params:
Name | Type | Attribute | Description |
objectPattern | {"stack": *, "data": *, "owner": *} |
|
Return:
* |
public remove(objectPattern: {"guids": *, "stack": *, "owner": *}): * source
Removes items
Removes the item with the given guid from the given stack.
Params:
Name | Type | Attribute | Description |
objectPattern | {"guids": *, "stack": *, "owner": *} |
|
Return:
* |
public setListeners(objectPattern: {"listeners": *, "stack": *, "owner": *}): * source
Sets the listeners
Sets the listeners for the given stack.
Params:
Name | Type | Attribute | Description |
objectPattern | {"listeners": *, "stack": *, "owner": *} |
|
Return:
* |
public update(objectPattern: {"guid": *, "stack": *, "data": *, "owner": *}): * source
Updates an item
Updates an existing item of the given stack. The item MUST exist prior to the call.
Params:
Name | Type | Attribute | Description |
objectPattern | {"guid": *, "stack": *, "data": *, "owner": *} |
|
Return:
* |