@Component(value="cuba_ExcludeAction") @Scope(value="prototype") public class ExcludeAction extends RemoveAction implements Action.DisabledWhenScreenReadOnly
RemoveAction variant that excludes instances from the list, but doesn't delete them from DB.
 
 In order to provide your own implementation globally, create a subclass and register it in web-spring.xml,
 for example:
 
<bean id="cuba_ExcludeAction" class="com.company.sample.gui.MyExcludeAction" scope="prototype"/>Also, use
create() static methods instead of constructors when creating the action programmatically.RemoveAction.AfterRemoveHandlerBaseAction.EnabledRuleAction.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.BeforeActionPerformedHandler, Action.DisabledWhenScreenReadOnly, Action.ExecutableAction, Action.HasBeforeActionPerformedHandler, Action.HasOpenType, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.SecuredAction, Action.Status| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | ACTION_ID | 
| protected Metadata | metadata | 
afterRemoveHandler, autocommit, beforeActionPerformedHandler, confirm, confirmationMessage, confirmationTitleconstraintCode, constraintOperationType, securitytargetcaption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visiblePROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE| Constructor and Description | 
|---|
| ExcludeAction(ListComponent target)The simplest constructor. | 
| ExcludeAction(ListComponent target,
             boolean autocommit,
             boolean confirm)Constructor that allows to specify autocommit and confirm value. | 
| ExcludeAction(ListComponent target,
             boolean autocommit,
             boolean confirm,
             java.lang.String id)Constructor that allows to specify all parameters. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | actionPerform(Component component)This method is invoked by the action owner component. | 
| protected boolean | checkRemovePermission() | 
| static ExcludeAction | create(ListComponent target)Creates an action with default id. | 
| static ExcludeAction | create(ListComponent target,
      boolean autocommit,
      boolean confirm)Creates an action with default id. | 
| static ExcludeAction | create(ListComponent target,
      boolean autocommit,
      boolean confirm,
      java.lang.String id)Creates an action with the given id. | 
| protected void | doRemove(java.util.Set<Entity> selected,
        boolean autocommit) | 
afterRemove, confirmAndRemove, create, create, getBeforeActionPerformedHandler, getConfirmationMessage, getConfirmationTitle, isAutocommit, isConfirm, isPermitted, remove, setAfterRemoveHandler, setAutocommit, setBeforeActionPerformedHandler, setConfirm, setConfirmationMessage, setConfirmationTitlegetConstraintCode, getConstraintOperationType, isApplicable, setConstraintCode, setConstraintOperationTypegetTarget, setTarget, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcutaddActionPerformedListener, addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternaladdOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDefaultCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setIconFromSet, setPrimary, setShortcut, setShortcutCombinationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setIconFromSet, setShortcut, setShortcutCombination, setVisiblepublic static final java.lang.String ACTION_ID
protected Metadata metadata
public ExcludeAction(ListComponent target)
target - component containing this actionpublic ExcludeAction(ListComponent target, boolean autocommit, boolean confirm)
target - component containing this actionautocommit - whether to commit datasource immediatelyconfirm - whether to show the confirmation dialog to userpublic ExcludeAction(ListComponent target, boolean autocommit, boolean confirm, java.lang.String id)
target - component containing this actionautocommit - whether to commit datasource immediatelyconfirm - whether to show the confirmation dialog to userid - action's namepublic static ExcludeAction create(ListComponent target)
target - component containing this actionpublic static ExcludeAction create(ListComponent target, boolean autocommit, boolean confirm)
target - component containing this actionautocommit - whether to commit datasource immediatelyconfirm - whether to show the confirmation dialog to userpublic static ExcludeAction create(ListComponent target, boolean autocommit, boolean confirm, java.lang.String id)
target - component containing this actionautocommit - whether to commit datasource immediatelyconfirm - whether to show the confirmation dialog to userid - action's nameprotected boolean checkRemovePermission()
checkRemovePermission in class RemoveActionpublic void actionPerform(Component component)
RemoveActionactionPerform in interface ActionactionPerform in class RemoveActioncomponent - component invoking the actionprotected void doRemove(java.util.Set<Entity> selected, boolean autocommit)
doRemove in class RemoveAction