Search in sources :

Example 6 with BucketItem

use of org.apache.nifi.registry.bucket.BucketItem in project nifi-registry by apache.

the class JerseyItemsClient method getAll.

@Override
public List<BucketItem> getAll() throws NiFiRegistryException, IOException {
    return executeAction("", () -> {
        WebTarget target = itemsTarget;
        final BucketItem[] bucketItems = getRequestBuilder(target).get(BucketItem[].class);
        return bucketItems == null ? Collections.emptyList() : Arrays.asList(bucketItems);
    });
}
Also used : BucketItem(org.apache.nifi.registry.bucket.BucketItem) WebTarget(javax.ws.rs.client.WebTarget)

Aggregations

BucketItem (org.apache.nifi.registry.bucket.BucketItem)6 ArrayList (java.util.ArrayList)3 WebTarget (javax.ws.rs.client.WebTarget)2 VersionedFlow (org.apache.nifi.registry.flow.VersionedFlow)2 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)1 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 SimpleModule (com.fasterxml.jackson.databind.module.SimpleModule)1 JaxbAnnotationIntrospector (com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector)1 IOException (java.io.IOException)1 Bucket (org.apache.nifi.registry.bucket.Bucket)1 BucketItemType (org.apache.nifi.registry.bucket.BucketItemType)1 BucketClient (org.apache.nifi.registry.client.BucketClient)1 FlowClient (org.apache.nifi.registry.client.FlowClient)1 FlowSnapshotClient (org.apache.nifi.registry.client.FlowSnapshotClient)1 ItemsClient (org.apache.nifi.registry.client.ItemsClient)1 NiFiRegistryException (org.apache.nifi.registry.client.NiFiRegistryException)1 BucketEntity (org.apache.nifi.registry.db.entity.BucketEntity)1 VersionedFlowDifference (org.apache.nifi.registry.diff.VersionedFlowDifference)1 ResourceNotFoundException (org.apache.nifi.registry.exception.ResourceNotFoundException)1