Package org.sonatype.nexus.blobstore.api

Examples of org.sonatype.nexus.blobstore.api.BlobId


    verify(metadata).setBlobState(BlobState.MARKED_FOR_DELETION);
  }

  @Test
  public void secondDeletionRedundant() {
    final BlobId fakeId = new BlobId("testId");
    final BlobMetadata metadata = mock(BlobMetadata.class);
    when(metadataStore.get(fakeId)).thenReturn(metadata);
    when(metadata.isAlive()).thenReturn(false);

    final boolean deleted = underTest.delete(fakeId);
View Full Code Here


      List<RawBinary> binaries = new ArrayList<>();

      for (ODocument document : db.command(query).<List<ODocument>>execute(prefix + "%")) {
        final RawBinaryMetadata metadata = entityAdapter.read(document);

        final Blob blob = blobStore.get(new BlobId(metadata.getBlobId()));

        binaries.add(asRawBinary(metadata, blob));
      }

      return binaries;
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.blobstore.api.BlobId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.