Package com.google.gdata.data.spreadsheet

Examples of com.google.gdata.data.spreadsheet.ListEntry


   */
  private void updateSsEventEditUrl(URL ssEditUrl, String calEditUrl,
      String baseEditUrl)
      throws EPAuthenticationException, IOException, ServiceException {
    SpreadsheetService ssService = getSsService();
    ListEntry ssEntry = ssService.getEntry(ssEditUrl, ListEntry.class);
    // remove spaces in the URL
    String calUrlFieldName = fieldMap.getCalendarUrlColumn();
    if (calEditUrl == null &&
        (ssEntry.getCustomElements().getValue(calUrlFieldName) == null ||
         "".equals(ssEntry.getCustomElements().getValue(calUrlFieldName)))){
      calEditUrl = " ";
    }
    if (calEditUrl != null) {
      ssEntry.getCustomElements().setValueLocal(
          calUrlFieldName,
          calEditUrl);
    }
    // remove spaces in the URL
    String baseUrlFieldName = fieldMap.getBaseUrlColumn();
    if (baseEditUrl == null &&
        (ssEntry.getCustomElements().getValue(baseUrlFieldName) == null ||
      "".equals(ssEntry.getCustomElements().getValue(baseUrlFieldName)))){
      baseEditUrl = " ";
    }   
    if (baseEditUrl != null) {
      ssEntry.getCustomElements().setValueLocal(
          baseUrlFieldName,
          baseEditUrl);
    }
    ssEntry.update();
  }
View Full Code Here


      newContents = null;
    }

    /** Actually adds this new entry to the spreadsheet. */
    private void doAddNew() throws ServiceException, IOException {
      ListEntry newEntry = new ListEntry();
      newEntry.getCustomElements().replaceWithLocal(newContents);
      originalEntry = service.insert(listFeedUrl, newEntry);
      newContents = null;
    }
View Full Code Here

TOP

Related Classes of com.google.gdata.data.spreadsheet.ListEntry

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.