Class GoogleCalendarStreamConfiguration

java.lang.Object
org.apache.camel.component.google.calendar.stream.GoogleCalendarStreamConfiguration
All Implemented Interfaces:
Cloneable

@UriParams public class GoogleCalendarStreamConfiguration extends Object implements Cloneable
Component configuration for GoogleCalendar stream component.
  • Constructor Details

    • GoogleCalendarStreamConfiguration

      public GoogleCalendarStreamConfiguration()
  • Method Details

    • getClientId

      public String getClientId()
    • setClientId

      public void setClientId(String clientId)
      Client ID of the calendar application
    • getEmailAddress

      public String getEmailAddress()
    • setEmailAddress

      public void setEmailAddress(String emailAddress)
      The emailAddress of the Google Service Account.
    • getClientSecret

      public String getClientSecret()
    • setClientSecret

      public void setClientSecret(String clientSecret)
      Client secret of the calendar application
    • getAccessToken

      public String getAccessToken()
    • setAccessToken

      public void setAccessToken(String accessToken)
      OAuth 2 access token. This typically expires after an hour so refreshToken is recommended for long term usage.
    • getRefreshToken

      public String getRefreshToken()
    • setRefreshToken

      public void setRefreshToken(String refreshToken)
      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

      public String getApplicationName()
    • setApplicationName

      public void setApplicationName(String applicationName)
      Google Calendar application name. Example would be "camel-google-calendar/1.0"
    • getScopes

      public String getScopes()
    • setScopes

      public void setScopes(String scopes)
      Specifies the level of permissions you want a calendar application to have to a user account. See https://developers.google.com/identity/protocols/googlescopes for more info. Multiple scopes can be separated by comma.
      See Also:
      • CalendarScopes
    • getScopesAsList

      public Collection<String> getScopesAsList()
    • getIndex

      public String getIndex()
    • setIndex

      public void setIndex(String index)
      Specifies an index for the endpoint
    • getP12FileName

      public String getP12FileName()
    • setP12FileName

      public void setP12FileName(String p12FileName)
      The name of the p12 file which has the private key to use with the Google Service Account.
    • getUser

      public String getUser()
    • setUser

      public void setUser(String user)
      The email address of the user the application is trying to impersonate in the service account flow.
    • getQuery

      public String getQuery()
    • setQuery

      public void setQuery(String query)
      The query to execute on calendar
    • getMaxResults

      public int getMaxResults()
    • setMaxResults

      public void setMaxResults(int maxResults)
      Max results to be returned
    • getCalendarId

      public String getCalendarId()
    • setCalendarId

      public void setCalendarId(String calendarId)
      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

      public String getServiceAccountKey()
    • setServiceAccountKey

      public void setServiceAccountKey(String serviceAccountKey)
      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

      public String getDelegate()
    • setDelegate

      public void setDelegate(String delegate)
      Delegate for wide-domain service account
    • copy