public AclFeed getAclFeed() { DocumentListAclFeedLink feedLink = getAclFeedLink(); return (feedLink != null) ? feedLink.getFeed() : null; }
public void shareFile(DocumentListEntry documentListEntry, AclScope.Type type, String value, String role) throws MalformedURLException, IOException, ServiceException { // Instantiate a AclEntry object to update sharing permissions. AclEntry acl = new AclEntry(); // Set the ACL scope. acl.setScope(new AclScope(type, value)); // Set the ACL role. acl.setRole(new AclRole(role)); // Insert the new role into the ACL feed. service.insert(new URL(documentListEntry.getAclFeedLink().getHref()), acl); }
public AclFeed getAclFeed() { DocumentListAclFeedLink feedLink = getAclFeedLink(); return (feedLink != null) ? feedLink.getFeed() : null; }
public AclFeed getAclFeed() { DocumentListAclFeedLink feedLink = getAclFeedLink(); return (feedLink != null) ? feedLink.getFeed() : null; }