You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2014/09/10 19:05:18 UTC

git commit: Use EntityRef interface rather than SimpleEntityRef implementation.

Repository: incubator-usergrid
Updated Branches:
  refs/heads/two-dot-o 48c0d07a0 -> da6bf22ec


Use EntityRef interface rather than SimpleEntityRef implementation.


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

Branch: refs/heads/two-dot-o
Commit: da6bf22ecbfc602ed859e16bb130ce34f282367e
Parents: 48c0d07
Author: Dave Johnson <dm...@apigee.com>
Authored: Wed Sep 10 13:05:02 2014 -0400
Committer: Dave Johnson <dm...@apigee.com>
Committed: Wed Sep 10 13:05:02 2014 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/usergrid/persistence/PathQuery.java | 8 ++++----
 .../services/notifications/gcm/NotificationsServiceIT.java   | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/da6bf22e/stack/core/src/main/java/org/apache/usergrid/persistence/PathQuery.java
----------------------------------------------------------------------
diff --git a/stack/core/src/main/java/org/apache/usergrid/persistence/PathQuery.java b/stack/core/src/main/java/org/apache/usergrid/persistence/PathQuery.java
index c1d0360..6721fa6 100644
--- a/stack/core/src/main/java/org/apache/usergrid/persistence/PathQuery.java
+++ b/stack/core/src/main/java/org/apache/usergrid/persistence/PathQuery.java
@@ -26,7 +26,7 @@ public class PathQuery<E> {
 
     private PathQuery source;
     private Query query;
-    private SimpleEntityRef head;
+    private EntityRef head;
 
 
     public PathQuery() {
@@ -38,7 +38,7 @@ public class PathQuery<E> {
      *
      * @param head the top-level entity
      */
-    public PathQuery( SimpleEntityRef head ) {
+    public PathQuery( EntityRef head ) {
         this.head = head;
         this.query = null;
     }
@@ -50,7 +50,7 @@ public class PathQuery<E> {
      * @param head the top-level entity
      * @param query the query - must have a collection or connectType value set
      */
-    public PathQuery( SimpleEntityRef head, Query query ) {
+    public PathQuery( EntityRef head, Query query ) {
         if ( query.getCollection() == null && query.getConnectionType() == null ) {
             throw new IllegalArgumentException( "Query must have a collection or connectionType value" );
         }
@@ -122,7 +122,7 @@ public class PathQuery<E> {
     }
 
 
-    public SimpleEntityRef getHead() {
+    public EntityRef getHead() {
         return head;
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/da6bf22e/stack/services/src/test/java/org/apache/usergrid/services/notifications/gcm/NotificationsServiceIT.java
----------------------------------------------------------------------
diff --git a/stack/services/src/test/java/org/apache/usergrid/services/notifications/gcm/NotificationsServiceIT.java b/stack/services/src/test/java/org/apache/usergrid/services/notifications/gcm/NotificationsServiceIT.java
index e153d7c..002dce4 100644
--- a/stack/services/src/test/java/org/apache/usergrid/services/notifications/gcm/NotificationsServiceIT.java
+++ b/stack/services/src/test/java/org/apache/usergrid/services/notifications/gcm/NotificationsServiceIT.java
@@ -203,7 +203,7 @@ public class NotificationsServiceIT extends AbstractServiceNotificationIT {
 
         pQuery.addIdentifier(new ServiceParameter.NameParameter(
             user.getUuid().toString()).getIdentifier()); 
-        ns.getQueueManager().TEST_PATH_QUERY =  new PathQuery(user), pQuery);
+        ns.getQueueManager().TEST_PATH_QUERY =  new PathQuery( user, pQuery );
 
         // create a push notification 
         String payload = "Hello, World!";