You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sf...@apache.org on 2015/02/27 00:23:51 UTC

[04/27] incubator-usergrid git commit: [USERGRID-333] added getMap convenience method to retrieve properties as Map Objects

[USERGRID-333] added getMap convenience method to retrieve properties as Map Objects


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

Branch: refs/heads/USERGRID-273-indexbuffer
Commit: e479cb92643ea98657817dfda2f22ad7e948c9db
Parents: 956dbe8
Author: ryan bridges <rb...@apigee.com>
Authored: Thu Feb 5 11:56:36 2015 -0500
Committer: ryan bridges <rb...@apigee.com>
Committed: Thu Feb 5 11:59:56 2015 -0500

----------------------------------------------------------------------
 .../apache/usergrid/rest/test/resource2point0/model/Entity.java   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/e479cb92/stack/rest/src/test/java/org/apache/usergrid/rest/test/resource2point0/model/Entity.java
----------------------------------------------------------------------
diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/test/resource2point0/model/Entity.java b/stack/rest/src/test/java/org/apache/usergrid/rest/test/resource2point0/model/Entity.java
index 635c7b4..dfbbb8f 100644
--- a/stack/rest/src/test/java/org/apache/usergrid/rest/test/resource2point0/model/Entity.java
+++ b/stack/rest/src/test/java/org/apache/usergrid/rest/test/resource2point0/model/Entity.java
@@ -131,6 +131,9 @@ public class Entity implements Serializable, Map<String,Object> {
         //All values are strings , so doing the cast here saves doing the cast elsewhere
         return getDynamicProperties().get( key );
     }
+    public Map<String, Map<String, Object>> getMap(Object key){
+        return (LinkedHashMap<String, Map<String, Object>>) getDynamicProperties().get( key );
+    }
     public String getString( final Object key ) {
         //All values are strings , so doing the cast here saves doing the cast elsewhere
         return (String) getDynamicProperties().get( key );