Package com.google.walkaround.proto

Examples of com.google.walkaround.proto.FetchAttachmentsAndImportWaveletTask


      }
      return taskAgePrefix(task)
          + sharingMode + " import of wavelet " + t.getWaveId() + " " + t.getWaveletId()
          + " from " + sourceInstanceFactory.parseUnchecked(t.getInstance()).getShortName();
    } else if (task.getPayload().hasFetchAttachmentsTask()) {
      FetchAttachmentsAndImportWaveletTask t = task.getPayload().getFetchAttachmentsTask();
      return taskAgePrefix(task)
          + " Fetch attachments for wavelet "
          + t.getOriginalImportTask().getWaveId() + " " + t.getOriginalImportTask().getWaveletId()
          + " from " + sourceInstanceFactory.parseUnchecked(
              t.getOriginalImportTask().getInstance()).getShortName()
          + " (" + t.getImportedSize() + "/" + (t.getImportedSize() + t.getToImportSize()) + ")";
    } else {
      throw new AssertionError("Unknown task payload type: " + task);
    }
  }
View Full Code Here


            + attachmentMapping);
        return attachmentMapping;
      } else {
        log.info("Found attachmend ids " + attachmentDocs.keySet());
        // Replace this task with one that fetches attachments and then imports.
        FetchAttachmentsAndImportWaveletTask newTask =
            new FetchAttachmentsAndImportWaveletTaskGsonImpl();
        newTask.setOriginalImportTask(task);
        populateAttachmentInfo(newTask, documents, attachmentDocs);
        if (newTask.getToImportSize() == 0) {
          log.info("There are attachments but none can be imported");
          return ImmutableMap.of();
        }
        ImportTaskPayload payload = new ImportTaskPayloadGsonImpl();
        payload.setFetchAttachmentsTask(newTask);
View Full Code Here

TOP

Related Classes of com.google.walkaround.proto.FetchAttachmentsAndImportWaveletTask

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.