Class LegacyActionsContextImpl

java.lang.Object
ch.tocco.nice2.model.form.impl.form2.LegacyActionsContextImpl
All Implemented Interfaces:
LegacyActionsContext

@Component public class LegacyActionsContextImpl extends Object implements 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 Details

    • LegacyActionsContextImpl

      public LegacyActionsContextImpl()
  • Method Details

    • setLegacyActionsEnabled

      @Value("${nice2.forms.legacyActionsEnabled}") public void setLegacyActionsEnabled(boolean legacyActionsEnabled)
    • setDisabledLegacyActions

      @Autowired(required=false) public void setDisabledLegacyActions(List<String> disabledLegacyActions)
    • isActionEnabled

      public boolean isActionEnabled(String id)
      Specified by:
      isActionEnabled in interface LegacyActionsContext