public interface ImpersonationService
ImpersonationService.Executor in the ImpersonationContext which is
used to exchange session user, currency, language, site, etc.| Modifier and Type | Interface and Description |
|---|---|
static interface |
ImpersonationService.Executor<R,T extends java.lang.Throwable>
Interface to implement for the executeInContext method.
|
static class |
ImpersonationService.Nothing |
| Modifier and Type | Method and Description |
|---|---|
<R,T extends java.lang.Throwable> |
executeInContext(ImpersonationContext context,
ImpersonationService.Executor<R,T> wrapper)
Execute the wrapper code in the context of the specified user
|
<R,T extends java.lang.Throwable> R executeInContext(ImpersonationContext context, ImpersonationService.Executor<R,T> wrapper) throws T extends java.lang.Throwable
R - The type of the return valueT - The type of the exception thrown by the wrappercontext - The context to execute inwrapper - The code to execute in that contextT - The exception thrown by the wrapper if an error occursT extends java.lang.ThrowableCopyright © 2018 SAP SE. All Rights Reserved.