Class UserSubstitutionsFragment
java.lang.Object
io.jmix.ui.screen.ScreenFragment
io.jmix.securityui.screen.usersubstitution.UserSubstitutionsFragment
- All Implemented Interfaces:
FrameOwner
@UiController("sec_UserSubstitutionsFragment")
@UiDescriptor("user-substitutions-fragment.xml")
public class UserSubstitutionsFragment
extends ScreenFragment
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.ScreenFragment
ScreenFragment.AfterInitEvent, ScreenFragment.AttachEvent, ScreenFragment.DetachEvent, ScreenFragment.InitEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected CreateAction<UserSubstitutionEntity>
protected DataContext
protected Metadata
protected MetadataTools
protected org.springframework.security.core.userdetails.UserDetails
protected UserRepository
protected CollectionLoader<UserSubstitutionEntity>
Fields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildUserCaption
(UserSubstitutionEntity substitution) void
onAfterInit
(Screen.AfterInitEvent event) void
onAfterShow
(Screen.AfterShowEvent event) void
void
setUser
(org.springframework.security.core.userdetails.UserDetails user) Methods inherited from class io.jmix.ui.screen.ScreenFragment
addAfterInitListener, addAttachEventListener, addDetachEventListener, addInitListener, fireEvent, getApplicationContext, getEventHub, getExtensions, getFragment, getHostController, getHostScreen, getId, getScreenData, getUiEventListeners, init, setApplicationContext, setExtensions, setFragment, setHostController, setId, setScreenData, setUiEventListeners
-
Field Details
-
metadata
-
metadataTools
-
userRepository
-
userSubstitutionsDl
-
dataContext
-
createAction
-
user
protected org.springframework.security.core.userdetails.UserDetails user
-
-
Constructor Details
-
UserSubstitutionsFragment
public UserSubstitutionsFragment()
-
-
Method Details
-
onAfterInit
-
onSubstitutionTableRemove
@Subscribe("substitutionTable.remove") public void onSubstitutionTableRemove(Action.ActionPerformedEvent event) -
onAfterShow
-
setUser
public void setUser(org.springframework.security.core.userdetails.UserDetails user) -
buildUserCaption
@Install(to="substitutionTable.substitutedUsername", subject="columnGenerator") public Component buildUserCaption(UserSubstitutionEntity substitution)
-