Additional tracing statements.
This commit is contained in:
parent
371bf2e5cf
commit
5355a6eed8
|
@ -108,10 +108,14 @@ public class AuthorizationInterceptor implements IRuleApplier {
|
||||||
theRequestDetails.getUserData().put(myRequestRuleListKey, rules);
|
theRequestDetails.getUserData().put(myRequestRuleListKey, rules);
|
||||||
}
|
}
|
||||||
Set<AuthorizationFlagsEnum> flags = getFlags();
|
Set<AuthorizationFlagsEnum> flags = getFlags();
|
||||||
ourLog.trace("Applying {} rules to render an auth decision for operation {}", rules.size(), theOperation);
|
ourLog.trace("Applying {} rules to render an auth decision for operation {}, theInputResource type={}, theOutputResource type={} ", rules.size(), theOperation,
|
||||||
|
((theInputResource != null) && (theInputResource.getIdElement() != null)) ? theInputResource.getIdElement().getResourceType() : "",
|
||||||
|
((theOutputResource != null) && (theOutputResource.getIdElement() != null)) ? theOutputResource.getIdElement().getResourceType() : "");
|
||||||
|
|
||||||
Verdict verdict = null;
|
Verdict verdict = null;
|
||||||
for (IAuthRule nextRule : rules) {
|
for (IAuthRule nextRule : rules) {
|
||||||
|
ourLog.trace("Rule being applied - {}",
|
||||||
|
nextRule);
|
||||||
verdict = nextRule.applyRule(theOperation, theRequestDetails, theInputResource, theInputResourceId, theOutputResource, this, flags, thePointcut);
|
verdict = nextRule.applyRule(theOperation, theRequestDetails, theInputResource, theInputResourceId, theOutputResource, this, flags, thePointcut);
|
||||||
if (verdict != null) {
|
if (verdict != null) {
|
||||||
ourLog.trace("Rule {} returned decision {}", nextRule, verdict.getDecision());
|
ourLog.trace("Rule {} returned decision {}", nextRule, verdict.getDecision());
|
||||||
|
|
Loading…
Reference in New Issue