Package step.datapool.gsheet
Class GoogleSheetv4DataPool
java.lang.Object
step.datapool.DataSet<GoogleSheetv4DataPoolConfiguration>
step.datapool.gsheet.GoogleSheetv4DataPool
- Author:
- doriancransac, Jérôme Comte
-
Field Summary
Fields inherited from class step.datapool.DataSet
closing, configuration, context, isRowCommitEnabled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
com.google.api.services.sheets.v4.Sheets
buildService
(com.google.api.client.googleapis.auth.oauth2.GoogleCredential credential) void
close()
void
createDatapool
(String saKey, String fileId, String tabName) com.google.api.client.googleapis.auth.oauth2.GoogleCredential
getCredential
(String saKey) getValuesForRange
(String spreadsheetId, String range) void
init()
next_()
void
reset()
Methods inherited from class step.datapool.DataSet
enableRowCommit, isWriteQueueSupportEnabled, next, save, setContext, writeRow
-
Constructor Details
-
GoogleSheetv4DataPool
-
-
Method Details
-
init
public void init()- Overrides:
init
in classDataSet<GoogleSheetv4DataPoolConfiguration>
-
reset
public void reset()- Specified by:
reset
in classDataSet<GoogleSheetv4DataPoolConfiguration>
-
close
public void close()- Overrides:
close
in classDataSet<GoogleSheetv4DataPoolConfiguration>
-
next_
- Specified by:
next_
in classDataSet<GoogleSheetv4DataPoolConfiguration>
-
addRow
- Specified by:
addRow
in classDataSet<GoogleSheetv4DataPoolConfiguration>
-
createDatapool
-
getCredential
public com.google.api.client.googleapis.auth.oauth2.GoogleCredential getCredential(String saKey) throws Exception - Throws:
Exception
-
buildService
public com.google.api.services.sheets.v4.Sheets buildService(com.google.api.client.googleapis.auth.oauth2.GoogleCredential credential) throws IOException, GeneralSecurityException - Throws:
IOException
GeneralSecurityException
-
getValuesForRange
- Throws:
IOException
-