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(IdentifierBundle whoToAuth, RequestedAction whatToAuth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlog(PolicyIface 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(IdentifierBundle whoToAuth, RequestedAction whatToAuth)
-
-
Method Detail
-
log
public void log(PolicyIface 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)
-
-