Package io.jmix.flowui.action.list
Class SecuredListDataComponentAction<A extends SecuredListDataComponentAction<A,E>,E>
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<A,E>
- All Implemented Interfaces:
ExecutableAction
,SecuredAction
,SecurityConstraintAction
,TargetAction<ListDataComponent<E>>
,Action
,HasShortcutCombination
- Direct Known Subclasses:
AssignToUsersAction
,ChangePasswordAction
,EditAction
,ExcludeAction
,ItemTrackingAction
,ReadAction
,RemoveAction
,ResetPasswordAction
,ShowEntityInfoAction
,ShowRoleAssignmentsAction
public abstract class SecuredListDataComponentAction<A extends SecuredListDataComponentAction<A,E>,E>
extends ListDataComponentAction<A,E>
implements SecurityConstraintAction
Action that changes its
enabled
property depending on a selected item in a bound Grid
.-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.action.SecuredBaseAction
SecuredBaseAction.EnabledRule
-
Field Summary
Modifier and TypeFieldDescriptionprotected AccessManager
protected org.springframework.context.ApplicationContext
protected EntityOp
protected 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 boolean
protected boolean
protected void
setAccessManager
(AccessManager accessManager) protected void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setConstraintEntityOp
(EntityOp entityOp) protected void
setMetadata
(Metadata metadata) withConstraintEntityOp
(EntityOp entityOp) Methods inherited from class io.jmix.flowui.action.list.ListDataComponentAction
actionPerform, attachSelectionListener, checkTarget, checkTargetItems, getTarget, initAction, 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.action.ExecutableAction
execute
Methods inherited from interface io.jmix.flowui.kit.component.HasShortcutCombination
getShortcutCombination, setShortcutCombination
-
Field Details
-
constraintEntityOp
-
accessManager
-
metadata
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
SecuredListDataComponentAction
-
-
Method Details
-
setAccessManager
-
setMetadata
-
setApplicationContext
@Autowired protected void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) -
isApplicable
protected boolean isApplicable()- Overrides:
isApplicable
in classBaseAction
-
isPermitted
protected boolean isPermitted()- Overrides:
isPermitted
in classSecuredBaseAction
-
setConstraintEntityOp
- Specified by:
setConstraintEntityOp
in interfaceSecurityConstraintAction
-
getConstraintEntityOp
- Specified by:
getConstraintEntityOp
in interfaceSecurityConstraintAction
-
withConstraintEntityOp
-