public interface CurrentUserService extends Service
Modifier and Type | Method and Description |
---|---|
UserId |
getCurrentUserId()
Returns the current user.
|
<T> T |
runAsUser(UserId userId,
Callable<T> action)
Runs the given action in the context of the specified user.
|
void |
runAsUser(UserId userId,
Runnable action)
Runs the given action in the context of the specified user.
|
UserId getCurrentUserId()
void runAsUser(UserId userId, Runnable action)
userId
- the user id to applyaction
- the action to executeCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.