Class SubstituteUserView
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.view.View<ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.securityflowui.view.usersubstitution.SubstituteUserView
- 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,FragmentOwner,Serializable
@ViewController(id="sec_SubstituteUserView")
@ViewDescriptor(path="substitute-user-view.xml")
@DialogMode(width="30em",
height="40em",
closeOnEsc=true)
public class SubstituteUserView
extends StandardView
- 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 Actionsprotected BaseActionprotected CurrentUserSubstitutionprotected Dialogsprotected Messagesprotected MetadataToolsprotected UiComponentsprotected TypedTextField<String>protected com.vaadin.flow.component.listbox.dataview.ListBoxListDataView<org.springframework.security.core.userdetails.UserDetails>protected JmixListBox<org.springframework.security.core.userdetails.UserDetails>protected UserSubstitutionManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.data.provider.ListDataProvider<org.springframework.security.core.userdetails.UserDetails>createUsersDataProvider(List<org.springframework.security.core.userdetails.UserDetails> currentAndSubstitutedUsers) protected StringgenerateUserName(org.springframework.security.core.userdetails.UserDetails user) protected voidvoidvoidonInit(View.InitEvent event) voidonUserFilterTypedValueChange(SupportsTypedValue.TypedValueChangeEvent<TypedTextField<String>, String> event) voidonUsersListComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixListBox<?>, ?> event) protected voidprotected com.vaadin.flow.data.renderer.ComponentRenderer<?,org.springframework.security.core.userdetails.UserDetails> Methods inherited from class io.jmix.flowui.view.StandardView
initContentMethods 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, setMeterRegistry, setPageTitle, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigationMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setVisibleMethods 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, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
applyAction
-
userFilter
-
usersList
@ViewComponent protected JmixListBox<org.springframework.security.core.userdetails.UserDetails> usersList -
actions
-
dialogs
-
messages
-
uiComponents
-
metadataTools
-
currentUserSubstitution
-
userSubstitutionManager
-
usersDataView
protected com.vaadin.flow.component.listbox.dataview.ListBoxListDataView<org.springframework.security.core.userdetails.UserDetails> usersDataView
-
-
Constructor Details
-
SubstituteUserView
public SubstituteUserView()
-
-
Method Details
-
onInit
-
initUsersList
protected void initUsersList() -
generateUserName
-
createUsersDataProvider
protected com.vaadin.flow.data.provider.ListDataProvider<org.springframework.security.core.userdetails.UserDetails> createUsersDataProvider(List<org.springframework.security.core.userdetails.UserDetails> currentAndSubstitutedUsers) -
usersListRenderer
-
onApplyAction
-
onUsersListComponentValueChange
@Subscribe("usersList") public void onUsersListComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixListBox<?>, ?> event) -
onUserFilterTypedValueChange
@Subscribe("userFilter") public void onUserFilterTypedValueChange(SupportsTypedValue.TypedValueChangeEvent<TypedTextField<String>, String> event) -
refreshActions
protected void refreshActions()
-