Github user bbende commented on a diff in the pull request:
https://github.com/apache/nifi-registry/pull/14#discussion_r142455640
--- Diff:
nifi-registry-framework/src/main/java/org/apache/nifi/registry/service/RegistryService.java
---
@@ -261,6 +262,29 @@ public Bucket deleteBucket(final String
bucketIdentifier) {
}
}
+ public List<BucketItem> getBucketItems(final QueryParameters
queryParameters, final Set<String> bucketIdentifiers) {
+ if (bucketIdentifiers == null || bucketIdentifiers.isEmpty()) {
+ throw new IllegalArgumentException("Bucket Identifiers cannot
be null or empty");
+ }
+
+ readLock.lock();
+ try {
+ final Set<BucketEntity> filterBuckets =
bucketIdentifiers.stream()
--- End diff --
Should we create a method in metadataService to retrieve all the buckets
for the set of ids in one call?
I'm just slightly concerned making an individual DB retrieval for each id
if there are a lot of ids passed in.
---