Class GoogleCalendarStreamConfiguration
java.lang.Object
org.apache.camel.component.google.calendar.stream.GoogleCalendarStreamConfiguration
- All Implemented Interfaces:
Cloneable
Component configuration for GoogleCalendar stream component.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()getIndex()intgetQuery()getUser()booleanbooleanbooleanvoidsetAccessToken(String accessToken) OAuth 2 access token.voidsetApplicationName(String applicationName) Google Calendar application name.voidsetCalendarId(String calendarId) The calendarId to be usedvoidsetClientId(String clientId) Client ID of the calendar applicationvoidsetClientSecret(String clientSecret) Client secret of the calendar applicationvoidsetConsiderLastUpdate(boolean considerLastUpdate) Take into account the lastUpdate of the last event polled as start date for the next pollvoidsetConsumeFromNow(boolean consumeFromNow) Consume events in the selected calendar from now onvoidsetDelegate(String delegate) Delegate for wide-domain service accountvoidsetEmailAddress(String emailAddress) The emailAddress of the Google Service Account.voidSpecifies an index for the endpointvoidsetMaxResults(int maxResults) Max results to be returnedvoidsetP12FileName(String p12FileName) The name of the p12 file which has the private key to use with the Google Service Account.voidThe query to execute on calendarvoidsetRefreshToken(String refreshToken) OAuth 2 refresh token.voidSpecifies the level of permissions you want a calendar application to have to a user account.voidsetServiceAccountKey(String serviceAccountKey) Service account key in json format to authenticate an application as a service account.voidsetSyncFlow(boolean syncFlow) Sync events, see https://developers.google.com/calendar/v3/sync Note: not compatible with: 'query' and 'considerLastUpdate' parametersvoidThe email address of the user the application is trying to impersonate in the service account flow.
-
Constructor Details
-
GoogleCalendarStreamConfiguration
public GoogleCalendarStreamConfiguration()
-
-
Method Details
-
getClientId
-
setClientId
Client ID of the calendar application -
getEmailAddress
-
setEmailAddress
The emailAddress of the Google Service Account. -
getClientSecret
-
setClientSecret
Client secret of the calendar application -
getAccessToken
-
setAccessToken
OAuth 2 access token. This typically expires after an hour so refreshToken is recommended for long term usage. -
getRefreshToken
-
setRefreshToken
OAuth 2 refresh token. Using this, the Google Calendar component can obtain a new accessToken whenever the current one expires - a necessity if the application is long-lived. -
getApplicationName
-
setApplicationName
Google Calendar application name. Example would be "camel-google-calendar/1.0" -
getScopes
-
setScopes
Specifies the level of permissions you want a calendar application to have to a user account. See https://developers.google.com/calendar/auth for more info. -
getIndex
-
setIndex
Specifies an index for the endpoint -
getP12FileName
-
setP12FileName
The name of the p12 file which has the private key to use with the Google Service Account. -
getUser
-
setUser
The email address of the user the application is trying to impersonate in the service account flow. -
getQuery
-
setQuery
The query to execute on calendar -
getMaxResults
public int getMaxResults() -
setMaxResults
public void setMaxResults(int maxResults) Max results to be returned -
getCalendarId
-
setCalendarId
The calendarId to be used -
isConsumeFromNow
public boolean isConsumeFromNow() -
setConsumeFromNow
public void setConsumeFromNow(boolean consumeFromNow) Consume events in the selected calendar from now on -
isConsiderLastUpdate
public boolean isConsiderLastUpdate() -
setSyncFlow
public void setSyncFlow(boolean syncFlow) Sync events, see https://developers.google.com/calendar/v3/sync Note: not compatible with: 'query' and 'considerLastUpdate' parameters -
isSyncFlow
public boolean isSyncFlow() -
setConsiderLastUpdate
public void setConsiderLastUpdate(boolean considerLastUpdate) Take into account the lastUpdate of the last event polled as start date for the next poll -
getServiceAccountKey
-
setServiceAccountKey
Service account key in json format to authenticate an application as a service account. Accept base64 adding the prefix "base64:"- Parameters:
serviceAccountKey- String file, classpath, base64, or http url
-
getDelegate
-
setDelegate
Delegate for wide-domain service account -
copy
-