class RangerValidator {

	List<RangerPolicy> getPoliciesForResourceSignature(String serviceName, String policySignature) {
		if(LOG.isDebugEnabled()) {
			LOG.debug(String.format("==> RangerValidator.getPoliciesForResourceSignature(%s, %s)", serviceName, policySignature));
		}

		List<RangerPolicy> policies = null;
		try {
			policies = _store.getPoliciesByResourceSignature(serviceName, policySignature, true); // only look for enabled policies
		} catch (Exception e) {
			LOG.debug("Encountred exception while retrieving policies from service store!", e);
		}
		
		if(LOG.isDebugEnabled()) {
			int count = policies == null ? 0 : policies.size();
			LOG.debug(String.format("<== RangerValidator.getPoliciesForResourceSignature(%s, %s): count[%d], %s", serviceName, policySignature, count, policies));
		}
		return policies;
	}

	protected  RangerValidator(ServiceStore store);

}