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