Package com.google.gdata.data.sites

Examples of com.google.gdata.data.sites.WebAttachmentEntry


    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);
  }
View Full Code Here


        FileCabinetPageEntry filecabinet, String title, String description)
        throws MalformedURLException, IOException, ServiceException {
      MediaContent content = new MediaContent();
      content.setUri(contentUrl);

      WebAttachmentEntry webAttachment = new WebAttachmentEntry();
      webAttachment.setTitle(new PlainTextConstruct(title));
      webAttachment.setSummary(new PlainTextConstruct(description));
      webAttachment.setContent(content);
      webAttachment.addLink(SitesLink.Rel.PARENT, Link.Type.ATOM,
          filecabinet.getSelfLink().getHref());

      return service.insert(new URL(getContentFeedUrl()), webAttachment);
    }
View Full Code Here

TOP

Related Classes of com.google.gdata.data.sites.WebAttachmentEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.