Class JmixUserIndicator

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
io.jmix.flowui.kit.component.main.UserIndicator<org.springframework.security.core.userdetails.UserDetails>
io.jmix.flowui.component.main.JmixUserIndicator
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, HasTitle, SupportsFormatter<org.springframework.security.core.userdetails.UserDetails>, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class JmixUserIndicator extends UserIndicator<org.springframework.security.core.userdetails.UserDetails> implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
See Also:
  • Field Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • currentUserSubstitution

      protected CurrentUserSubstitution currentUserSubstitution
    • substitutionManager

      protected UserSubstitutionManager substitutionManager
    • metadataTools

      protected MetadataTools metadataTools
    • uiComponents

      protected UiComponents uiComponents
    • dialogs

      protected Dialogs dialogs
    • messages

      protected Messages messages
    • actions

      protected Actions actions
  • Constructor Details

    • JmixUserIndicator

      public JmixUserIndicator()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • autowireDependencies

      protected void autowireDependencies()
    • initUiUserSubstitutionChangeListener

      protected void initUiUserSubstitutionChangeListener()
    • refreshUser

      public void refreshUser()
      Overrides:
      refreshUser in class UserIndicator<org.springframework.security.core.userdetails.UserDetails>
    • createUserSelectionField

      protected com.vaadin.flow.component.Component createUserSelectionField(List<org.springframework.security.core.userdetails.UserDetails> currentAndSubstitutedUsers)
    • substituteUser

      protected void substituteUser(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<org.springframework.security.core.userdetails.UserDetails>,org.springframework.security.core.userdetails.UserDetails> event)
    • updateUserIndicatorLabel

      protected void updateUserIndicatorLabel(org.springframework.security.core.userdetails.UserDetails user)
      Overrides:
      updateUserIndicatorLabel in class UserIndicator<org.springframework.security.core.userdetails.UserDetails>
    • generateUserTitle

      protected String generateUserTitle(org.springframework.security.core.userdetails.UserDetails user)
      Overrides:
      generateUserTitle in class UserIndicator<org.springframework.security.core.userdetails.UserDetails>
    • onApplicationEvent

      protected void onApplicationEvent(org.springframework.context.ApplicationEvent event)
    • onUserSubstitutionsChanged

      protected void onUserSubstitutionsChanged(UiUserSubstitutionsChangedEvent event)