Class EmailConnectionView

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<ViewLayout>
io.jmix.flowui.view.View<ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.emailflowui.view.emailconnection.EmailConnectionView
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, com.vaadin.flow.router.AfterNavigationObserver, com.vaadin.flow.router.BeforeEnterObserver, com.vaadin.flow.router.BeforeLeaveObserver, com.vaadin.flow.router.HasDynamicTitle, com.vaadin.flow.router.internal.AfterNavigationHandler, com.vaadin.flow.router.internal.BeforeEnterHandler, com.vaadin.flow.router.internal.BeforeLeaveHandler, FacetOwner, FragmentOwner, Serializable

@Route(value="email/connection", layout=DefaultMainViewParent.class) @RouteAlias(value="email/token", layout=DefaultMainViewParent.class) @ViewController(id="email_connectionView") @ViewDescriptor(path="email-connection-view.xml") public class EmailConnectionView extends StandardView
See Also:
  • Field Details

  • Constructor Details

    • EmailConnectionView

      public EmailConnectionView()
  • Method Details

    • onInit

      @Subscribe public void onInit(View.InitEvent event)
    • initConnectionInfo

      protected void initConnectionInfo()
    • buildServerInfo

      protected String buildServerInfo()
    • setStatusBadge

      protected void setStatusBadge(String messageKey, @Nullable String themeVariant)
    • onDeviceCodeConnectButtonClick

      @Subscribe("deviceCodeConnectButton") public void onDeviceCodeConnectButtonClick(com.vaadin.flow.component.ClickEvent<JmixButton> event)
    • onAuthCodeConnectButtonClick

      @Subscribe("authCodeConnectButton") public void onAuthCodeConnectButtonClick(com.vaadin.flow.component.ClickEvent<JmixButton> event)
    • onUpdateRefreshTokenAction

      @Subscribe("updateRefreshTokenAction") public void onUpdateRefreshTokenAction(ActionPerformedEvent event)
    • onTestConnectionButtonClick

      @Subscribe("testConnectionButton") public void onTestConnectionButtonClick(com.vaadin.flow.component.ClickEvent<JmixButton> event)
    • createTestConnectionTask

      protected BackgroundTask<Integer,Void> createTestConnectionTask()
    • onRefreshTokenDcItemChange

      @Subscribe(id="refreshTokenDc", target=DATA_CONTAINER) public void onRefreshTokenDcItemChange(InstanceContainer.ItemChangeEvent<RefreshToken> event)
    • tokenSuffix

      protected String tokenSuffix(String tokenValue)
      Returns the last characters of the token for diagnostic identification. Nothing is revealed for short values so that a manually entered test value is not half-exposed.
    • openDeviceCodeDialog

      protected void openDeviceCodeDialog(OAuth2DeviceCodeSession session)
    • onDeviceCodePoll

      protected void onDeviceCodePoll(OAuth2DeviceCodeSession session, com.vaadin.flow.component.html.Span status, com.vaadin.flow.component.dialog.Dialog dialog)
    • registerPollListener

      protected com.vaadin.flow.shared.Registration registerPollListener(com.vaadin.flow.component.UI ui, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.PollEvent> listener)
    • showConnectionFailedNotification

      protected void showConnectionFailedNotification(String errorMessage)
    • generateState

      protected String generateState()
    • resolveRedirectUri

      protected String resolveRedirectUri()
      Returns the redirect URI configured by 'jmix.email.oauth2.redirect-uri' or derives it from the current request and the callback view route.