com.missiondata.oss.lakeshore
Class Controller

java.lang.Object
  extended bycom.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.


Constructor Summary
Controller()
           
 
Method Summary
 Controller activeController()
           
 void answer()
           
 void answer(java.lang.Object returnValue)
           
 CallBack answerAction()
           
 CallBack answerAction(java.lang.Object returnValue)
           
 java.lang.Object call(Controller controller)
           
 java.lang.Object call(Controller controller, java.lang.String pathInfo)
           
 CallBack callAction(Controller controller)
           
 CallBack callAction(Controller controller, java.lang.String pathInfo)
           
 CallBack callMethod(java.lang.Object model, java.lang.String method)
           
 CallBack callMethod(java.lang.String method)
           
 void clearDelegate()
           
 Controller getParent()
           
protected  ApplicationRequestHandler getRequestHandler()
           
 java.lang.Object getSessionAttribute(java.lang.String key)
           
 UploadedFile getUploadedFile(java.lang.String key)
           
 void inform(java.lang.String message)
           
 boolean isUserInRole(java.lang.String role)
           
 void onAnswer(CallBack callBack)
          Deprecated. use onAnswer(CapturedAnswer)
 void onAnswer(CapturedAnswer capturedAnswer)
           
protected  void receiveCall()
           
 void render(Renderer r)
           
abstract  void renderOn(Renderer r)
           
protected  void resumeCall()
           
protected  void setDelegate(Controller controller)
           
 void setParent(Controller parent)
           
 void setRequestHandler(ApplicationRequestHandler requestHandler)
           
 void setSessionAttribute(java.lang.String key, java.lang.Object attribute)
           
static void setThreadManager(ThreadManager threadManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Controller

public Controller()
Method Detail

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)