Examples of RevisionFeed


Examples of com.google.gdata.data.docs.RevisionFeed

   * @throws DocumentListException
   */
  private void executeRevisions(String[] args) throws IOException,
      ServiceException, DocumentListException {
    if (args.length == 2) {
      RevisionFeed feed = documentList.getRevisionsFeed(args[1]);
      if (feed != null) {
        out.println("List of revisions...");
        for (RevisionEntry entry : feed.getEntries()) {
          printRevisionEntry(entry);
        }
      } else {
        printMessage(COMMAND_HELP_REVISIONS);
      }
View Full Code Here

Examples of com.google.gdata.data.sites.RevisionFeed

    new FileCabinetPageEntry().declareExtensions(extProfile);
    new ListItemEntry().declareExtensions(extProfile);
    new ListPageEntry().declareExtensions(extProfile);
    new MoveActivityEntry().declareExtensions(extProfile);
    new RecoveryActivityEntry().declareExtensions(extProfile);
    new RevisionFeed().declareExtensions(extProfile);
    new WebAttachmentEntry().declareExtensions(extProfile);
    new WebPageEntry().declareExtensions(extProfile);
    BatchUtils.declareExtensions(extProfile);
  }
View Full Code Here

Examples of com.google.gdata.data.sites.RevisionFeed

    /**
     * Fetches and displays the revisions feed for an entry.
     */
    public void getRevisionFeed(String contentEntryId) throws IOException, ServiceException {
      URL url = new URL(getRevisionFeedUrl() + contentEntryId);
      RevisionFeed revisionFeed = service.getFeed(url, RevisionFeed.class);
      for (BaseContentEntry<?> entry : revisionFeed.getEntries()) {
        System.out.println(entry.getTitle().getPlainText());
        System.out.println("  updated: " + entry.getUpdated().toUiString() + " by " +
            entry.getAuthors().get(0).getEmail());
        System.out.println("  revision #: " + entry.getRevision().getValue());
      }
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.