/** * Returns the A feedLink representing the files in this file cabinet. * * @return A feedLink representing the files in this file cabinet */ public FeedLink getFeedLink() { return getExtension(FeedLink.class); }
/** * Returns the attachments sites link. * * @return Attachments sites link or {@code null} for none. */ public Link getAtomAttachmentsLink() { return getLink(SitesLink.Rel.ATTACHMENTS, Link.Type.ATOM); }
/** * Returns whether it has the A feedLink representing the files in this file * cabinet. * * @return whether it has the A feedLink representing the files in this file * cabinet */ public boolean hasFeedLink() { return hasExtension(FeedLink.class); }
/** * Sets the A feedLink representing the files in this file cabinet. * * @param feedLink A feedLink representing the files in this file cabinet or * <code>null</code> to reset */ public void setFeedLink(FeedLink feedLink) { if (feedLink == null) { removeExtension(FeedLink.class); } else { setExtension(feedLink); } }
/** * Declare the extensions of the feeds for the Google Sites Data API. */ private void declareExtensions() { extProfile.setAutoExtending(true); new ActivityFeed().declareExtensions(extProfile); new AnnouncementEntry().declareExtensions(extProfile); new AnnouncementsPageEntry().declareExtensions(extProfile); new AttachmentEntry().declareExtensions(extProfile); new CommentEntry().declareExtensions(extProfile); new ContentFeed().declareExtensions(extProfile); new CreationActivityEntry().declareExtensions(extProfile); new DeletionActivityEntry().declareExtensions(extProfile); new EditActivityEntry().declareExtensions(extProfile); 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); }
entry = new CommentEntry(); } else if (hasClass(element, "filecabinet")) { entry = new FileCabinetPageEntry(); } else if (hasClass(element, "listitem")) { entry = new ListItemEntry();
/** * Default mutable constructor. */ public FileCabinetPageEntry() { super(); getCategories().add(CATEGORY); }
/** * Declare the extensions of the feeds for the Google Sites Data API. */ private void declareExtensions() { new AclFeed().declareExtensions(extProfile); new SiteFeed().declareExtensions(extProfile); /* Declarations for extensions that need to be handled as specific type * should be done before call to {@see ExtensionProfile#setAutoExtending}. * Order of declaration is important. */ extProfile.setAutoExtending(true); new ActivityFeed().declareExtensions(extProfile); new AnnouncementEntry().declareExtensions(extProfile); new AnnouncementsPageEntry().declareExtensions(extProfile); new AttachmentEntry().declareExtensions(extProfile); new CommentEntry().declareExtensions(extProfile); new ContentFeed().declareExtensions(extProfile); new CreationActivityEntry().declareExtensions(extProfile); new DeletionActivityEntry().declareExtensions(extProfile); new EditActivityEntry().declareExtensions(extProfile); 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); }
/** * Sets the A feedLink representing the files in this file cabinet. * * @param feedLink A feedLink representing the files in this file cabinet or * <code>null</code> to reset */ public void setFeedLink(FeedLink feedLink) { if (feedLink == null) { removeExtension(FeedLink.class); } else { setExtension(feedLink); } }
/** * Default mutable constructor. */ public FileCabinetPageEntry() { super(); getCategories().add(CATEGORY); }
/** * Returns the attachments sites link. * * @return Attachments sites link or {@code null} for none. */ public Link getAtomAttachmentsLink() { return getLink(SitesLink.Rel.ATTACHMENTS, Link.Type.ATOM); }
/** * Returns the A feedLink representing the files in this file cabinet. * * @return A feedLink representing the files in this file cabinet */ public FeedLink getFeedLink() { return getExtension(FeedLink.class); }
/** * Returns whether it has the A feedLink representing the files in this file * cabinet. * * @return whether it has the A feedLink representing the files in this file * cabinet */ public boolean hasFeedLink() { return hasExtension(FeedLink.class); }
/** * Returns the attachments sites link. * * @return Attachments sites link or {@code null} for none. */ public Link getHtmlAttachmentsLink() { return getLink(SitesLink.Rel.ATTACHMENTS, Link.Type.HTML); }
/** * Returns the attachments sites link. * * @return Attachments sites link or {@code null} for none. */ public Link getHtmlAttachmentsLink() { return getLink(SitesLink.Rel.ATTACHMENTS, Link.Type.HTML); }
/** * Returns the parent sites link. * * @return Parent sites link or {@code null} for none. */ public Link getParentLink() { return getLink(SitesLink.Rel.PARENT, Link.Type.ATOM); }
/** * Returns the replies sites link. * * @return Replies sites link or {@code null} for none. */ public Link getAtomRepliesLink() { return getLink(SitesLink.Rel.REPLIES, Link.Type.ATOM); }
/** * Returns the replies sites link. * * @return Replies sites link or {@code null} for none. */ public Link getHtmlRepliesLink() { return getLink(SitesLink.Rel.REPLIES, Link.Type.HTML); }
/** * Returns the replies sites link. * * @return Replies sites link or {@code null} for none. */ public Link getAtomRepliesLink() { return getLink(SitesLink.Rel.REPLIES, Link.Type.ATOM); }
/** * Returns the replies sites link. * * @return Replies sites link or {@code null} for none. */ public Link getHtmlRepliesLink() { return getLink(SitesLink.Rel.REPLIES, Link.Type.HTML); }