Searched defs:policyResourceDelegate (Results 1 - 8 of 8) sorted by relevance

/forgerock/openam-v13/openam-uma/src/main/java/org/forgerock/openam/uma/rest/
H A DPolicyGraph.java134 * @param policyResourceDelegate The delegate to use for updating the policy engine.
138 PolicyResourceDelegate policyResourceDelegate) {
160 policyResourceDelegate, newRights, createdPolicies, updatedPolicies, scope, true, promises,
166 policyResourceDelegate, lostRights, createdPolicies, updatedPolicies, scope, false,
175 promises.add(policyResourceDelegate.createPolicies(context, createdPolicies));
178 promises.add(policyResourceDelegate.updatePolicies(context, updatedPolicies));
189 * @param policyResourceDelegate To be used for deleting any policies that are emptied of scopes (actions).
200 PolicyResourceDelegate policyResourceDelegate, Set<String> allMovingRights, Set<JsonValue> createdPolicies,
237 promises.add(policyResourceDelegate.deletePolicies(context, singleton(policy.get("_id").asString())));
137 update(Context context, PolicyResourceDelegate policyResourceDelegate) argument
199 moveScope(Map<String, JsonValue> moveFrom, Map<String, JsonValue> moveTo, Context context, PolicyResourceDelegate policyResourceDelegate, Set<String> allMovingRights, Set<JsonValue> createdPolicies, Set<JsonValue> updatedPolicies, String scope, boolean newPolicyActive, List<Promise<List<ResourceResponse>, ResourceException>> promises, String user) argument
H A DUmaPolicyServiceImpl.java99 private final PolicyResourceDelegate policyResourceDelegate; field in class:UmaPolicyServiceImpl
112 * @param policyResourceDelegate An instance of the {@code PolicyResourceDelegate}.
123 public UmaPolicyServiceImpl(PolicyResourceDelegate policyResourceDelegate, argument
128 this.policyResourceDelegate = policyResourceDelegate;
258 return policyResourceDelegate.createPolicies(context, umaPolicy.asUnderlyingPolicies(userId));
330 return policyResourceDelegate.queryPolicies(context, queryRequest, policyGraph)
339 return policyGraph.update(context, policyResourceDelegate).then(
412 return policyResourceDelegate.queryPolicies(context, request)
464 policyResourceDelegate
[all...]
/forgerock/openam-v13/openam-uma/src/test/java/org/forgerock/openam/uma/rest/
H A DUmaPolicyServiceImplDelegationTest.java103 private PolicyResourceDelegate policyResourceDelegate; field in class:UmaPolicyServiceImplDelegationTest
146 policyService = new UmaPolicyServiceImpl(policyResourceDelegate, resourceSetStoreFactory, lazyAuditLogger,
394 given(policyResourceDelegate.createPolicies(any(Context.class), anySetOf(JsonValue.class)))
399 given(policyResourceDelegate.queryPolicies(any(Context.class), any(QueryRequest.class)))
401 given(policyResourceDelegate.queryPolicies(any(Context.class), any(QueryRequest.class),
423 given(policyResourceDelegate.queryPolicies(any(Context.class), any(QueryRequest.class)))
432 given(policyResourceDelegate.updatePolicies(any(Context.class), Matchers.<Set<JsonValue>>anyObject()))
434 given(policyResourceDelegate.queryPolicies(any(Context.class), any(QueryRequest.class),
467 verify(policyResourceDelegate).createPolicies(any(Context.class), policyCaptor.capture());
480 verify(policyResourceDelegate, neve
[all...]
H A DUmaPolicyServiceImplTest.java99 private PolicyResourceDelegate policyResourceDelegate; field in class:UmaPolicyServiceImplTest
112 policyResourceDelegate = mock(PolicyResourceDelegate.class);
131 policyService = new UmaPolicyServiceImpl(policyResourceDelegate, resourceSetStoreFactory, lazyAuditLogger,
267 given(policyResourceDelegate.createPolicies(eq(context), Matchers.<Set<JsonValue>>anyObject()))
274 InOrder inOrder = inOrder(resourceDelegationFilter, policyResourceDelegate, resourceDelegationFilter);
276 inOrder.verify(policyResourceDelegate).createPolicies(eq(context), anySetOf(JsonValue.class));
303 given(policyResourceDelegate.queryPolicies(eq(context), Matchers.<QueryRequest>anyObject()))
311 verify(policyResourceDelegate, never()).createPolicies(eq(context), anySetOf(JsonValue.class));
327 given(policyResourceDelegate.queryPolicies(eq(context), Matchers.<QueryRequest>anyObject()))
329 given(policyResourceDelegate
[all...]
/forgerock/openam/openam-uma/src/main/java/org/forgerock/openam/uma/rest/
H A DPolicyGraph.java134 * @param policyResourceDelegate The delegate to use for updating the policy engine.
138 PolicyResourceDelegate policyResourceDelegate) {
160 policyResourceDelegate, newRights, createdPolicies, updatedPolicies, scope, true, promises,
166 policyResourceDelegate, lostRights, createdPolicies, updatedPolicies, scope, false,
175 promises.add(policyResourceDelegate.createPolicies(context, createdPolicies));
178 promises.add(policyResourceDelegate.updatePolicies(context, updatedPolicies));
189 * @param policyResourceDelegate To be used for deleting any policies that are emptied of scopes (actions).
200 PolicyResourceDelegate policyResourceDelegate, Set<String> allMovingRights, Set<JsonValue> createdPolicies,
237 promises.add(policyResourceDelegate.deletePolicies(context, singleton(policy.get("_id").asString())));
137 update(Context context, PolicyResourceDelegate policyResourceDelegate) argument
199 moveScope(Map<String, JsonValue> moveFrom, Map<String, JsonValue> moveTo, Context context, PolicyResourceDelegate policyResourceDelegate, Set<String> allMovingRights, Set<JsonValue> createdPolicies, Set<JsonValue> updatedPolicies, String scope, boolean newPolicyActive, List<Promise<List<ResourceResponse>, ResourceException>> promises, String user) argument
H A DUmaPolicyServiceImpl.java99 private final PolicyResourceDelegate policyResourceDelegate; field in class:UmaPolicyServiceImpl
112 * @param policyResourceDelegate An instance of the {@code PolicyResourceDelegate}.
123 public UmaPolicyServiceImpl(PolicyResourceDelegate policyResourceDelegate, argument
128 this.policyResourceDelegate = policyResourceDelegate;
258 return policyResourceDelegate.createPolicies(context, umaPolicy.asUnderlyingPolicies(userId));
330 return policyResourceDelegate.queryPolicies(context, queryRequest, policyGraph)
339 return policyGraph.update(context, policyResourceDelegate).then(
412 return policyResourceDelegate.queryPolicies(context, request)
464 policyResourceDelegate
[all...]
/forgerock/openam/openam-uma/src/test/java/org/forgerock/openam/uma/rest/
H A DUmaPolicyServiceImplDelegationTest.java105 private PolicyResourceDelegate policyResourceDelegate; field in class:UmaPolicyServiceImplDelegationTest
149 policyService = new UmaPolicyServiceImpl(policyResourceDelegate, resourceSetStoreFactory, lazyAuditLogger,
401 given(policyResourceDelegate.createPolicies(any(Context.class), anySetOf(JsonValue.class)))
406 given(policyResourceDelegate.queryPolicies(any(Context.class), any(QueryRequest.class)))
408 given(policyResourceDelegate.queryPolicies(any(Context.class), any(QueryRequest.class),
430 given(policyResourceDelegate.queryPolicies(any(Context.class), any(QueryRequest.class)))
439 given(policyResourceDelegate.updatePolicies(any(Context.class), Matchers.<Set<JsonValue>>anyObject()))
441 given(policyResourceDelegate.queryPolicies(any(Context.class), any(QueryRequest.class),
474 verify(policyResourceDelegate).createPolicies(any(Context.class), policyCaptor.capture());
487 verify(policyResourceDelegate, neve
[all...]
H A DUmaPolicyServiceImplTest.java103 private PolicyResourceDelegate policyResourceDelegate; field in class:UmaPolicyServiceImplTest
117 policyResourceDelegate = mock(PolicyResourceDelegate.class);
136 policyService = new UmaPolicyServiceImpl(policyResourceDelegate, resourceSetStoreFactory, lazyAuditLogger,
280 given(policyResourceDelegate.createPolicies(eq(context), Matchers.<Set<JsonValue>>anyObject()))
287 InOrder inOrder = inOrder(resourceDelegationFilter, policyResourceDelegate, resourceDelegationFilter);
289 inOrder.verify(policyResourceDelegate).createPolicies(eq(context), anySetOf(JsonValue.class));
316 given(policyResourceDelegate.queryPolicies(eq(context), Matchers.<QueryRequest>anyObject()))
324 verify(policyResourceDelegate, never()).createPolicies(eq(context), anySetOf(JsonValue.class));
340 given(policyResourceDelegate.queryPolicies(eq(context), Matchers.<QueryRequest>anyObject()))
342 given(policyResourceDelegate
[all...]

Completed in 91 milliseconds