Class PolicyDecisionLogger
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.auth.policy.PolicyDecisionLogger
-
public class PolicyDecisionLogger extends Object
If enabled in the developer settings (and log levels), log each PolicyDecision (subject to restrictions). Some restrictions apply to the logger as a whole. Others apply to the particular policy or the particular decision.
-
-
Constructor Summary
Constructors Constructor Description PolicyDecisionLogger(AuthorizationRequest ar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlog(Policy policy, PolicyDecision pd)If the logger and the policy and the decision all pass the restrictions, write to the log.voidlogNoDecision(PolicyDecision pd)
-
-
-
Constructor Detail
-
PolicyDecisionLogger
public PolicyDecisionLogger(AuthorizationRequest ar)
-
-
Method Detail
-
log
public void log(Policy policy, PolicyDecision pd)
If the logger and the policy and the decision all pass the restrictions, write to the log. A null decision is treated as inconclusive.
-
logNoDecision
public void logNoDecision(PolicyDecision pd)
-
-