Package ch.tocco.nice2.security.spi.util
Class PermissionUtils
java.lang.Object
ch.tocco.nice2.security.spi.util.PermissionUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 madestatic String
toString
(Permission permission) static String
toString
(Permission permission, @Nullable Object... values)
-
Method Details
-
toString
-
toString
-
canSkipRule
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 decisionnextRule
- the next rule to be examined- Returns:
- if the rule can be skipped without further examination
-