Class AllPermissions

  • All Implemented Interfaces:
    Serializable

    public class AllPermissions
    extends ActionPermission
    Permission that implies all other permissions, when created with the "all" action. If any other action then the "all" action is used only ActionPermissions implying those actions are implied. Permissions that do not subclass the ActionPermission are always implied. Note that actions registered with the ActionFactory after this permission was created are not automatically implied.
    Author:
    marrink
    See Also:
    Serialized Form
    • Constructor Detail

      • AllPermissions

        public AllPermissions​(String name,
                              org.wicketstuff.security.actions.ActionFactory factory)
        Preferred constructor. All other permissions are implied by this permission. Equal to using new AllPermissions(name,factory.getAction(AllAction.class)); or not specifying the action part in the policy file.
        Parameters:
        name - the name of this permission.
        factory - a factory capable of creating SwarmActions
      • AllPermissions

        public AllPermissions​(String name,
                              org.wicketstuff.security.actions.WaspAction actions)
        Creates a new AllPermissions that does not imply all other permissions but only those who's actions it can imply. Thus when supplied with a Render action only render actions are implied not Enable actions.
        Parameters:
        name -
        actions -
        See Also:
        implies(Permission)