Class: OauthScopeMethods
| Defined in: | src/methods/oauth-scope-methods.coffee |
Overview
Provides methods to interact with the scope store.
Instance Method Summary
- # (void) all(accountId, options = {}, cb = function() {}) Bound Returns all the scopes for an account
- # (void) get(scopeId, options = {}, cb = function() {}) Bound Get a scope for it's id.
- # (void) create(accountId, objs = {}, options = {}, cb = function() {}) Bound Create a new processDefinition
- # (void) destroy(scopeId, options = {}, cb = function() {}) Bound Completely destroys an organization.
- # (void) patch(scopeId, obj = {}, options = {}, cb = function() {}) Bound Updates a deployment
Constructor Details
#
(void)
constructor(models)
constructor:(@models, config) -> if config && config.scopes for scopeDefinition in config.scopes scope = new Scope(scopeDefinition)
if scope.isValid()
@loadedScopes[scope.name] = scope
else
console.log "Invalid scope in config - skipped - #{JSON.stringify(scopeDefinition)}"
# Todo: Better logging, error handling
Instance Method Details
#
(void)
all(accountId, options = {}, cb = function() {})
Bound
Returns all the scopes for an account
#
(void)
get(scopeId, options = {}, cb = function() {})
Bound
Get a scope for it's id.
#
(void)
create(accountId, objs = {}, options = {}, cb = function() {})
Bound
Create a new processDefinition
#
(void)
destroy(scopeId, options = {}, cb = function() {})
Bound
Completely destroys an organization.
#
(void)
patch(scopeId, obj = {}, options = {}, cb = function() {})
Bound
Updates a deployment