Package org.fcrepo.auth.webac
Class WebACPermission
- java.lang.Object
-
- org.fcrepo.auth.webac.WebACPermission
-
- All Implemented Interfaces:
org.apache.shiro.authz.Permission
public class WebACPermission extends Object implements org.apache.shiro.authz.Permission
A WebAC permission represents a particular mode of access (e.g., acl:read) to a particular resource. Both the mode and resource are URIs. One WebAC permission implies another if and only if their mode and resource URIs are both equal to the other's.- Author:
- peichman
-
-
Constructor Summary
Constructors Constructor Description WebACPermission(URI mode, URI resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
One WebACPermission equals another if they have the same mode and resource URIs.int
hashCode()
boolean
implies(org.apache.shiro.authz.Permission p)
One WebACPermission implies another if they are equal (i.e., have the same mode and resource URIs).String
toString()
-
-
-
Constructor Detail
-
WebACPermission
public WebACPermission(URI mode, URI resource)
- Parameters:
mode
- ACL access moderesource
- resource to be accessed
-
-
Method Detail
-
implies
public boolean implies(org.apache.shiro.authz.Permission p)
One WebACPermission implies another if they are equal (i.e., have the same mode and resource URIs).- Specified by:
implies
in interfaceorg.apache.shiro.authz.Permission
- Parameters:
p
- permission to compare to
-
equals
public boolean equals(Object o)
One WebACPermission equals another if they have the same mode and resource URIs.
-
-