public class LightGSheetServiceExporterContractAdaptor extends Object implements Exporter.SheetContract
LightGSheetService without exposing its details.| Constructor and Description |
|---|
LightGSheetServiceExporterContractAdaptor(LightGSheetService lightGSheetService) |
| Modifier and Type | Method and Description |
|---|---|
void |
createSheet(String spreadsheetId,
String sheetTitle,
List<List<String>> sheetRows,
List<String> lockedCellEditors)
Creates a new sheet a fills it with provided data.
|
void |
deleteSheets(String spreadsheetId,
Collection<Integer> sheetIds)
Deletes specified sheets from given spreadsheet.
|
List<ASheet> |
listSheets(String spreadsheetId)
Lists all sheets of spreadsheet
spreadsheetId. |
public LightGSheetServiceExporterContractAdaptor(LightGSheetService lightGSheetService)
public List<ASheet> listSheets(String spreadsheetId) throws SheetsException
Exporter.SheetContractspreadsheetId. Does not fetch actual cells of the sheets.listSheets in interface Exporter.SheetContractspreadsheetId - id of spreadsheetspreadsheetIdSheetsException - when unable to list sheetspublic void deleteSheets(String spreadsheetId, Collection<Integer> sheetIds) throws SheetsException
Exporter.SheetContractdeleteSheets in interface Exporter.SheetContractspreadsheetId - spreadsheet to delete sheets fromsheetIds - ids of sheets to deleteSheetsException - when unable to delete sheetspublic void createSheet(String spreadsheetId, String sheetTitle, List<List<String>> sheetRows, List<String> lockedCellEditors) throws SheetsException
Exporter.SheetContractcreateSheet in interface Exporter.SheetContractspreadsheetId - id of spreadsheet where new sheet should be createdsheetTitle - name to use for the new sheetsheetRows - rows with data cells to fill the sheet withlockedCellEditors - list of email accounts that will be able to edit locked cellsSheetsException - when unable to upload sheetsCopyright © 2021 FG Forrest, a.s.. All rights reserved.