Class EmailOAuth2CallbackView
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.EmailOAuth2CallbackView
- 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/oauth2/callback",
layout=DefaultMainViewParent.class)
@ViewController(id="email_oauth2CallbackView")
@ViewDescriptor(path="email-oauth2-callback-view.xml")
public class EmailOAuth2CallbackView
extends StandardView
Receives the OAuth2 authorization code flow callback initiated from
EmailConnectionView.
The view route must be registered as a redirect URI of the OAuth client.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.PostReadyEvent, View.QueryParametersChangeEvent, View.ReadyEvent, View.RestoreComponentsStateEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.beans.factory.ObjectProvider<OAuth2AuthorizationCodeFlow> protected JmixButtonprotected Messagesstatic final Stringstatic final Stringprotected com.vaadin.flow.router.QueryParametersprotected com.vaadin.flow.component.html.Spanprotected ViewNavigators -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable StringvoidonBeforeShow(View.BeforeShowEvent event) voidonContinueButtonClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) voidprotected voidprotected StringrootMessage(Throwable throwable) protected voidshowFailure(String errorMessage) Methods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addApplicationListeners, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, addRestoreComponentsStateEventListener, afterNavigation, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, configureDialogWindowFooter, configureDialogWindowHeader, getApplicationContext, getEventBus, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onAttachInternal, onDetach, onDetachInternal, processBeforeEnterInternal, removeApplicationListeners, removeViewAttributes, setAfterNavigationHandler, setApplicationContext, setId, setPageTitle, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigationMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement, initContentMethods inherited from class com.vaadin.flow.component.Component
addListener, bindVisible, findAncestor, fireEvent, from, get, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setTestId, setVisible, whenAttachedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
OAUTH2_STATE_ATTRIBUTE
- See Also:
-
OAUTH2_REDIRECT_URI_ATTRIBUTE
- See Also:
-
statusLabel
-
continueButton
-
authorizationCodeFlows
@Autowired protected org.springframework.beans.factory.ObjectProvider<OAuth2AuthorizationCodeFlow> authorizationCodeFlows -
messages
-
queryParameters
protected com.vaadin.flow.router.QueryParameters queryParameters
-
-
Constructor Details
-
EmailOAuth2CallbackView
public EmailOAuth2CallbackView()
-
-
Method Details
-
onQueryParametersChange
-
onBeforeShow
-
onContinueButtonClick
@Subscribe("continueButton") public void onContinueButtonClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) -
processCallback
protected void processCallback() -
showFailure
-
getFirstParameter
-
rootMessage
-