usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [11/50] [abbrv] git commit: [USERGRID-183]Adds connection reverse lookup support to iOS SDK
Date Mon, 07 Jul 2014 18:16:28 GMT
[USERGRID-183]Adds connection reverse lookup support to iOS SDK

	-Adds sync and async versions of getConnectedEntities:connectorID:connectionType:query:
	to support request of type GET /<someCollection>/<someEntity>/connecting/<someConnection>


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/8d4140e8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/8d4140e8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/8d4140e8

Branch: refs/pull/231/merge
Commit: 8d4140e8cb587e94a00b9704e2ef7a3df676e590
Parents: c7b8612
Author: amuramoto <amuramoto@apigee.com>
Authored: Fri Jun 27 10:17:09 2014 -0700
Committer: amuramoto <amuramoto@apigee.com>
Committed: Fri Jun 27 10:17:09 2014 -0700

----------------------------------------------------------------------
 sdks/ios/UGAPI/UGClient.h | 15 ++++++++++++++-
 sdks/ios/UGAPI/UGClient.m |  9 +++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/8d4140e8/sdks/ios/UGAPI/UGClient.h
----------------------------------------------------------------------
diff --git a/sdks/ios/UGAPI/UGClient.h b/sdks/ios/UGAPI/UGClient.h
index 4e6a31f..c5241b1 100755
--- a/sdks/ios/UGAPI/UGClient.h
+++ b/sdks/ios/UGAPI/UGClient.h
@@ -220,7 +220,20 @@ set the response limit in UGQuery as well.
 // get entity connections
 -(UGClientResponse *)getEntityConnections: (NSString *)connectorType connectorID:(NSString
*)connectorID connectionType:(NSString *)connectionType query:(UGQuery *)query;
 
-
+/*!
+ @abstract Get entities connected to the specified entity with the specified connection
+ @param connectorType
+ @param connectorID
+ @param connectionType
+ @param query
+ @return ApigeeClientResponse instance
+ @see ApigeeClientResponse ApigeeClientResponse
+ @see ApigeeQuery ApigeeQuery
+ */
+-(UGClientResponse *)getConnectedEntities:(NSString *)connectorType
+                                  connectorID:(NSString *)connectorID
+                               connectionType:(NSString *)connectionType
+                                        query:(UGQuery *)query;
 
 /********************* MESSAGE MANAGEMENT *********************/
 // post a message to a given queue

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/8d4140e8/sdks/ios/UGAPI/UGClient.m
----------------------------------------------------------------------
diff --git a/sdks/ios/UGAPI/UGClient.m b/sdks/ios/UGAPI/UGClient.m
index 9d6407a..0184ea7 100755
--- a/sdks/ios/UGAPI/UGClient.m
+++ b/sdks/ios/UGAPI/UGClient.m
@@ -1059,6 +1059,15 @@ NSString *g_deviceUUID = nil;
     return [self httpTransaction:url op:kUGHTTPPost opData:nil];
 }
 
+-(UGClientResponse *)getConnectedEntities: (NSString *)connectorType connectorID:(NSString
*)connectorID connectionType:(NSString *)connectionType query:(UGQuery *)query
+{
+    NSMutableString *url = [self createURL:connectorType append2:connectorID append3: @"connecting"
append4: connectionType];
+    if (query) {
+        [self appendQueryToURL:url query:query];
+    }
+    return [self httpTransaction:url op:kApigeeHTTPGet opData:nil];
+}
+
 /************************** MESSAGE MANAGEMENT **************************/
 /************************** MESSAGE MANAGEMENT **************************/
 /************************** MESSAGE MANAGEMENT **************************/


Mime
View raw message