use of org.sonatype.nexus.blobstore.restore.RestoreBlobData in project nexus-repository-r by sonatype-nexus-community.
the class RRestoreBlobStrategy method getComponentQuery.
@Override
protected Query getComponentQuery(final RRestoreBlobData data) throws IOException {
RRestoreFacet facet = getRestoreFacet(data);
RestoreBlobData blobData = data.getBlobData();
Map<String, String> attributes;
try (InputStream inputStream = blobData.getBlob().getInputStream()) {
attributes = facet.extractComponentAttributesFromArchive(blobData.getBlobName(), inputStream);
}
return facet.getComponentQuery(attributes);
}
Aggregations