Examples of PatchBuilder


Examples of org.springframework.social.google.api.impl.PatchBuilder

    return restTemplate.postForObject(DRIVE_FILES_URL + id + "/untrash", null, DriveFile.class);
  }

  @Override
  public DriveFile star(String id) {
    return patch(DRIVE_FILES_URL + id, new PatchBuilder().set("labels.starred", true).getMap(), DriveFile.class);
  }
View Full Code Here

Examples of org.springframework.social.google.api.impl.PatchBuilder

    return patch(DRIVE_FILES_URL + id, new PatchBuilder().set("labels.starred", true).getMap(), DriveFile.class);
  }

  @Override
  public DriveFile unstar(String id) {
    return patch(DRIVE_FILES_URL + id, new PatchBuilder().set("labels.starred", false).getMap(), DriveFile.class);
  }
View Full Code Here

Examples of org.springframework.social.google.api.impl.PatchBuilder

    return patch(DRIVE_FILES_URL + id, new PatchBuilder().set("labels.starred", false).getMap(), DriveFile.class);
  }

  @Override
  public DriveFile hide(String id) {
    return patch(DRIVE_FILES_URL + id, new PatchBuilder().set("labels.hidden", true).getMap(), DriveFile.class);
  }
View Full Code Here

Examples of org.springframework.social.google.api.impl.PatchBuilder

    return patch(DRIVE_FILES_URL + id, new PatchBuilder().set("labels.hidden", true).getMap(), DriveFile.class);
  }

  @Override
  public DriveFile unhide(String id) {
    return patch(DRIVE_FILES_URL + id, new PatchBuilder().set("labels.hidden", false).getMap(), DriveFile.class);
  }
View Full Code Here

Examples of org.springframework.social.google.api.impl.PatchBuilder

  }

  @Override
  public UserPermission updatesPermission(String fileId, String permissionId,
      UserPermission permission) {
    Object patch = new PatchBuilder()
      .set("role", permission.getRole())
      .set("additionalRoles", permission.getAdditionalRoles())
      .getMap();
    return patch(DRIVE_FILES_URL + fileId + PERMISSIONS + permissionId, patch, UserPermission.class);
  }
View Full Code Here

Examples of org.springframework.social.google.api.impl.PatchBuilder

  }

  @Override
  public FileRevision updateRevision(String fileId, String revisionId,
      FileRevision revision) {
    Object patch = new PatchBuilder()
      .set("pinned", revision.isPinned())
      .set("publishAuto", revision.isPublishAuto())
      .set("published", revision.isPublished())
      .set("publishedOutsideDomain", revision.isPublishedOutsideDomain())
      .getMap();
View Full Code Here

Examples of org.springframework.social.google.api.impl.PatchBuilder

  }

  @Override
  public FileComment updateComment(String fileId, String commentId,
      FileComment comment) {
    Object patch = new PatchBuilder()
      .set("content", comment.getContent())
      .getMap();
    return patch(DRIVE_FILES_URL + fileId + COMMENTS + commentId, patch, FileComment.class);
  }
View Full Code Here

Examples of org.springframework.social.google.api.impl.PatchBuilder

  }

  @Override
  public CommentReply updateReply(String fileId, String commentId,
      String replyId, CommentReply reply) {
    Object patch = new PatchBuilder()
      .set("content", reply.getContent())
      .set("verb", reply.getVerb())
      .getMap();
    return patch(DRIVE_FILES_URL + fileId + COMMENTS + commentId + REPLIES + replyId, patch, CommentReply.class);
  }
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.