|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ImpersonationService
This service is responsible for performing actions as a given user.
| Method Summary | ||
|---|---|---|
|
runAs(java.lang.String username,
java.util.concurrent.Callable<V> callable)
Run the given callable as the given user |
|
void |
runAs(java.lang.String username,
java.lang.Runnable runnable)
Run the given runnable as the given user |
|
| Method Detail |
|---|
void runAs(java.lang.String username,
java.lang.Runnable runnable)
username - username of the user to run the runnable asrunnable - runnable to run
<V> V runAs(java.lang.String username,
java.util.concurrent.Callable<V> callable)
throws java.lang.Exception
V - result typeusername - username of the user to run the callable ascallable - callable to run
java.lang.Exception - if the callable throws exception when running it
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||