public interface CurrentUserService
The service to get the current user.
Modifier and Type | Method and Description |
---|---|
String |
getCurrentUserId()
Returns the current user.
|
<T> T |
runAsUser(String userId,
Callable<T> action)
Runs the given action in the context of the specified user.
|
void |
runAsUser(String userId,
Runnable action)
Runs the given action in the context of the specified user.
|
String getCurrentUserId()
Returns the current user. The user might also be a technical user, if there is no real user available in the current context.
void runAsUser(String userId, Runnable action)
Runs the given action in the context of the specified user.
userId
- the user id to applyaction
- the action to executeCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.