ee-soa-service
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -198,4 +198,17 @@ | ||
// @tobiaskneubeuheler: this is what exactly? | ||
, preListQuery: false | ||
, list: function(queryData, callback, baseQuery, interceptor) { | ||
@@ -301,3 +314,3 @@ | ||
// load data | ||
query.find(function(err, entities) { | ||
(typeof query.raw === 'function' ? query.raw() : query).find(function(err, entities) { | ||
if (err) callback(err); | ||
@@ -446,2 +459,9 @@ else { | ||
, _handleSubRequests: function(subRequests, entities, callback) { | ||
@@ -484,2 +504,11 @@ var subRequestsCount = subRequests.length; | ||
, _handleHasOneSubRequest: function(entities, subRequest, callback) { | ||
@@ -561,2 +590,9 @@ var collection = subRequest.getCollection(); | ||
, _handleBelongsToSubRequest: function(entities, subRequest, callback) { | ||
@@ -635,2 +671,12 @@ var collection = subRequest.getCollection(); | ||
, _handleHasManySubRequest: function(entities, subRequest, callback) { | ||
@@ -637,0 +683,0 @@ var collection = subRequest.getCollection(); |
@@ -142,2 +142,9 @@ !function() { | ||
/** | ||
* send requests through middlewares | ||
*/ | ||
, nextRequest: function(req, res) { | ||
@@ -185,2 +192,9 @@ var index = 0 | ||
/** | ||
* handle incoming requests | ||
*/ | ||
, request: function(req, res) { | ||
@@ -192,2 +206,6 @@ this.nextRequest(req, res); | ||
/** | ||
@@ -262,3 +280,4 @@ * handle requests after the middelwares were executed | ||
}.bind(this)).catch(function(err) { | ||
if (debugService) log.info('[DefaultService] '+[this.name, req.getCollection(), req.getActionName()].join('.')+' - the permission mnagement returned an error: '+err, err); | ||
if (debugService) log.info('[DefaultService] '+[this.name, req.getCollection(), req.getActionName()].join('.')+' - the permission mnagement returned an error: '+err); | ||
log(err); | ||
@@ -278,2 +297,6 @@ // failed to load the permissions | ||
/** | ||
@@ -309,2 +332,7 @@ * execute the request after the permissions check | ||
/** | ||
@@ -325,2 +353,7 @@ * handeles Outgoing generic requests | ||
/** | ||
@@ -382,2 +415,4 @@ * handles Outgoing orm controller requests | ||
, _handleResponse: function(err, result, req, callback, status, headers) { | ||
@@ -407,2 +442,9 @@ | ||
, _initController: function() { | ||
@@ -409,0 +451,0 @@ var loaded = function() { |
@@ -5,3 +5,3 @@ { | ||
, "keywords" : ["ee", "soa", "service"] | ||
, "version" : "0.3.1" | ||
, "version" : "0.3.2" | ||
, "author": { | ||
@@ -8,0 +8,0 @@ "name" : "Tobias Kneubuehler" |
96685
1659