Package io.jmix.securityui.action
Class AssignToUsersAction
java.lang.Object
io.jmix.ui.action.AbstractAction
io.jmix.ui.action.BaseAction
io.jmix.ui.action.ListAction
io.jmix.ui.action.list.SecuredListAction
io.jmix.securityui.action.AssignToUsersAction
- All Implemented Interfaces:
Action,Action.ExecutableAction,Action.HasPrimaryState,Action.HasSecurityConstraint,Action.HasTarget,Action.SecuredAction
@StudioAction(target="io.jmix.ui.component.ListComponent",
description="Assign the role to selected users")
@ActionType("assignToUsers")
public class AssignToUsersAction
extends SecuredListAction
implements Action.ExecutableAction
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.action.BaseAction
BaseAction.EnabledRuleNested classes/interfaces inherited from interface io.jmix.ui.action.Action
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.MainTabSheetAction, Action.OperationResultAction, Action.ScreenAction<S extends Screen>, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DataManagerstatic final Stringprotected Messagesprotected Notificationsprotected static final Stringprotected ScreenBuildersprotected BaseRoleModelprotected static final Stringprotected UserRepositoryFields inherited from class io.jmix.ui.action.list.SecuredListAction
accessManager, applicationContext, constraintEntityOp, metadataFields inherited from class io.jmix.ui.action.ListAction
targetFields inherited from class io.jmix.ui.action.AbstractAction
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visibleFields inherited from interface io.jmix.ui.action.Action
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerform(Component component) Invoked by owning component to execute the action.protected voidconfigureScreenLoader(DataLoader loader) voidexecute()Executes theActionprotected Screenprotected DataLoaderfindScreenLoader(Screen view, Class<?> userClass) protected StringgetRoleType(BaseRoleModel selectedItem) protected voidprotected voidselectHandler(Collection<?> userDetails) voidsetDataManager(DataManager dataManager) protected voidvoidsetMessages(Messages messages) voidsetNotifications(Notifications notifications) voidsetScreenBuilders(ScreenBuilders screenBuilders) voidsetUserRepository(UserRepository userRepository) protected voidshowNotification(int selectedItemsCount) Methods inherited from class io.jmix.ui.action.list.SecuredListAction
getConstraintEntityOp, isApplicable, isPermitted, setAccessManager, setApplicationContext, setConstraintEntityOp, setMetadataMethods inherited from class io.jmix.ui.action.ListAction
getTarget, setTarget, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcutMethods inherited from class io.jmix.ui.action.BaseAction
addActionPerformedListener, addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternalMethods inherited from class io.jmix.ui.action.AbstractAction
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setPrimary, setShortcut, setShortcutCombinationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.action.Action
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisible
-
Field Details
-
ID
- See Also:
-
ROLE_CODE_PROPERTY
- See Also:
-
USERNAME_PROPERTY
- See Also:
-
screenBuilders
-
notifications
-
messages
-
dataManager
-
userRepository
-
selectedItem
-
-
Constructor Details
-
AssignToUsersAction
public AssignToUsersAction() -
AssignToUsersAction
-
-
Method Details
-
setScreenBuilders
-
setNotifications
-
setMessages
-
setDataManager
-
setUserRepository
-
setIcons
-
actionPerform
Description copied from interface:ActionInvoked by owning component to execute the action.- Specified by:
actionPerformin interfaceAction- Overrides:
actionPerformin classBaseAction- Parameters:
component- invoking component
-
execute
public void execute()Description copied from interface:Action.ExecutableActionExecutes theAction- Specified by:
executein interfaceAction.ExecutableAction
-
openDialog
protected void openDialog() -
configureScreenLoader
-
findScreenLoader
-
selectHandler
-
showNotification
protected void showNotification(int selectedItemsCount) -
findParent
-
getRoleType
-