Class LegacyActionsContextImpl
java.lang.Object
ch.tocco.nice2.model.form.impl.form2.LegacyActionsContextImpl
- All Implemented Interfaces:
LegacyActionsContext
How to control which legacy actions should be enabled:
1. Application property `nice2.forms.legacyActionsEnabled`:
This is the main switch to enable the legacy actions.
If `false`, *all* standard and customer legacy actions are disabled (this is the default).
If `true`, legacy actions are enabled in general (but we can control which ones in particular - see the following
configuration points).
2. Configuration point `DisabledLegacyAction`:
If the application property above is set to `true`, all standard legacy actions are enabled *except* of the ones
that got added to this configuration point.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setDisabledLegacyActions
(List<String> disabledLegacyActions) void
setLegacyActionsEnabled
(boolean legacyActionsEnabled)
-
Constructor Details
-
LegacyActionsContextImpl
public LegacyActionsContextImpl()
-
-
Method Details
-
setLegacyActionsEnabled
@Value("${nice2.forms.legacyActionsEnabled}") public void setLegacyActionsEnabled(boolean legacyActionsEnabled) -
setDisabledLegacyActions
-
isActionEnabled
- Specified by:
isActionEnabled
in interfaceLegacyActionsContext
-