@PreAuthorize("hasRole('POLICY_READ')")
@RequestMapping(method = RequestMethod.GET, value = "/account/global/read")
public AccountPolicyTO getGlobalAccountPolicy() {
LOG.debug("Reading global account policy");
AccountPolicy policy = policyDAO.getGlobalAccountPolicy();
if (policy == null) {
throw new NotFoundException("No account policy found");
}
auditManager.audit(Category.policy, PolicySubCategory.read, Result.success,
"Successfully read global account policy: " + policy.getId());
return (AccountPolicyTO) binder.getPolicyTO(policy);
}