Lines Matching defs:policies
44 private final List<Policy> policies = new LinkedList<Policy>();
50 * @param subject object to which the policies are attached. Must not be {@code null}.
67 * @param subject object to which the policies are attached. Must not be {@code null}.
68 * @param policies first policy attached to the subject. Must not be {@code null}.
71 * in case {@code policies} argument represents empty collection.
73 public PolicySubject(Object subject, Collection<Policy> policies) throws IllegalArgumentException {
74 if (subject == null || policies == null) {
78 if (policies.isEmpty()) {
83 this.policies.addAll(policies);
97 this.policies.add(policy);
101 * Returns the effective policy of the subject, i.e. all policies of the subject
107 return merger.merge(policies);
142 for (Policy policy : policies) {