@Override public void declareExtensions(ExtensionProfile extProfile) { delegate.declareExtensions(extProfile); super.declareExtensions(extProfile); }
/** * Gets the link with which you can open up the document in a Web * browser. This is a link to the full document-specific UI (for * edit if the requesting user has edit permission, and a read-only * HTML rendering otherwise). * * @return a link to open up the web browser with */ public Link getDocumentLink() { return super.getHtmlLink(); }
/** * Returns an adapted entry that is a subclass of GphotoEntry. */ @Override public GphotoEntry<?> getAdaptedEntry() throws AdaptorException { return (GphotoEntry<?>) super.getAdaptedEntry(); }
throws IOException, ServiceException { MediaSource media = getMediaSource(); if (media == null) { throw new NullPointerException("Must supply media source"); CoreErrorDomain.ERR.entryNotAssociated); Link mediaLink = getMediaEditLink(); if (mediaLink == null) { throw new UnsupportedOperationException("Media cannot be updated");
/** Retrieves the media resource edit link. */ @Override @SuppressWarnings("deprecation") public Link getMediaEditLink() { Link mediaLink = getLink(Link.Rel.MEDIA_EDIT, null); if (mediaLink == null) { // Temporary back compat support for old incorrect media link value. // to the new value. mediaLink = getLink(Link.Rel.MEDIA_EDIT_BACKCOMPAT, null); } return mediaLink; }
@Override public void generateRss(XmlWriter w, ExtensionProfile extProfile) throws IOException { TextConstruct summary = getSummary(); try { if (summary != null) { setSummary(new SummaryTextConstruct(summary)); } super.generateRss(w, extProfile); } finally { if (summary != null) { setSummary(summary); } } }
throws IOException, ServiceException { MediaSource media = getMediaSource(); if (media == null) { throw new NullPointerException("Must supply media source"); CoreErrorDomain.ERR.entryNotAssociated); Link mediaLink = getMediaEditLink(); if (mediaLink == null) { throw new UnsupportedOperationException("Media cannot be updated");
/** Retrieves the media resource edit link. */ @Override @SuppressWarnings("deprecation") public Link getMediaEditLink() { Link mediaLink = getLink(Link.Rel.MEDIA_EDIT, null); if (mediaLink == null) { // Temporary back compat support for old incorrect media link value. // to the new value. mediaLink = getLink(Link.Rel.MEDIA_EDIT_BACKCOMPAT, null); } return mediaLink; }
@Override public void generateRss(XmlWriter w, ExtensionProfile extProfile) throws IOException { TextConstruct summary = getSummary(); try { if (summary != null) { setSummary(new SummaryTextConstruct(summary)); } super.generateRss(w, extProfile); } finally { if (summary != null) { setSummary(summary); } } }
@Override public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); extProfile.declare(GoogleBaseMediaEntry.class, MediaContent.class); } }
/** * Gets the link with which you can open up the document in a Web * browser. This is a link to the full document-specific UI (for * edit if the requesting user has edit permission, and a read-only * HTML rendering otherwise). * * @return a link to open up the web browser with */ public Link getDocumentLink() { return super.getHtmlLink(); }
/** * Returns an adapted entry that is a subclass of GphotoEntry. */ @Override public GphotoEntry<?> getAdaptedEntry() throws AdaptorException { return (GphotoEntry<?>) super.getAdaptedEntry(); }
@Override public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); extProfile.declare(GoogleBaseMediaEntry.class, MediaContent.class); } }
/** * Gets the link with which you can open up the document in a Web * browser. This is a link to the full document-specific UI (for * edit if the requesting user has edit permission, and a read-only * HTML rendering otherwise). * * @return a link to open up the web browser with */ public Link getDocumentLink() { return super.getHtmlLink(); }
@Override public void declareExtensions(ExtensionProfile extProfile) { delegate.declareExtensions(extProfile); super.declareExtensions(extProfile); }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(TranslationMemoryEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(TranslationMemoryEntry.class, ScopeEntry.class); }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(TranslationMemoryEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(TranslationMemoryEntry.class, ScopeEntry.class); }
@Override public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); extProfile.declare(CaptionTrackEntry.class, YtDerived.class); extProfile.declare(CaptionTrackEntry.class, YtFormatInfo.class); extProfile.declareAdditionalNamespace(YouTubeNamespace.NS); extProfile.declare(PubControl.class, YtPublicationState.class); extProfile.declareArbitraryXmlExtension(CaptionTrackEntry.class); }
@Override public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); extProfile.declare(DocumentListEntry.class, DocumentListAclFeedLink.class); extProfile.declare(DocumentListEntry.class, LastModifiedBy.class); extProfile.declare(DocumentListEntry.class, LastViewed.class); extProfile.declare(DocumentListEntry.class, QuotaBytesUsed.class); extProfile.declare(DocumentListEntry.class, ResourceId.class); extProfile.declare(DocumentListEntry.class, WritersCanInvite.class); }
@Override public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); extProfile.declare(DocumentListEntry.class, DocumentListAclFeedLink.class); extProfile.declare(DocumentListEntry.class, LastModifiedBy.class); extProfile.declare(DocumentListEntry.class, LastViewed.class); extProfile.declare(DocumentListEntry.class, QuotaBytesUsed.class); extProfile.declare(DocumentListEntry.class, ResourceId.class); extProfile.declare(DocumentListEntry.class, WritersCanInvite.class); }