private static Query<User> getAuthUserFind(final AuthUserIdentity identity) { return MorphiaObject.datastore .createQuery((User.class)) .filter("active =", true) .filter("linkedAccounts.providerUserId", identity.getId()) .filter("linkedAccounts.providerKey", identity.getProvider()); }
private static ExpressionList<User> getAuthUserFind(final AuthUserIdentity identity) { return find.where().eq("active", true).eq("password", identity.getId()); }
private static ExpressionList<User> getAuthUserFind(final AuthUserIdentity identity) { return find.where() .eq("active", true) .eq("linkedAccounts.providerUserId", identity.getId()) .eq("linkedAccounts.providerKey", identity.getProvider()); }