Class SupersetProperties

java.lang.Object
io.jmix.superset.SupersetProperties

@ConfigurationProperties("jmix.superset") public class SupersetProperties extends Object
  • Constructor Details

    • SupersetProperties

      public SupersetProperties(String url, String username, String password, @DefaultValue("1m") Duration accessTokenRefreshSchedule, @DefaultValue("true") boolean csrfProtectionEnabled, @DefaultValue("1m") Duration csrfTokenRefreshSchedule, @DefaultValue("7d") Duration csrfTokenExpiration, @DefaultValue("true") boolean tokensRefreshEnabled)
  • Method Details

    • getUrl

      @Nullable public String getUrl()
      Returns:
      Superset URL or null if not specified
      See Also:
      • url
    • getUsername

      @Nullable public String getUsername()
      Returns:
      user name of Superset user or null if not specified
      See Also:
      • username
    • getPassword

      @Nullable public String getPassword()
      Returns:
      password of Superset user or null if not specified
      See Also:
      • password
    • getAccessTokenRefreshSchedule

      public Duration getAccessTokenRefreshSchedule()
      Returns:
      access token refresh schedule delay
      See Also:
      • accessTokenRefreshSchedule
    • isCsrfProtectionEnabled

      public boolean isCsrfProtectionEnabled()
      Returns:
      true if CSRF protection is enabled
      See Also:
      • csrfProtectionEnabled
    • getCsrfTokenRefreshSchedule

      public Duration getCsrfTokenRefreshSchedule()
      Returns:
      schedule delay that is used for getting new CSRF token
      See Also:
      • csrfTokenRefreshSchedule
    • getCsrfTokenExpiration

      public Duration getCsrfTokenExpiration()
      Returns:
      a lifespan of CSRF token
      See Also:
      • csrfTokenExpiration
    • isTokensRefreshEnabled

      public boolean isTokensRefreshEnabled()
      Returns:
      is automatic tokens refresh enabled
      See Also:
      • tokensRefreshEnabled