Package org.wicketstuff.security.actions
Interface WaspAction
- All Known Subinterfaces:
Access,AllActions,Enable,Inherit,Render
- All Known Implementing Classes:
AbstractWaspAction
public interface WaspAction
Immutable mapping for
Action with added logic for implies
checks. These actions are instantiated by an ActionFactory.- Author:
- marrink
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionadd(WaspAction other) Creates a new WaspAction containing both the specified actions and the actions of this WaspAction.The actionFactory that created this action.getName()booleanimplies(WaspAction other) Check if the supplied action is implied by this WaspAction.remove(WaspAction action) Creates a new WaspAction with all the actions of this action except those specified.
-
Method Details
-
getName
String getName()- Returns:
- The name of this action
- See Also:
-
implies
Check if the supplied action is implied by this WaspAction.- Parameters:
other- the action to check- Returns:
- true if the action is implied, false otherwise.
-
add
Creates a new WaspAction containing both the specified actions and the actions of this WaspAction. This method must return a new WaspAction unless this action can be returned unmodified.- Parameters:
other- the actions to add- Returns:
- a new WaspAction containing all the actions
-
remove
Creates a new WaspAction with all the actions of this action except those specified.- Parameters:
action- the actions to remove- Returns:
- a new WaspAction or this action if the specified actions were never part of this action.
-
getActionFactory
ActionFactory getActionFactory()The actionFactory that created this action.- Returns:
- factory
-