Examples of asUniqueString()


Examples of org.sonatype.nexus.blobstore.api.BlobId.asUniqueString()

  private Blob getLocalBlob(ODocument assetDocument) {
    Map<String, String> blobRefs = assetDocument.field(P_BLOB_REFS);
    checkState(blobRefs.containsKey(localBlobStoreId), "Local blobRef does not exist for that asset");
    BlobId blobId = new BlobId(blobRefs.get(localBlobStoreId));
    Blob blob = blobStore.get(new BlobId(blobRefs.get(localBlobStoreId)));
    checkState(blob != null, "Blob not found in local store: %", blobId.asUniqueString());
    return blob;
  }

  private <A extends Entity> ODocument createAssetDocument(ODatabaseDocumentTx db, Class<A> assetClass, A sourceAsset,
      EntityAdapter<A> assetEntityAdapter, EntityId assetId, Blob blob, ORID componentDocumentRid) {
View Full Code Here

Examples of org.sonatype.nexus.component.model.EntityId.asUniqueString()

    // create component document using source data
    ODocument componentDocument = db.newInstance(new OClassNameBuilder().type(componentClass).build());
    componentAdapter.populateDocument(sourceComponent, componentDocument);

    // amend component document with system-managed data
    componentDocument.field(EntityAdapter.P_ID, componentId.asUniqueString());
    Set<ORID> assets = ImmutableSet.of();
    componentDocument.field(P_ASSETS, assets);

    // store component document
    componentDocument.save();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.