Class 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 Detail

      • WebACPermission

        public WebACPermission​(URI mode,
                               URI resource)
        Parameters:
        mode - ACL access mode
        resource - 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 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