Implements the Dojo Object Store interface for uniform access to Lifecycle objects.
Example
define([
"dojo/_base/lang",
"blueconic/api/data/store/lifecycleStore"
], function(lang, lifecycleStore) {
var id = '4e4fc9d9-b92f-4c9e-b11c-1c1314f02964'; // An example ID used in BlueConic
// Retrieve object by id
lifecycleStore.get(id).then(lang.hitch(this, function(object) {
// Successfully retrieved the object
}), lang.hitch(this, function() {
// Failed to retrieve the object
}));
});
Functions
-
add(lifecycle)dojo/Deferred
-
Adds a lifecycle.
Name Type Description lifecycle blueconic.api.data.domain.Lifecycle The lifecycle to add.
Returns:
Type Description dojo/Deferred Deferred with the added object as value. -
get(id)dojo/Deferred
-
Returns one lifecycle specified by the given id.
Name Type Description id String The id of the lifecycle to retrieve.
Returns:
Type Description dojo/Deferred blueconic.api.data.domain.Lifecycle wrapped in a Deferred. -
query()dojo/Deferred
-
Query the store for lifecycles based on the provided parameters.
Returns:
Type Description dojo/Deferred Deferred containing the result set of type blueconic.api.data.domain.Lifecycle wrapped in a dojo/store/util/QueryResults.