public interface BulkResources<T extends DataObjectRestRep> extends Resources<T>
Modifier and Type | Method and Description |
---|---|
java.util.List<T> |
getByIds(java.util.Collection<java.net.URI> ids)
Fetches the resource values for the given IDs (using the bulk API).
|
java.util.List<T> |
getByIds(java.util.Collection<java.net.URI> ids,
ResourceFilter<T> filter)
Fetches the resource values for the given IDs (using the bulk API), optionally filtering the results as they are returned.
|
java.util.List<T> |
getByRefs(java.util.Collection<? extends RelatedResourceRep> resources)
Fetches the resource values for the given references.
|
java.util.List<T> |
getByRefs(java.util.Collection<? extends RelatedResourceRep> resources,
ResourceFilter<T> filter)
Fetches the resource values for the given references, optionally filtering the results as they are returned.
|
java.util.List<java.net.URI> |
listBulkIds()
Lists all IDs for this resource type through the Bulk API.
|
addTags, get, get, getTags, removeTags, search, updateTags
java.util.List<java.net.URI> listBulkIds()
Lists all IDs for this resource type through the Bulk API. May require specific roles.
API Call: GET /RESOURCE_PATH/bulk
java.util.List<T> getByRefs(java.util.Collection<? extends RelatedResourceRep> resources)
Fetches the resource values for the given references.
Convenience method for calling getByIds(*resources.id).
getByRefs
in interface Resources<T extends DataObjectRestRep>
resources
- the resource references.java.util.List<T> getByRefs(java.util.Collection<? extends RelatedResourceRep> resources, ResourceFilter<T> filter)
Fetches the resource values for the given references, optionally filtering the results as they are returned.
Convenience method for calling getByIds(*resources.id, filter).
getByRefs
in interface Resources<T extends DataObjectRestRep>
resources
- the resource references.filter
- the resource filter to apply to the results as they are returned (optional).java.util.List<T> getByIds(java.util.Collection<java.net.URI> ids)
Fetches the resource values for the given IDs (using the bulk API).
API Call: POST /RESOURCE_PATH/bulk
getByIds
in interface Resources<T extends DataObjectRestRep>
ids
- the resource IDs.java.util.List<T> getByIds(java.util.Collection<java.net.URI> ids, ResourceFilter<T> filter)
Fetches the resource values for the given IDs (using the bulk API), optionally filtering the results as they are returned.
API Call: POST /RESOURCE_PATH/bulk
getByIds
in interface Resources<T extends DataObjectRestRep>
ids
- the resource IDs.filter
- the resource filter to apply to the results as they are returned (optional).