return createDefaultPolicy(createUniqueId(parent, DEFAULT_POLICY_ID));
}
public static Policy createDefaultPolicy(String policyID)
{
final Target emptyTarget = createEmptyTarget();
final RuleCombiningAlgorithm alg = new OrderedPermitOverridesRuleAlg();
final Rule denyEverythingRule = createDefaultRule("DenyAll");
final List<Rule> rules = Collections.singletonList(denyEverythingRule);
return new Policy(URI.create(policyID), alg, DEFAULT_DESCRIPTION, emptyTarget, rules);
}