Ejemplo n.º 1
0
 protected Key getMetadataKeyForBlobKey(BlobKey blobKey) {
   String origNamespace = NamespaceManager.get();
   NamespaceManager.set("");
   try {
     return KeyFactory.createKey(null, BlobInfoFactory.KIND, blobKey.getKeyString());
   } finally {
     NamespaceManager.set(origNamespace);
   }
 }
Ejemplo n.º 2
0
 private Entity getBlobFileIndexEntity(String creationHandle) throws EntityNotFoundException {
   DatastoreService datastore = getDatastoreService();
   return datastore.get(KeyFactory.createKey(BLOB_FILE_INDEX_KIND, creationHandle));
 }
Ejemplo n.º 3
0
  private Entity getBlobInfoEntityDirectly(String creationHandle) throws EntityNotFoundException {
    Entity blobFileIndexEntity = getBlobFileIndexEntity(creationHandle);
    String blobKey = getBlobKey(blobFileIndexEntity);

    return getDatastoreService().get(KeyFactory.createKey(BlobInfoFactory.KIND, blobKey));
  }