Package io.jmix.securityflowui.action
Class AssignToUsersAction<E extends BaseRoleModel>
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction
io.jmix.flowui.action.SecuredBaseAction
io.jmix.flowui.action.list.ListDataComponentAction<A,E>
io.jmix.flowui.action.list.SecuredListDataComponentAction<AssignToUsersAction<E>,E>
io.jmix.securityflowui.action.AssignToUsersAction<E>
- All Implemented Interfaces:
ExecutableAction
,SecuredAction
,SecurityConstraintAction
,TargetAction<ListDataComponent<E>>
,Action
,HasShortcutCombination
@ActionType("sec_assignToUsers")
public class AssignToUsersAction<E extends BaseRoleModel>
extends SecuredListDataComponentAction<AssignToUsersAction<E>,E>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.action.SecuredBaseAction
SecuredBaseAction.EnabledRule
-
Field Summary
Modifier and TypeFieldDescriptionprotected DataManager
protected DialogWindows
static final String
protected Messages
protected Notifications
protected static final String
protected E
protected static final String
protected UserRepository
Fields inherited from class io.jmix.flowui.action.list.SecuredListDataComponentAction
accessManager, applicationContext, constraintEntityOp, metadata
Fields inherited from class io.jmix.flowui.action.list.ListDataComponentAction
selectionListenerRegistration, target
Fields inherited from class io.jmix.flowui.action.SecuredBaseAction
enabledByUiPermissions, enabledRules, visibleByUiPermissions
Fields inherited from class io.jmix.flowui.kit.action.BaseAction
enabledExplicitly, visibleExplicitly
Fields inherited from class io.jmix.flowui.kit.action.AbstractAction
description, enabled, eventBus, icon, id, shortcutCombination, text, variant, visible
Fields inherited from interface io.jmix.flowui.kit.action.Action
PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT_COMBINATION, PROP_TEXT, PROP_VARIANT, PROP_VISIBLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureViewLoader
(DataLoader loader) void
execute()
Executes theAction
protected DataLoader
findViewLoader
(View<?> view, Class<?> userClass) protected String
getRoleType
(E selectedItem) protected void
protected boolean
protected void
protected void
selectHandler
(Collection<?> userDetails) void
setDataManager
(DataManager dataManager) void
setDialogWindows
(DialogWindows dialogWindows) void
setMessages
(Messages messages) void
setNotifications
(Notifications notifications) void
setUserRepository
(UserRepository userRepository) protected void
showNotification
(DialogWindow.AfterCloseEvent<View<?>> viewAfterCloseEvent) Methods inherited from class io.jmix.flowui.action.list.SecuredListDataComponentAction
getConstraintEntityOp, isPermitted, setAccessManager, setApplicationContext, setConstraintEntityOp, setMetadata, withConstraintEntityOp
Methods inherited from class io.jmix.flowui.action.list.ListDataComponentAction
actionPerform, attachSelectionListener, checkTarget, checkTargetItems, getTarget, onSelectionChange, setTarget, withEnabled, withEnabledByUiPermissions, withHandler, withIcon, withIcon, withShortcutCombination, withTarget, withText, withTitle, withVariant, withVisible, withVisibleByUiPermissions
Methods inherited from class io.jmix.flowui.action.SecuredBaseAction
addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabledByUiPermissions, setVisibleByUiPermissions
Methods inherited from class io.jmix.flowui.kit.action.BaseAction
addActionPerformedListener, setEnabled, setEnabledInternal, setVisible, setVisibleInternal
Methods inherited from class io.jmix.flowui.kit.action.AbstractAction
addPropertyChangeListener, firePropertyChange, getDescription, getEventBus, getIcon, getId, getShortcutCombination, getText, getVariant, hasListener, isEnabled, isVisible, setDescription, setIcon, setShortcutCombination, setText, setVariant
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.flowui.kit.action.Action
actionPerform, addPropertyChangeListener, getDescription, getIcon, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setText, setVariant, setVisible
Methods inherited from interface io.jmix.flowui.kit.component.HasShortcutCombination
getShortcutCombination, setShortcutCombination
-
Field Details
-
ID
- See Also:
-
ROLE_CODE_PROPERTY
- See Also:
-
USERNAME_PROPERTY
- See Also:
-
dialogWindows
-
notifications
-
messages
-
dataManager
-
userRepository
-
selectedItem
-
-
Constructor Details
-
AssignToUsersAction
public AssignToUsersAction() -
AssignToUsersAction
-
-
Method Details
-
initAction
protected void initAction()- Overrides:
initAction
in classListDataComponentAction<AssignToUsersAction<E extends BaseRoleModel>,
E extends BaseRoleModel>
-
setDialogWindows
-
setNotifications
-
setMessages
-
setDataManager
-
setUserRepository
-
execute
public void execute()Description copied from interface:ExecutableAction
Executes theAction
-
isApplicable
protected boolean isApplicable()- Overrides:
isApplicable
in classSecuredListDataComponentAction<AssignToUsersAction<E extends BaseRoleModel>,
E extends BaseRoleModel>
-
openDialog
protected void openDialog() -
configureViewLoader
-
findViewLoader
-
selectHandler
-
showNotification
-
getRoleType
-