@ActionType(value="changePassword")
public class ChangePasswordAction
extends io.jmix.ui.action.list.SecuredListAction
implements io.jmix.ui.action.Action.ExecutableAction, io.jmix.ui.action.Action.AdjustWhenScreenReadOnly
io.jmix.ui.action.BaseAction.EnabledRule
io.jmix.ui.action.Action.ActionPerformedEvent, io.jmix.ui.action.Action.AdjustWhenScreenReadOnly, io.jmix.ui.action.Action.ExecutableAction, io.jmix.ui.action.Action.HasPrimaryState, io.jmix.ui.action.Action.HasSecurityConstraint, io.jmix.ui.action.Action.HasTarget, io.jmix.ui.action.Action.MainTabSheetAction, io.jmix.ui.action.Action.ScreenOpeningAction, io.jmix.ui.action.Action.SecuredAction, io.jmix.ui.action.Action.Status
Modifier and Type | Field and Description |
---|---|
protected boolean |
currentPasswordRequired |
static java.lang.String |
ID |
protected io.jmix.core.Messages |
messages |
protected io.jmix.ui.Notifications |
notifications |
protected io.jmix.ui.UiComponents |
uiComponents |
protected io.jmix.core.security.UserManager |
userManager |
accessManager, constraintEntityOp, metadata
Constructor and Description |
---|
ChangePasswordAction() |
ChangePasswordAction(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerform(io.jmix.ui.component.Component component) |
void |
execute()
Executes the action.
|
protected boolean |
isPermitted() |
void |
setCurrentPasswordRequired(boolean currentPasswordRequired) |
protected void |
setMessages(io.jmix.core.Messages messages) |
void |
setNotifications(io.jmix.ui.Notifications notifications) |
protected void |
setUiComponentProperties(io.jmix.ui.UiComponentProperties componentProperties) |
void |
setUiComponents(io.jmix.ui.UiComponents uiComponents) |
void |
setUserManager(io.jmix.core.security.UserManager userManager) |
getConstraintEntityOp, isApplicable, setAccessManager, setConstraintEntityOp, setMetadata
getTarget, setTarget, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcut
addActionPerformedListener, addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternal
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setPrimary, setShortcut, setShortcutCombination
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisible
public static final java.lang.String ID
protected io.jmix.ui.UiComponents uiComponents
protected boolean currentPasswordRequired
protected io.jmix.core.Messages messages
protected io.jmix.core.security.UserManager userManager
protected io.jmix.ui.Notifications notifications
public ChangePasswordAction()
public ChangePasswordAction(java.lang.String id)
@Autowired protected void setMessages(io.jmix.core.Messages messages)
@Autowired public void setNotifications(io.jmix.ui.Notifications notifications)
@Autowired protected void setUiComponentProperties(io.jmix.ui.UiComponentProperties componentProperties)
@Autowired public void setUiComponents(io.jmix.ui.UiComponents uiComponents)
@Autowired public void setUserManager(io.jmix.core.security.UserManager userManager)
public void setCurrentPasswordRequired(boolean currentPasswordRequired)
protected boolean isPermitted()
isPermitted
in class io.jmix.ui.action.list.SecuredListAction
public void actionPerform(io.jmix.ui.component.Component component)
actionPerform
in interface io.jmix.ui.action.Action
actionPerform
in class io.jmix.ui.action.BaseAction
public void execute()
execute
in interface io.jmix.ui.action.Action.ExecutableAction