ee-soa-service
Advanced tools
Comparing version 0.2.16 to 0.2.17
@@ -23,2 +23,11 @@ | ||
/** | ||
* returns a default lsit of controller actions | ||
*/ | ||
, getActionNames: function() { | ||
return this.controllerActions; | ||
} | ||
, list: function(queryData, callback) { | ||
@@ -25,0 +34,0 @@ callback(new Error("list action not implemented on controller")); |
@@ -72,2 +72,9 @@ | ||
// set the loaded flag | ||
this.on('load', function() { | ||
this.loaded = true; | ||
}.bind(this)); | ||
// Load configurations | ||
@@ -83,5 +90,22 @@ this._loadConfiguration(function(err) { | ||
}.bind(this)); | ||
} | ||
/** | ||
* returns a map of controllers and their actions | ||
*/ | ||
, getControllerMap: function(map) { | ||
var map = map || {}; | ||
Object.keys(this._controllerCollection).forEach(function(controllerName) { | ||
map[this.name+'.'+controllerName] = this._controllerCollection[controllerName].getActionNames(); | ||
}.bind(this)); | ||
return map; | ||
} | ||
, isService: function() { | ||
@@ -88,0 +112,0 @@ return true; |
@@ -5,3 +5,3 @@ { | ||
, "keywords" : ["ee", "soa", "service"] | ||
, "version" : "0.2.16" | ||
, "version" : "0.2.17" | ||
, "author": { | ||
@@ -8,0 +8,0 @@ "name" : "Tobias Kneubuehler" |
77031
1325