Subject.isPermitted

Checks if this Subject implies the given Permissions and returns a bool array indicating which permissions are implied. <p/> More specifically, this method should determine if each {@code Permission} in the array is {@link Permission#implies(Permission) implied} by permissions already associated with the subject. <p/> This is primarily a performance-enhancing method to help reduce the number of {@link #isPermitted} invocations over the wire in client/server systems.

@param permissions the permissions that are being checked. @return a bool array where indices correspond to the index of the permissions in the given list. A true value at an index indicates this Subject is permitted for for the associated {@code Permission} object in the list. A false value at an index indicates otherwise.

  1. bool isPermitted(string permission)
  2. bool isPermitted(Permission permission)
  3. bool[] isPermitted(string[] permissions)
  4. bool[] isPermitted(List!(Permission) permissions)
    interface Subject
    bool[]
    isPermitted

Meta