Package io.jmix.securityui.action
Class ResetRememberMeTokenAction
java.lang.Object
io.jmix.ui.action.AbstractAction
io.jmix.ui.action.BaseAction
io.jmix.ui.action.ListAction
io.jmix.securityui.action.ResetRememberMeTokenAction
- All Implemented Interfaces:
Action
,Action.AdjustWhenScreenReadOnly
,Action.ExecutableAction
,Action.HasPrimaryState
,Action.HasTarget
,Action.SecuredAction
@StudioAction(target="io.jmix.ui.component.ListComponent",
description="Resets the remember me token for the UserDetails instance")
@ActionType("resetRememberMeToken")
public class ResetRememberMeTokenAction
extends ListAction
implements Action.ExecutableAction, Action.AdjustWhenScreenReadOnly
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.action.BaseAction
BaseAction.EnabledRule
Nested 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.ScreenOpeningAction, Action.SecuredAction, Action.Status
-
Field Summary
Modifier and TypeFieldDescriptionprotected AccessManager
static final String
protected Messages
protected Notifications
protected UserManager
Fields inherited from class io.jmix.ui.action.ListAction
target
Fields inherited from class io.jmix.ui.action.AbstractAction
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visible
Fields inherited from interface io.jmix.ui.action.Action
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerform
(Component component) Invoked by owning component to execute the action.void
execute()
Executes theAction
protected boolean
Callback method which is invoked by the action to determine its enabled state.void
resetRememberMe
(Collection<org.springframework.security.core.userdetails.UserDetails> users) void
protected void
setAccessManager
(AccessManager accessManager) void
setMessages
(Messages messages) void
setNotifications
(Notifications notifications) void
setUserManager
(UserManager userManager) Methods inherited from class io.jmix.ui.action.ListAction
getTarget, setTarget, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcut
Methods inherited from class io.jmix.ui.action.BaseAction
addActionPerformedListener, addEnabledRule, isApplicable, isEnabledByRule, isEnabledByUiPermissions, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternal
Methods 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, setShortcutCombination
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
Methods inherited from interface io.jmix.ui.action.Action.AdjustWhenScreenReadOnly
isDisabledWhenScreenReadOnly
-
Field Details
-
ID
- See Also:
-
messages
-
notifications
-
userManager
-
accessManager
-
-
Constructor Details
-
ResetRememberMeTokenAction
public ResetRememberMeTokenAction() -
ResetRememberMeTokenAction
-
-
Method Details
-
setUserManager
-
setNotifications
-
setMessages
-
setAccessManager
-
isPermitted
protected boolean isPermitted()Description copied from class:BaseAction
Callback method which is invoked by the action to determine its enabled state.- Overrides:
isPermitted
in classBaseAction
- Returns:
- true if the action is enabled for the current user
-
actionPerform
Description copied from interface:Action
Invoked by owning component to execute the action.- Specified by:
actionPerform
in interfaceAction
- Overrides:
actionPerform
in classBaseAction
- Parameters:
component
- invoking component
-
execute
public void execute()Description copied from interface:Action.ExecutableAction
Executes theAction
- Specified by:
execute
in interfaceAction.ExecutableAction
-
resetRememberMeAll
public void resetRememberMeAll() -
resetRememberMe
public void resetRememberMe(Collection<org.springframework.security.core.userdetails.UserDetails> users)
-