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,
TranslationConfiguration configuration,
Map<String,List<String>> translatedAutomatically,
Set<String> translatedHistorically)
Creates a new sheet in the specified spreadsheet with the given title, rows of data, and metadata, including locked
cell editors, cells translated automatically, and cells translated historically.
|
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, TranslationConfiguration configuration, Map<String,List<String>> translatedAutomatically, Set<String> translatedHistorically) throws SheetsException
Exporter.SheetContractcreateSheet in interface Exporter.SheetContractspreadsheetId - the ID of the spreadsheet where the sheet will be createdsheetTitle - the title of the new sheetsheetRows - a list of rows where each row is represented as a list of stringsconfiguration - configuration of translation runtranslatedAutomatically - a mapping of cell references to their translated values, where translation was performed automaticallytranslatedHistorically - a set of cell references that were translated manually in the pastSheetsException - if the sheet cannot be created for any reasonCopyright © 2025 FG Forrest, a.s.. All rights reserved.