Class GDataClientLoginAPI


  • public class GDataClientLoginAPI
    extends Object
    Spreadsheet browser implemented by gdata-java-client: http://code.google.com/p/gdata-java-client/ This browser authenticates using Client Login.
    Author:
    fnguyen
    • Constructor Detail

      • GDataClientLoginAPI

        public GDataClientLoginAPI()
    • Method Detail

      • setHeaderFactory

        public void setHeaderFactory​(AuthHeaderFactory headerFactory)
      • getSpreadsheetEntry

        public com.google.gdata.data.spreadsheet.SpreadsheetEntry getSpreadsheetEntry​(String sheetName,
                                                                                      boolean key)
      • getSpreadsheetFeedQuery

        protected com.google.gdata.data.BaseFeed<?,​?> getSpreadsheetFeedQuery​(com.google.gdata.client.spreadsheet.SpreadsheetQuery squery,
                                                                                    Class<? extends com.google.gdata.data.BaseFeed<?,​?>> feedClass)
      • listFeedUpdate

        public UpdateResult listFeedUpdate​(String spreadsheetKey,
                                           String worksheetID,
                                           String criteria,
                                           List<UpdateSet> updateSet,
                                           List<Column> allColumns)
        Updates spreadsheet using the listfeed.
        Parameters:
        spreadsheetKey - key that identifies spreadsheet
        worksheetID - id that identifies worksheet
        criteria - update criteria
        updateSet - fields that should be updated
        allColumns -
        Returns:
        number of updated rows
      • listFeedDelete

        public UpdateResult listFeedDelete​(String spreadsheetKey,
                                           String worksheetID,
                                           String criteria)
        Deletes spreadsheet rows using the listfeed.
        Parameters:
        spreadsheetKey - key that identifies spreadsheet
        worksheetID - id that identifies worksheet
        criteria - delete criteria
        Returns:
        number of deleted rows
      • listFeedInsert

        public UpdateResult listFeedInsert​(String spreadsheetKey,
                                           String worksheetID,
                                           Map<String,​Object> pair)
        Insert row into spreadsheet using listfeed
        Parameters:
        spreadsheetKey - key that identifies spreadsheet
        worksheetID - key that identifies worksheet
        pair - name - value pair that should be inserted into spreadsheet
        Returns:
        1 if the row is successfully inserted