Package com.google.gdata.data.docs

Examples of com.google.gdata.data.docs.DocumentEntry


      throw new DocumentListException("null passed in for required parameters");
    }

    File file = new File(filepath);

    DocumentEntry newDocument = new DocumentEntry();
   
        newDocument.setFile(file, getMimeType(file));

    newDocument.setTitle(new PlainTextConstruct(title));
    newDocument.setHidden(hidden);

    String url = URL_DEFAULT + URL_DOCLIST_FEED + "/" + folderResourceId + URL_FOLDERS;
    if (!convert) {
      url += "?convert=false";
    }
View Full Code Here


            throws ServiceException, NetmusException {
        try {
            String destFolderUrl = ((MediaContent) getFolder().getContent())
                    .getUri();
            URL feedUrl = new URL(destFolderUrl);
            DocumentListEntry newEntry = new DocumentEntry();
            newEntry.setTitle(new PlainTextConstruct(title));
            newEntry = client().insert(feedUrl, newEntry);
            newEntry.setEtag("*");
            newEntry.setMediaSource(new MediaByteArraySource(
                    content.getBytes(), "text/html"));
            newEntry.updateMedia(true);
            return newEntry;

        } catch (MalformedURLException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
View Full Code Here

TOP

Related Classes of com.google.gdata.data.docs.DocumentEntry

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.