public abstract class SecuredListAction extends ListAction implements Action.HasSecurityConstraint
enabled
property depending on a selected item in a bound ListComponent
.BaseAction.EnabledRule
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.MainTabSheetAction, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status
Modifier and Type | Field and Description |
---|---|
protected io.jmix.core.AccessManager |
accessManager |
protected io.jmix.core.security.EntityOp |
constraintEntityOp |
protected io.jmix.core.Metadata |
metadata |
target
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visible
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE
Modifier | Constructor and Description |
---|---|
protected |
SecuredListAction(java.lang.String id) |
|
SecuredListAction(java.lang.String id,
java.lang.String shortcut) |
Modifier and Type | Method and Description |
---|---|
io.jmix.core.security.EntityOp |
getConstraintEntityOp() |
protected boolean |
isApplicable()
Callback method which is invoked by the action to determine its enabled state.
|
protected boolean |
isPermitted()
Callback method which is invoked by the action to determine its enabled state.
|
protected void |
setAccessManager(io.jmix.core.AccessManager accessManager) |
void |
setConstraintEntityOp(io.jmix.core.security.EntityOp entityOp) |
protected void |
setMetadata(io.jmix.core.Metadata metadata) |
getTarget, setTarget, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcut
actionPerform, 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
actionPerform, addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisible
protected io.jmix.core.security.EntityOp constraintEntityOp
protected io.jmix.core.AccessManager accessManager
protected io.jmix.core.Metadata metadata
protected SecuredListAction(java.lang.String id)
public SecuredListAction(java.lang.String id, @Nullable java.lang.String shortcut)
@Autowired protected void setAccessManager(io.jmix.core.AccessManager accessManager)
@Autowired protected void setMetadata(io.jmix.core.Metadata metadata)
protected boolean isApplicable()
BaseAction
isApplicable
in class BaseAction
protected boolean isPermitted()
BaseAction
isPermitted
in class BaseAction
public void setConstraintEntityOp(@Nullable io.jmix.core.security.EntityOp entityOp)
setConstraintEntityOp
in interface Action.HasSecurityConstraint
@Nullable public io.jmix.core.security.EntityOp getConstraintEntityOp()
getConstraintEntityOp
in interface Action.HasSecurityConstraint