/** * Returns the sites ACL feed link. * * @return sites ACL feed link */ public FeedLink getFeedLink() { return getExtension(FeedLink.class); }
/** * Returns the link that provides the URI that can be used to edit the entry. * * @return Link that provides the URI that can be used to edit the entry or * {@code null} for none. */ public Link getEditLink() { return getLink(Link.Rel.ENTRY_EDIT, Link.Type.ATOM); }
/** * Returns whether it has the sites ACL feed link. * * @return whether it has the sites ACL feed link */ public boolean hasFeedLink() { return hasExtension(FeedLink.class); }
/** * Sets the sites ACL feed link. * * @param feedLink sites ACL feed link 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() { 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); }