org.apache.shiro.authz.permission
Class AllPermission
java.lang.Object
org.apache.shiro.authz.permission.AllPermission
- All Implemented Interfaces:
- Serializable, Permission
public class AllPermission
- extends Object
- implements Permission, Serializable
An all AllPermission instance is one that always implies any other permission; that is, its
implies
method always returns true.
You should be very careful about the users, roles, and/or groups to which this permission is assigned since
those respective entities will have the ability to do anything. As such, an instance of this class
is typically only assigned only to "root" or "administrator" users or roles.
- Since:
- 0.1
- See Also:
- Serialized Form
Method Summary |
boolean |
implies(Permission p)
Always returns true, indicating any Subject granted this permission can do anything. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AllPermission
public AllPermission()
implies
public boolean implies(Permission p)
- Always returns true, indicating any Subject granted this permission can do anything.
- Specified by:
implies
in interface Permission
- Parameters:
p
- the Permission to check for implies logic.
- Returns:
- true always, indicating any Subject grated this permission can do anything.
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.