Package io.jmix.flowui.component.main
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,- com.vaadin.flow.component.shared.HasTooltip,- 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 SummaryFieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected CurrentUserSubstitutionprotected MetadataToolsprotected UserSubstitutionManagerFields inherited from class io.jmix.flowui.kit.component.main.UserIndicatorUSER_INDICATOR_CLASS_NAME, USER_INDICATOR_LABEL_CLASS_NAME, userComponent, userFormatter
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidprotected voidprotected StringgenerateUserTitle(org.springframework.security.core.userdetails.UserDetails user) voidvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Methods inherited from class io.jmix.flowui.kit.component.main.UserIndicatorcreateUserIndicator, getFormatter, initContent, setFormatter, updateUserIndicatorLabelMethods inherited from class com.vaadin.flow.component.CompositegetChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.ComponentaddListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifieraddAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifieraddDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElementgetElementMethods inherited from interface com.vaadin.flow.component.HasEnabledisEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasSizegetHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyleaddClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.shared.HasTooltipgetTooltip, setTooltipText
- 
Field Details- 
applicationContextprotected org.springframework.context.ApplicationContext applicationContext
- 
currentUserSubstitution
- 
substitutionManager
- 
metadataTools
 
- 
- 
Constructor Details- 
JmixUserIndicatorpublic JmixUserIndicator()
 
- 
- 
Method Details- 
setApplicationContextpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
- setApplicationContextin interface- org.springframework.context.ApplicationContextAware
- Throws:
- org.springframework.beans.BeansException
 
- 
afterPropertiesSet- Specified by:
- afterPropertiesSetin interface- org.springframework.beans.factory.InitializingBean
- Throws:
- Exception
 
- 
autowireDependenciesprotected void autowireDependencies()
- 
refreshUserpublic void refreshUser()- Overrides:
- refreshUserin class- UserIndicator<org.springframework.security.core.userdetails.UserDetails>
 
- 
generateUserTitle- Overrides:
- generateUserTitlein class- UserIndicator<org.springframework.security.core.userdetails.UserDetails>
 
 
-