Searched defs:promise (Results 1 - 18 of 18) sorted by relevance

/forgerock/openam-v13/openam-entitlements/src/test/java/org/forgerock/openam/entitlement/rest/
H A DEntitlementTestUtils.java27 import org.forgerock.util.promise.Promise;
36 protected static void assertQueryPromiseFailedWithCodes(Promise<QueryResponse, ResourceException> promise, argument
39 promise.getOrThrowUninterruptibly();
48 protected static void assertResourcePromiseFailedWithCodes(Promise<ResourceResponse, ResourceException> promise, argument
51 assertThat(promise).failedWithResourceException().withCode(resourceErrorCode);
53 assertThat(promise).failedWithResourceException().withCause().isInstanceOf(EntitlementException.class)
/forgerock/openam/openam-push-notification/src/main/java/org/forgerock/openam/services/push/dispatch/
H A DMessagePromise.java23 import org.forgerock.util.promise.PromiseImpl;
26 * A MessagePromise is an encapsulation of a promise and a set of predicates that must be (successfully) applied
31 private final PromiseImpl<JsonValue, Exception> promise; field in class:MessagePromise
35 * Generate a new MessagePromise with the supplied promise and predicates.
37 * @param promise The promise, likely retrieved from the MessageDispatcher or similar.
40 public MessagePromise(PromiseImpl<JsonValue, Exception> promise, Set<Predicate> predicates) { argument
42 Reject.ifNull(promise);
44 this.promise = promise;
[all...]
/forgerock/openam/openam-entitlements/src/test/java/org/forgerock/openam/entitlement/rest/
H A DEntitlementTestUtils.java27 import org.forgerock.util.promise.Promise;
36 protected static void assertQueryPromiseFailedWithCodes(Promise<QueryResponse, ResourceException> promise, argument
39 promise.getOrThrowUninterruptibly();
48 protected static void assertResourcePromiseFailedWithCodes(Promise<ResourceResponse, ResourceException> promise, argument
51 assertThat(promise).failedWithResourceException().withCode(resourceErrorCode);
53 assertThat(promise).failedWithResourceException().withCause().isInstanceOf(EntitlementException.class)
/forgerock/openam-v13/openam-entitlements/src/main/java/org/forgerock/openam/entitlement/rest/
H A DApplicationV1FilterTransformer.java19 import static org.forgerock.util.promise.Promises.*;
41 import org.forgerock.util.promise.Promise;
106 * @param promise The current response.
108 * @return a v1 compliant response-promise.
110 public Promise<ResourceResponse, ResourceException> transform(Promise<ResourceResponse, ResourceException> promise, argument
112 return promise
134 * @param promise The current response.
139 * @return a v1 compliant response-promise.
141 public Promise<QueryResponse, ResourceException> transform(Promise<QueryResponse, ResourceException> promise, argument
145 return promise
[all...]
H A DPolicyV1Filter.java49 import org.forgerock.util.promise.Promise;
50 import org.forgerock.util.promise.ResultHandler;
277 private Promise<ResourceResponse, ResourceException> transform(Promise<ResourceResponse, ResourceException> promise) { argument
278 return promise
/forgerock/openam/openam-entitlements/src/main/java/org/forgerock/openam/entitlement/rest/
H A DApplicationV1FilterTransformer.java19 import static org.forgerock.util.promise.Promises.*;
41 import org.forgerock.util.promise.Promise;
107 * @param promise The current response.
109 * @return a v1 compliant response-promise.
111 public Promise<ResourceResponse, ResourceException> transform(Promise<ResourceResponse, ResourceException> promise, argument
113 return promise
135 * @param promise The current response.
140 * @return a v1 compliant response-promise.
142 public Promise<QueryResponse, ResourceException> transform(Promise<QueryResponse, ResourceException> promise, argument
146 return promise
[all...]
H A DPolicyV1Filter.java49 import org.forgerock.util.promise.Promise;
50 import org.forgerock.util.promise.ResultHandler;
277 private Promise<ResourceResponse, ResourceException> transform(Promise<ResourceResponse, ResourceException> promise) { argument
278 return promise
/forgerock/openam-v13/openam-uma/src/main/java/org/forgerock/openam/uma/rest/
H A DPendingRequestResource.java21 import static org.forgerock.util.promise.Promises.*;
45 import org.forgerock.util.promise.Promise;
46 import org.forgerock.util.promise.Promises;
117 private Promise<ActionResponse, ResourceException> handlePendingRequestApproval(Promise<Void, ResourceException> promise) { argument
118 return handlePendingRequestApproval(Collections.singletonList(promise));
/forgerock/openam-v13/openam-uma/src/test/java/org/forgerock/openam/uma/rest/
H A DUmaEnabledFilterTest.java22 import static org.forgerock.util.promise.Promises.newResultPromise;
51 import org.forgerock.util.promise.Promise;
87 .thenReturn(promise(newActionResponse(null)));
89 .thenReturn(promise(newResourceResponse(null, null, null)));
91 .thenReturn(promise(newResourceResponse(null, null, null)));
93 .thenReturn(promise(newResourceResponse(null, null, null)));
95 .thenReturn(promise(newQueryResponse()));
97 .thenReturn(promise(newResourceResponse(null, null, null)));
99 .thenReturn(promise(newResourceResponse(null, null, null)));
102 private <V> Promise<V, ResourceException> promise( method in class:UmaEnabledFilterTest
133 checkResult(boolean expectFailure, Promise<?, ResourceException> promise) argument
[all...]
/forgerock/openam/openam-uma/src/main/java/org/forgerock/openam/uma/rest/
H A DPendingRequestResource.java31 import static org.forgerock.util.promise.Promises.newResultPromise;
68 import org.forgerock.util.promise.Promise;
69 import org.forgerock.util.promise.Promises;
202 private Promise<ActionResponse, ResourceException> handlePendingRequestApproval(Promise<Void, ResourceException> promise) { argument
203 return handlePendingRequestApproval(Collections.singletonList(promise));
/forgerock/openam/openam-uma/src/test/java/org/forgerock/openam/uma/rest/
H A DUmaEnabledFilterTest.java22 import static org.forgerock.util.promise.Promises.newResultPromise;
52 import org.forgerock.util.promise.Promise;
92 .thenReturn(promise(newActionResponse(null)));
94 .thenReturn(promise(newResourceResponse(null, null, null)));
96 .thenReturn(promise(newResourceResponse(null, null, null)));
98 .thenReturn(promise(newResourceResponse(null, null, null)));
100 .thenReturn(promise(newQueryResponse()));
102 .thenReturn(promise(newResourceResponse(null, null, null)));
104 .thenReturn(promise(newResourceResponse(null, null, null)));
112 private <V> Promise<V, ResourceException> promise( method in class:UmaEnabledFilterTest
143 checkResult(boolean expectFailure, Promise<?, ResourceException> promise) argument
[all...]
/forgerock/openam-v13/openam-rest/src/main/java/org/forgerock/openam/rest/fluent/
H A DAuditFilter.java41 import org.forgerock.util.promise.ExceptionHandler;
42 import org.forgerock.util.promise.Promise;
43 import org.forgerock.util.promise.ResultHandler;
44 import org.forgerock.util.promise.RuntimeExceptionHandler;
219 private <T extends Response> Promise<T, ResourceException> auditResponse(Promise<T, ResourceException> promise, argument
221 return promise
/forgerock/openam-v13/openam-core-rest/src/main/java/org/forgerock/openam/core/rest/sms/
H A DAuthenticationChainsFilter.java20 import static org.forgerock.util.promise.Promises.newResultPromise;
49 import org.forgerock.util.promise.Promise;
165 private Promise<ResourceResponse, ResourceException> wrap(Promise<ResourceResponse, ResourceException> promise) { argument
166 return promise
/forgerock/openidm-v4/openidm-audit/src/main/java/org/forgerock/openidm/audit/filter/
H A DAuditFilter.java57 import org.forgerock.util.promise.ExceptionHandler;
58 import org.forgerock.util.promise.Promise;
59 import org.forgerock.util.promise.ResultHandler;
96 Promise<ActionResponse, ResourceException> promise = next.handleAction(context, request);
97 logAuditAccessEntry(context, state, promise);
99 return promise;
110 Promise<ResourceResponse, ResourceException> promise = next.handleCreate(context, request);
111 logAuditAccessEntry(context, state, promise);
113 return promise;
124 Promise<ResourceResponse, ResourceException> promise
186 logAuditAccessEntry(final Context context, final AuditState state, final Promise<? extends Response, ResourceException> promise) argument
[all...]
/forgerock/openam/openam-rest/src/main/java/org/forgerock/openam/rest/fluent/
H A DAuditFilter.java41 import org.forgerock.util.promise.ExceptionHandler;
42 import org.forgerock.util.promise.Promise;
43 import org.forgerock.util.promise.ResultHandler;
44 import org.forgerock.util.promise.RuntimeExceptionHandler;
219 private <T extends Response> Promise<T, ResourceException> auditResponse(Promise<T, ResourceException> promise, argument
221 return promise
/forgerock/openam/openam-core-rest/src/main/java/org/forgerock/openam/core/rest/sms/
H A DAuthenticationChainsFilter.java20 import static org.forgerock.util.promise.Promises.newResultPromise;
48 import org.forgerock.util.promise.Promise;
164 private Promise<ResourceResponse, ResourceException> wrap(Promise<ResourceResponse, ResourceException> promise) { argument
165 return promise
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/
H A DHTTPClientConnection.java114 final LdapPromiseImpl<Result> promise; field in class:HTTPClientConnection.OperationWithPromise
116 public OperationWithPromise(Operation operation, LdapPromiseImpl<Result> promise) argument
119 this.promise = promise;
129 /** Search Operation with a promise. */
136 Operation operation, LdapPromiseImpl<Result> promise, SearchResultHandler entryHandler)
138 super(operation, promise);
420 op.promise.handleResult(getResponseResult(operation));
430 op.promise.handleException(e);
639 * associated promise an
135 SearchOperationWithPromise( Operation operation, LdapPromiseImpl<Result> promise, SearchResultHandler entryHandler) argument
650 addOperationInProgress(Operation operation, LdapPromiseImpl<Result> promise, SearchResultHandler searchResultHandler) argument
[all...]
/forgerock/openam-v13/openam-authentication/deviceprint/scripts/src/main/resources/js/
H A Djquery.js3290 promise = {
3306 if ( returned && jQuery.isFunction( returned.promise ) ) {
3307 returned.promise()
3312 newDefer[ tuple[ 0 ] + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments );
3317 }).promise();
3319 // Get a promise for this deferred
3320 // If obj is provided, the promise aspect is added to the object
3321 promise: function( obj ) {
3322 return obj != null ? jQuery.extend( obj, promise )
[all...]

Completed in 1744 milliseconds