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.-
Field Summary
Fields inherited from interface ch.tocco.nice2.netui.spi.actions.ActionModifier
HIGH_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
postModify
(ActionGroupModel actionGroup, Situation situation) Modify actions in this group.
-
Constructor Details
-
SecurityActionModifier
-
-
Method Details
-
postModify
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 interfaceActionModifier
- Parameters:
actionGroup
- contains all actions previously created by theActionFactory
ssituation
- the situation the actions has been created for
-