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

    Modifier and Type
    Method
    Description
    boolean
    One WebACPermission equals another if they have the same mode and resource URIs.
    int
     
    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).
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • WebACPermission

      public WebACPermission(URI mode, URI resource)
      Parameters:
      mode - ACL access mode
      resource - resource to be accessed
  • Method Details

    • 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 interface org.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.
      Overrides:
      equals in class Object
      Parameters:
      o - object to compare to
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object