public String getStatusName() { try { return Document.getStatusName(getResource()); } catch (MissingAttributeException e) { return null; } }
@Override public AuthorizationDecision evaluate( DecisionRequest<HmpUserDetails, DocumentAction, Object> request) { try { String status = Document.getStatusName(request.getResource()); PolicySet policySet = getPolicySet(request.getAction(), status); AuthorizationDecision decision = policySet.evaluate(request); return decision; } catch (MissingAttributeException e) { return AuthorizationDecision.valueOf(this, e); } }