Class PermissionUtils

java.lang.Object
ch.tocco.nice2.security.spi.util.PermissionUtils

public class PermissionUtils extends Object
  • Method Details

    • toString

      public static String toString(Permission permission)
    • toString

      public static String toString(Permission permission, @Nullable @Nullable Object... values)
    • canSkipRule

      public static boolean canSkipRule(Guard.Decision[] currentDecisions, Rule nextRule)
      A rule might be ok to skip, if at least one other rule has been previously considered AND: * the rule might grant permissions, but the decision to grant has already been made * the rule might deny permissions, but the decision to deny has already been made
      Parameters:
      currentDecisions - the current decision
      nextRule - the next rule to be examined
      Returns:
      if the rule can be skipped without further examination