Esempio 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);
   }
 }
Esempio n. 2
0
 private Entity getBlobFileIndexEntity(String creationHandle) throws EntityNotFoundException {
   DatastoreService datastore = getDatastoreService();
   return datastore.get(KeyFactory.createKey(BLOB_FILE_INDEX_KIND, creationHandle));
 }
Esempio 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));
  }