|
@@ -44,30 +44,6 @@ public class BasicUserStore implements UserStore {
|
|
|
.optional().eq(UserProperty.PORT, uri.getPort())
|
|
.optional().eq(UserProperty.PORT, uri.getPort())
|
|
|
.filter(u -> urimatch(u, uri));
|
|
.filter(u -> urimatch(u, uri));
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-// Set<GenericMap<String>> target = new HashSet<>();
|
|
|
|
|
-//
|
|
|
|
|
-// IQuery<GenericMap<String>> query = tree.find()
|
|
|
|
|
-// .optional().eq(UserProperty.HOST, uri.getHost())
|
|
|
|
|
-// .optional().eq(UserProperty.PORT, uri.getPort());
|
|
|
|
|
-//
|
|
|
|
|
-// Optional<String> login = URIUtils.getLogin(uri);
|
|
|
|
|
-//
|
|
|
|
|
-// if(login.isPresent()) {
|
|
|
|
|
-// query.eq(UserProperty.ACCOUNT, login.get()).into(target);
|
|
|
|
|
-// query.eq(UserProperty.LOGIN, login.get()).into(target);
|
|
|
|
|
-// query.filter(u -> urimatch(u, uri))
|
|
|
|
|
-// } else {
|
|
|
|
|
-// tree.find()
|
|
|
|
|
-// .eq(UserProperty.HOST, null)
|
|
|
|
|
-// .eq(UserProperty.PORT, null)
|
|
|
|
|
-// .filter(u -> urimatch(u, uri))
|
|
|
|
|
-// .into(target);
|
|
|
|
|
-// }
|
|
|
|
|
-//
|
|
|
|
|
-// return CQueryBuilder.fromStream(() -> target.stream());
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private boolean urimatch(GenericMap<String> u, URI uri) {
|
|
private boolean urimatch(GenericMap<String> u, URI uri) {
|
|
@@ -84,8 +60,4 @@ public class BasicUserStore implements UserStore {
|
|
|
return this;
|
|
return this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// public BasicUserStore add(GenericMap<String> user) {
|
|
|
|
|
-// tree.put(user);
|
|
|
|
|
-// return this;
|
|
|
|
|
-// }
|
|
|
|
|
}
|
|
}
|