public class MatchOneCollectionPermission extends CollectionPermission
action, CREATE_ACTION, DELETE_ACTION, PERMISSION_END_MSG, PERMISSION_IMPLIES_MSG, PERMISSION_NOT_IMPLIES_MSG, PERMISSION_START_MSG, permissionList, READ_ACTION, UNKNOWN_ACTION, UPDATE_ACTION| Constructor and Description |
|---|
MatchOneCollectionPermission(Collection<org.apache.shiro.authz.Permission> permissions) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
implies(org.apache.shiro.authz.Permission p)
Overrides the implies method to handle checking for the existence of one attribute - the "match
one" scenario rather than the "match all" behavior of the overridden classes.
|
addAll, clear, getAction, getPermissionList, isEmpty, setAction, toStringpublic MatchOneCollectionPermission(Collection<org.apache.shiro.authz.Permission> permissions)
public boolean implies(org.apache.shiro.authz.Permission p)
implies in interface org.apache.shiro.authz.Permissionimplies in class CollectionPermissionp - the permission to check for behavior/functionality comparison.true if this current instance implies the specified Permission
argument, false otherwise.This work is licensed under a Creative Commons Attribution 4.0 International License.