/** * Sets the amount of quota consumed by the document. * * @param lastModifiedBy the quota used */ public void setLastModifiedBy(LastModifiedBy lastModifiedBy) { if (lastModifiedBy == null) { removeExtension(LastModifiedBy.class); } else { setExtension(lastModifiedBy); } }
/** * Sets the amount of quota consumed by the document. * * @param lastModifiedBy the quota used */ public void setLastModifiedBy(LastModifiedBy lastModifiedBy) { if (lastModifiedBy == null) { removeExtension(LastModifiedBy.class); } else { setExtension(lastModifiedBy); } }
/** * Sets the amount of quota consumed by the document. * * @param lastModifiedBy the quota used */ public void setLastModifiedBy(LastModifiedBy lastModifiedBy) { if (lastModifiedBy == null) { removeExtension(LastModifiedBy.class); } else { setExtension(lastModifiedBy); } }
/** * Sets the document's resource id. * * @param resourceId the resource id. */ public void setResourceId(String resourceId) { if (resourceId == null) { removeExtension(ResourceId.class); } else { setExtension(new ResourceId(resourceId)); } } }
/** * Sets the amount of quota consumed by the document. * * @param quotaBytesUsed the quota used */ public void setQuotaBytesUsed(Long quotaBytesUsed) { if (quotaBytesUsed == null) { removeExtension(QuotaBytesUsed.class); } else { setExtension(new QuotaBytesUsed(quotaBytesUsed)); } }
/** * Sets the suggested filename for this document. * * @param filename the filename */ public void setSuggestedFilename(String filename) { if (filename == null) { removeExtension(SuggestedFilename.class); } else { setExtension(new SuggestedFilename(filename)); } }
/** * Sets the time when the document was last viewed by the user. * * @param lastViewed the last viewed time */ public void setLastViewed(DateTime lastViewed) { if (lastViewed == null) { removeExtension(LastViewed.class); } else { setExtension(new LastViewed(lastViewed)); } }
/** * Sets the time when the document was last viewed by the user. * * @param lastViewed the last viewed time */ public void setLastViewed(DateTime lastViewed) { if (lastViewed == null) { removeExtension(LastViewed.class); } else { setExtension(new LastViewed(lastViewed)); } }
/** * Sets whether users classed as writers can invite other collaborators * * @param writersCanInvite true if writers can invite */ public void setWritersCanInvite(Boolean writersCanInvite) { if (writersCanInvite == null) { removeExtension(WritersCanInvite.class); } else { this.setExtension(new WritersCanInvite(writersCanInvite)); } }
/** * Sets the filename of this document. * * @param filename the filename */ public void setFilename(String filename) { if (filename == null) { removeExtension(Filename.class); } else { setExtension(new Filename(filename)); } }
/** * Sets the description of this document. * * @param description the description */ public void setDescription(String description) { if (description == null) { removeExtension(Description.class); } else { setExtension(new Description(description)); } }
/** * Sets the time when the document was last commented by the user. * * @param lastCommented the last commented time */ public void setLastCommented(DateTime lastCommented) { if (lastCommented == null) { removeExtension(LastCommented.class); } else { setExtension(new LastCommented(lastCommented)); } }
/** * Sets whether users classed as writers can invite other collaborators * * @param writersCanInvite true if writers can invite */ public void setWritersCanInvite(Boolean writersCanInvite) { if (writersCanInvite == null) { removeExtension(WritersCanInvite.class); } else { this.setExtension(new WritersCanInvite(writersCanInvite)); } }
/** * Sets the amount of quota consumed by the document. * * @param quotaBytesUsed the quota used */ public void setQuotaBytesUsed(Long quotaBytesUsed) { if (quotaBytesUsed == null) { removeExtension(QuotaBytesUsed.class); } else { setExtension(new QuotaBytesUsed(quotaBytesUsed)); } }
/** * Sets the document's resource id. * * @param resourceId the resource id. */ public void setResourceId(String resourceId) { if (resourceId == null) { removeExtension(ResourceId.class); } else { setExtension(new ResourceId(resourceId)); } } }
/** * Sets the time when the document was last viewed by the user. * * @param lastViewed the last viewed time */ public void setLastViewed(DateTime lastViewed) { if (lastViewed == null) { removeExtension(LastViewed.class); } else { setExtension(new LastViewed(lastViewed)); } }
/** * Set the MD5 checksum calculated for the document. * * @param md5Checksum the MD5 checksum */ public void setMd5Checksum(String md5Checksum) { if (md5Checksum == null) { removeExtension(Md5Checksum.class); } else { setExtension(new Md5Checksum(md5Checksum)); } }
/** * Sets the amount of quota consumed by the document. * * @param quotaBytesUsed the quota used */ public void setQuotaBytesUsed(Long quotaBytesUsed) { if (quotaBytesUsed == null) { removeExtension(QuotaBytesUsed.class); } else { setExtension(new QuotaBytesUsed(quotaBytesUsed)); } }
/** * Sets whether users classed as writers can invite other collaborators * * @param writersCanInvite true if writers can invite */ public void setWritersCanInvite(Boolean writersCanInvite) { if (writersCanInvite == null) { removeExtension(WritersCanInvite.class); } else { this.setExtension(new WritersCanInvite(writersCanInvite)); } }
/** * Sets the trashed status of this document for the user this feed request * has been authenticated under. * * @param trashed true if the document should be trashed */ public void setTrashed(boolean trashed) { if (trashed) { this.getCategories().add(Labels.TRASHED); this.setExtension(new Deleted()); } else { this.getCategories().remove(Labels.TRASHED); this.removeExtension(Deleted.class); } }