Class GoogleCalendarConfiguration

java.lang.Object
org.apache.camel.component.google.calendar.GoogleCalendarConfiguration
Direct Known Subclasses:
CalendarAclEndpointConfiguration, CalendarCalendarListEndpointConfiguration, CalendarCalendarsEndpointConfiguration, CalendarChannelsEndpointConfiguration, CalendarColorsEndpointConfiguration, CalendarEventsEndpointConfiguration, CalendarFreebusyEndpointConfiguration, CalendarSettingsEndpointConfiguration

@UriParams @Configurer(extended=true) public class GoogleCalendarConfiguration extends Object
Component configuration for GoogleCalendar component.
  • Constructor Details

    • GoogleCalendarConfiguration

      public GoogleCalendarConfiguration()
  • Method Details

    • getApiName

      public GoogleCalendarApiName getApiName()
    • setApiName

      public void setApiName(GoogleCalendarApiName apiName)
      What kind of operation to perform
    • getMethodName

      public String getMethodName()
    • setMethodName

      public void setMethodName(String methodName)
      What sub operation to use for the selected operation
    • 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()
    • getScopesAsList

      public Collection<String> getScopesAsList()
    • 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
    • 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
    • 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