Modifier and Type | Method and Description |
---|---|
static <T> T |
AuthTokenAccessor.executeWithAuthToken(AuthToken authToken,
Callable<T> callable)
Execute the given
Callable with a given token. |
static void |
AuthTokenAccessor.executeWithAuthToken(AuthToken authToken,
Executable executable)
Execute the given
Executable with a given token. |
static <T> T |
AuthTokenAccessor.executeWithFallbackAuthToken(Supplier<AuthToken> fallbackAuthToken,
Callable<T> callable)
Execute the given
Callable , using the given token as fallback if there is no other token available. |
static void |
AuthTokenAccessor.executeWithFallbackAuthToken(Supplier<AuthToken> fallbackAuthToken,
Executable executable)
Execute the given
Executable , using the given token as fallback if there is no other token available. |
Modifier and Type | Method and Description |
---|---|
static <T> T |
PrincipalAccessor.executeWithFallbackPrincipal(Supplier<Principal> fallbackPrincipal,
Callable<T> callable)
Execute the given
Callable , using the given principal as fallback if there is no other principal
available. |
static void |
PrincipalAccessor.executeWithFallbackPrincipal(Supplier<Principal> fallbackPrincipal,
Executable executable)
Execute the given
Executable , using the given principal as fallback if there is no other principal
available. |
static <T> T |
PrincipalAccessor.executeWithPrincipal(Principal principal,
Callable<T> callable)
Execute the given
Callable on behalf of a given principal. |
static void |
PrincipalAccessor.executeWithPrincipal(Principal principal,
Executable executable)
Execute the given
Executable on behalf of a given principal. |
Modifier and Type | Method and Description |
---|---|
static <T> T |
RequestAccessor.executeWithFallbackRequest(Supplier<javax.servlet.http.HttpServletRequest> fallbackRequest,
Callable<T> callable)
Execute the given
Callable , using the given request as fallback if there is no other request available. |
static void |
RequestAccessor.executeWithFallbackRequest(Supplier<javax.servlet.http.HttpServletRequest> fallbackRequest,
Executable executable)
Execute the given
Executable , using the given request as fallback if there is no other request available. |
static <T> T |
RequestAccessor.executeWithRequest(javax.servlet.http.HttpServletRequest request,
Callable<T> callable)
Execute the given
Callable with a given request. |
static void |
RequestAccessor.executeWithRequest(javax.servlet.http.HttpServletRequest request,
Executable executable)
Execute the given
Executable with a given request. |
Modifier and Type | Method and Description |
---|---|
static <T> T |
TenantAccessor.executeWithFallbackTenant(Supplier<Tenant> fallbackTenant,
Callable<T> callable)
Execute the given
Callable , using the given tenant as fallback if there is no other tenant available. |
static void |
TenantAccessor.executeWithFallbackTenant(Supplier<Tenant> fallbackTenant,
Executable executable)
Execute the given
Executable , using the given tenant as fallback if there is no other tenant available. |
static <T> T |
TenantAccessor.executeWithTenant(Tenant tenant,
Callable<T> callable)
Execute the given
Callable on behalf of a given tenant. |
static void |
TenantAccessor.executeWithTenant(Tenant tenant,
Executable executable)
Execute the given
Executable on behalf of a given tenant. |
Modifier and Type | Method and Description |
---|---|
<T> T |
AbstractThreadContextExecutor.execute(Callable<T> callable)
Executes the given
Callable as if it was called inside a ThreadContext . |
void |
AbstractThreadContextExecutor.execute(Executable executable)
Executes the given
Executable as if it was called inside a ThreadContext . |
Copyright © 2019 SAP SE. All rights reserved.