Class SecurityActionModifier

java.lang.Object
ch.tocco.nice2.netui.impl.actions.security.SecurityActionModifier
All Implemented Interfaces:
ActionModifier

@Component @Order(-100) public class SecurityActionModifier extends Object implements ActionModifier

This modifier is used to disable/remove any actions without appropriate permission.

If the action has a property ActionFactory.PERFORM_DENIED_KEY set to the value ActionFactory.REMOVE_ACTION any action without perform permission is removed. If the value is ActionFactory.DISABLE_ACTION or null the mentioned action is disabled.

Note, this is only applied if a given action is enabled. This modifier should only make sure that no action is accidently enabled.

This action modifier is for the legacy client. Also see SecurityActionFormInterceptor for the new client.
  • Constructor Details

  • Method Details

    • postModify

      public void postModify(ActionGroupModel actionGroup, Situation situation)
      Description copied from interface: ActionModifier

      Modify actions in this group.

      Note, that the specified group contains all actions that are passed to the client. The specified group itself is a wrapper for conveniently modifying the actions.

      Specified by:
      postModify in interface ActionModifier
      Parameters:
      actionGroup - contains all actions previously created by the ActionFactorys
      situation - the situation the actions has been created for