|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.domino.xsp.module.nsf.ThreadSessionExecutor<T>
public abstract class ThreadSessionExecutor<T>
Notes Session Executor.
This class executes a method with a Notes session object, in a thread that will be properly initialized and a Notes Session object created. The ThreadClassLoader is also being set to the NSF module class loader when the executor was created.
// In the XPages thread ThreadSessionExecutor
Constructor Summary | |
---|---|
ThreadSessionExecutor()
Construct an executor using the credentials of the current web user. |
|
ThreadSessionExecutor(boolean fullAdminAccess)
Construct an executor using the credentials of the current designer user. |
Method Summary | |
---|---|
T |
run()
Execute the task. |
protected abstract T |
run(lotus.domino.Session session)
Actual method to execute within the session context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadSessionExecutor()
public ThreadSessionExecutor(boolean fullAdminAccess)
fullAdminAccess
- true if it should use the full admin accessMethod Detail |
---|
public T run() throws java.lang.Exception
lotus.domino.NotesException
java.lang.Exception
protected abstract T run(lotus.domino.Session session) throws java.lang.Exception
session
-
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |