public class GSpreadFeedProcessor extends Object
| Constructor and Description |
|---|
GSpreadFeedProcessor(String clientId,
String clientSecret,
String refReshToken,
String visibility,
String baseRegistryOauthTokenPath) |
| Modifier and Type | Method and Description |
|---|---|
URL |
generateWorksheetFeedURL(String key) |
String |
getClientId() |
String |
getClientSecret() |
<F extends com.google.gdata.data.IFeed> |
getFeed(com.google.gdata.client.Query query,
Class<F> feedClass)
this method has the logic implemented to use access token to access spreadsheet api
and it will be shared between cluster nodes via registry as well.
|
<F extends com.google.gdata.data.IFeed> |
getFeed(URL feedUrl,
Class<F> feedClass)
this method has the logic implemented to use access token to access spreadsheet api
and it will be shared between cluster nodes via registry as well.
|
String |
getRefreshToken() |
com.google.gdata.client.spreadsheet.SpreadsheetService |
getService() |
URL |
getSpreadSheetFeedUrl() |
<E extends com.google.gdata.data.IEntry> |
insert(URL feedUrl,
E entry) |
boolean |
requiresAuth()
method to check whether authentication is required or not
|
void |
setClientId(String clientId) |
void |
setClientSecret(String clientSecret) |
void |
setRefreshToken(String refreshToken) |
void |
setService(com.google.gdata.client.spreadsheet.SpreadsheetService service) |
public GSpreadFeedProcessor(String clientId, String clientSecret, String refReshToken, String visibility, String baseRegistryOauthTokenPath) throws SQLException
SQLExceptionpublic void setClientId(String clientId)
public String getClientId()
public void setClientSecret(String clientSecret)
public String getClientSecret()
public void setRefreshToken(String refreshToken)
public String getRefreshToken()
public void setService(com.google.gdata.client.spreadsheet.SpreadsheetService service)
public com.google.gdata.client.spreadsheet.SpreadsheetService getService()
public <E extends com.google.gdata.data.IEntry> E insert(URL feedUrl, E entry) throws SQLException
SQLExceptionpublic <F extends com.google.gdata.data.IFeed> F getFeed(URL feedUrl, Class<F> feedClass) throws SQLException
F - feedUrl - feedClass - ExceptionSQLExceptionpublic <F extends com.google.gdata.data.IFeed> F getFeed(com.google.gdata.client.Query query,
Class<F> feedClass)
throws SQLException
F - query - feedClass - ExceptionSQLExceptionpublic URL getSpreadSheetFeedUrl() throws MalformedURLException
MalformedURLExceptionpublic URL generateWorksheetFeedURL(String key) throws MalformedURLException
MalformedURLExceptionpublic boolean requiresAuth()
Copyright © 2019 WSO2. All rights reserved.