Klasse AccountView
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.view.View<io.jmix.flowui.component.layout.ViewLayout>
io.jmix.flowui.view.StandardView
de.bytestore.hostinger.view.account.AccountView
- Alle implementierten Schnittstellen:
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,Serializable
@Route(value="account",
layout=MainView.class)
@ViewController("host_Account")
@ViewDescriptor("Account.xml")
public class AccountView
extends io.jmix.flowui.view.StandardView
AccountView is a class that represents the account view in a web application.
It is responsible for displaying session information and allowing the user to change their password.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen io.jmix.flowui.view.View
io.jmix.flowui.view.View.AfterCloseEvent, io.jmix.flowui.view.View.BeforeCloseEvent, io.jmix.flowui.view.View.BeforeShowEvent, io.jmix.flowui.view.View.InitEvent, io.jmix.flowui.view.View.QueryParametersChangeEvent, io.jmix.flowui.view.View.ReadyEvent -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected io.jmix.flowui.Dialogsprotected io.jmix.flowui.kit.component.button.JmixButtonprotected io.jmix.flowui.kit.component.button.JmixButtonprotected io.jmix.flowui.kit.component.button.JmixButtonprotected io.jmix.flowui.view.MessageBundleprotected io.jmix.notifications.NotificationManagerprotected io.jmix.flowui.component.textfield.JmixPasswordFieldprotected org.springframework.security.crypto.password.PasswordEncoderprotected io.jmix.flowui.component.textfield.JmixPasswordFieldprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected io.jmix.flowui.sys.SessionHolderprotected org.springframework.security.core.session.SessionRegistryprotected io.jmix.flowui.UiComponentsprotected io.jmix.core.security.UserManagerprotected io.jmix.audit.UserSessions -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidgeneratePassword(com.vaadin.flow.component.ClickEvent<io.jmix.flowui.kit.component.button.JmixButton> event) protected voidonAddPaymentClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.orderedlayout.VerticalLayout> event) protected voidonDeleteRequestClick(com.vaadin.flow.component.ClickEvent<io.jmix.flowui.kit.component.button.JmixButton> event) protected voidonEditPasswordClick(com.vaadin.flow.component.ClickEvent<io.jmix.flowui.kit.component.button.JmixButton> event) protected voidonExportRequestClick(com.vaadin.flow.component.ClickEvent<io.jmix.flowui.kit.component.button.JmixButton> event) protected voidonInit(io.jmix.flowui.view.View.InitEvent event) Initializes the AccountView by listing all sessions of the current user.protected voidonSaveClick(com.vaadin.flow.component.ClickEvent<io.jmix.flowui.kit.component.button.JmixButton> event) Saves changes when the save button is clicked.protected voidonTabSheetSelectedChange(io.jmix.flowui.component.tabsheet.JmixTabSheet.SelectedChangeEvent event) Von Klasse geerbte Methoden io.jmix.flowui.view.StandardView
initContentVon Klasse geerbte Methoden io.jmix.flowui.view.View
addAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, afterNavigation, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacetsVon Klasse geerbte Methoden com.vaadin.flow.component.Composite
getChildren, getContent, getElementVon Klasse geerbte Methoden com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setVisibleVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden com.vaadin.flow.component.AttachNotifier
addAttachListenerVon Schnittstelle geerbte Methoden com.vaadin.flow.component.DetachNotifier
addDetachListenerVon Schnittstelle geerbte Methoden com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Felddetails
-
sessionContainer
@ViewComponent protected com.vaadin.flow.component.orderedlayout.VerticalLayout sessionContainer -
userSessions
@Autowired protected io.jmix.audit.UserSessions userSessions -
sessionRegistry
@Autowired protected org.springframework.security.core.session.SessionRegistry sessionRegistry -
messageBundle
@Autowired protected io.jmix.flowui.view.MessageBundle messageBundle -
dialogs
@Autowired protected io.jmix.flowui.Dialogs dialogs -
uiComponents
@Autowired protected io.jmix.flowui.UiComponents uiComponents -
passwordEncoder
@Autowired protected org.springframework.security.crypto.password.PasswordEncoder passwordEncoder -
password
@ViewComponent protected io.jmix.flowui.component.textfield.JmixPasswordField password -
repeatPassword
@ViewComponent protected io.jmix.flowui.component.textfield.JmixPasswordField repeatPassword -
generatePassword
@ViewComponent protected io.jmix.flowui.kit.component.button.JmixButton generatePassword -
editPassword
@ViewComponent protected io.jmix.flowui.kit.component.button.JmixButton editPassword -
exportRequest
@ViewComponent protected io.jmix.flowui.kit.component.button.JmixButton exportRequest -
notificationManager
@Autowired protected io.jmix.notifications.NotificationManager notificationManager -
sessionHolder
@Autowired protected io.jmix.flowui.sys.SessionHolder sessionHolder -
userManager
@Autowired protected io.jmix.core.security.UserManager userManager
-
-
Konstruktordetails
-
AccountView
public AccountView()
-
-
Methodendetails
-
onInit
@Subscribe protected void onInit(io.jmix.flowui.view.View.InitEvent event) Initializes the AccountView by listing all sessions of the current user. Retrieves session information and displays it in a session card. The session card includes details such as session ID, IP address, browser, location, and OS. The session card also includes a logout button for each session. The method iterates through all sessions of the current user and creates a session card for each session. If the session is the current session, it is marked as the current session. If the session has expired, it is marked as expired. The method uses the userSessions object to get the sessions of the current user. The method uses VaadinSession to get session information such as session ID and browser. The method uses AddressUtils to query location based on IP address. The method uses sessionRegistry to expire a session when the logout button is clicked. The method refreshes the session list after logout.- Parameter:
event- the InitEvent object
-
onEditPasswordClick
@Subscribe(id="editPassword", subject="clickListener") protected void onEditPasswordClick(com.vaadin.flow.component.ClickEvent<io.jmix.flowui.kit.component.button.JmixButton> event) -
onSaveClick
@Subscribe(id="saveCredentials", subject="clickListener") protected void onSaveClick(com.vaadin.flow.component.ClickEvent<io.jmix.flowui.kit.component.button.JmixButton> event) Saves changes when the save button is clicked.- Parameter:
event- the click event object
-
onTabSheetSelectedChange
@Subscribe("tabSheet") protected void onTabSheetSelectedChange(io.jmix.flowui.component.tabsheet.JmixTabSheet.SelectedChangeEvent event) -
onExportRequestClick
@Subscribe(id="exportRequest", subject="clickListener") protected void onExportRequestClick(com.vaadin.flow.component.ClickEvent<io.jmix.flowui.kit.component.button.JmixButton> event) -
onDeleteRequestClick
@Subscribe(id="deleteRequest", subject="clickListener") protected void onDeleteRequestClick(com.vaadin.flow.component.ClickEvent<io.jmix.flowui.kit.component.button.JmixButton> event) -
onAddPaymentClick
@Subscribe(id="addPayment", subject="clickListener") protected void onAddPaymentClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.orderedlayout.VerticalLayout> event) -
generatePassword
@Subscribe(id="generatePassword", subject="clickListener") protected void generatePassword(com.vaadin.flow.component.ClickEvent<io.jmix.flowui.kit.component.button.JmixButton> event)
-