/** * @return true if the document represented by this entry has been hidden * by the user this feed request has been authenticated under. */ public boolean isHidden() { return this.getCategories().contains(Labels.HIDDEN); }
/** * @return true if the document represented by this entry has been viewed by * the user this feed request has been authenticated under. */ public boolean isViewed() { return this.getCategories().contains(Labels.VIEWED); }
/** * @return true if the document represented by this entry has been hidden * by the user this feed request has been authenticated under. */ public boolean isHidden() { return this.getCategories().contains(Labels.HIDDEN); }
/** * @return true if the document represented by this entry has been viewed by * the user this feed request has been authenticated under. */ public boolean isViewed() { return this.getCategories().contains(Labels.VIEWED); }
/** * @return true if the document represented by this entry has been starred * by the user this feed request has been authenticated under. */ public boolean isStarred() { return this.getCategories().contains(Labels.STARRED); }
/** * @return true if the document represented by this entry has been starred * by the user this feed request has been authenticated under. */ public boolean isStarred() { return this.getCategories().contains(Labels.STARRED); }
/** * @return true if the document represented by this entry has been viewed by * the user this feed request has been authenticated under. */ public boolean isViewed() { return this.getCategories().contains(Labels.VIEWED); }
/** * Sets the viewed status of this document for the user this feed request * has been authenticated under. * * @param viewed true if the document has been viewed */ public void setViewed(boolean viewed) { if (viewed) { this.getCategories().add(Labels.VIEWED); } else { this.getCategories().remove(Labels.VIEWED); } }
/** * Sets the hidden status of this document for the user this feed request * has been authenticated under. * * @param hidden true if the document should be hidden */ public void setHidden(boolean hidden) { if (hidden) { this.getCategories().add(Labels.HIDDEN); } else { this.getCategories().remove(Labels.HIDDEN); } }
/** * Sets the starred status of this document for the user this feed request * has been authenticated under. * * @param starred true if the document should be starred */ public void setStarred(boolean starred) { if (starred) { this.getCategories().add(Labels.STARRED); } else { this.getCategories().remove(Labels.STARRED); } }
/** * @return true if the document represented by this entry has been starred * by the user this feed request has been authenticated under. */ public boolean isStarred() { return this.getCategories().contains(Labels.STARRED); }
/** * Sets the restricted download status for this document. * * @param restrictedDownload {@code true} if the document has restricted downloading */ public void setRestrictedDownload(boolean restrictedDownload) { if (restrictedDownload) { this.getCategories().add(Labels.RESTRICTED_DOWNLOAD); } else { this.getCategories().remove(Labels.RESTRICTED_DOWNLOAD); } }
/** * @return {@code true} if the document has restricted downloading */ public boolean isRestrictedDownload() { return this.getCategories().contains(Labels.RESTRICTED_DOWNLOAD); }
/** * @return true if the document represented by this entry has been hidden * by the user this feed request has been authenticated under. */ public boolean isHidden() { return this.getCategories().contains(Labels.HIDDEN); }
/** * Sets the hidden status of this document for the user this feed request * has been authenticated under. * * @param hidden true if the document should be hidden */ public void setHidden(boolean hidden) { if (hidden) { this.getCategories().add(Labels.HIDDEN); } else { this.getCategories().remove(Labels.HIDDEN); } }
/** * Sets the viewed status of this document for the user this feed request * has been authenticated under. * * @param viewed true if the document has been viewed */ public void setViewed(boolean viewed) { if (viewed) { this.getCategories().add(Labels.VIEWED); } else { this.getCategories().remove(Labels.VIEWED); } }
/** * @return true if the document represented by this entry has been trashed * by the user this feed request has been authenticated under. */ public boolean isTrashed() { return this.getCategories().contains(Labels.TRASHED) || this.hasExtension(Deleted.class); }
/** * @return true if the document represented by this entry has been trashed * by the user this feed request has been authenticated under. */ public boolean isTrashed() { return this.getCategories().contains(Labels.TRASHED) || this.hasExtension(Deleted.class); }
/** * @return true if the document represented by this entry has been trashed * by the user this feed request has been authenticated under. */ public boolean isTrashed() { return this.getCategories().contains(Labels.TRASHED) || this.hasExtension(Deleted.class); }
/** * Adds a user-specific folder that parents this document * * @param owner the owner of the folder * @param folderName the name of the folder * @deprecated use {@link #addLink(Link)} with link relation PARENT_NAMESPACE * instead. */ @Deprecated public void addFolder(Person owner, String folderName) { String scheme = FOLDERS_NAMESPACE + "/" + owner.getEmail(); Category folderCategory = new Category(scheme, folderName, folderName); this.getCategories().add(folderCategory); }