Class SecuredBaseAction<A extends SecuredBaseAction<A>>

All Implemented Interfaces:
Action, HasShortcutCombination
Direct Known Subclasses:
DialogAction, DynamicLocalizedMessageEditAction, FragmentAction, GenericFilterAction, ListDataComponentAction, PickerAction, UserMenuAction, ViewAction

public class SecuredBaseAction<A extends SecuredBaseAction<A>> extends ObservableBaseAction<A>
  • Field Details

  • Constructor Details

    • SecuredBaseAction

      public SecuredBaseAction(String id)
  • Method Details

    • refreshState

      public void refreshState()
      Description copied from interface: Action
      Refreshes internal state of the action to initialize enabled, visible, text, icon, etc. properties depending on programmatically set values and user permissions set at runtime.

      For example, this method is called by visual components holding actions when they are bound to data. At this moment the action can find out what entity it is connected to and change its state according to the user permissions.

      Specified by:
      refreshState in interface Action
      Overrides:
      refreshState in class BaseAction<A extends SecuredBaseAction<A>>
    • isPermitted

      protected boolean isPermitted()
    • isEnabledByRule

      protected boolean isEnabledByRule()
    • addEnabledRule

      public void addEnabledRule(SecuredBaseAction.EnabledRule enabledRule)
      Add new enabled rule for the action.
      Parameters:
      enabledRule - boolean rule for the action enabled state
    • removeEnabledRule

      public void removeEnabledRule(SecuredBaseAction.EnabledRule enabledRule)
      Remove enabled rule.
      Parameters:
      enabledRule - boolean rule for the action enabled state