com.missiondata.oss.lakeshore
Class Controller
java.lang.Object
com.missiondata.oss.lakeshore.Controller
- Direct Known Subclasses:
- Component, Task
- public abstract class Controller
- extends java.lang.Object
Parent of all components and tasks. Provides answer/call facilities.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Controller
public Controller()
setThreadManager
public static void setThreadManager(ThreadManager threadManager)
callAction
public CallBack callAction(Controller controller)
callMethod
public CallBack callMethod(java.lang.Object model,
java.lang.String method)
callMethod
public CallBack callMethod(java.lang.String method)
call
public java.lang.Object call(Controller controller)
callAction
public CallBack callAction(Controller controller,
java.lang.String pathInfo)
call
public java.lang.Object call(Controller controller,
java.lang.String pathInfo)
setDelegate
protected void setDelegate(Controller controller)
receiveCall
protected void receiveCall()
answerAction
public CallBack answerAction()
answerAction
public CallBack answerAction(java.lang.Object returnValue)
answer
public void answer()
answer
public void answer(java.lang.Object returnValue)
resumeCall
protected void resumeCall()
activeController
public Controller activeController()
clearDelegate
public void clearDelegate()
render
public void render(Renderer r)
inform
public void inform(java.lang.String message)
renderOn
public abstract void renderOn(Renderer r)
setRequestHandler
public void setRequestHandler(ApplicationRequestHandler requestHandler)
getRequestHandler
protected ApplicationRequestHandler getRequestHandler()
onAnswer
public void onAnswer(CapturedAnswer capturedAnswer)
onAnswer
public void onAnswer(CallBack callBack)
- Deprecated. use
onAnswer(CapturedAnswer)
- Parameters:
callBack
-
getParent
public Controller getParent()
setParent
public void setParent(Controller parent)
setSessionAttribute
public void setSessionAttribute(java.lang.String key,
java.lang.Object attribute)
getSessionAttribute
public java.lang.Object getSessionAttribute(java.lang.String key)
getUploadedFile
public UploadedFile getUploadedFile(java.lang.String key)
isUserInRole
public boolean isUserInRole(java.lang.String role)