Package com.microstrategy.web.controller
Class TaskViewerController
- java.lang.Object
-
- com.microstrategy.web.controller.TaskViewerController
-
- All Implemented Interfaces:
AppController
public class TaskViewerController extends java.lang.Object implements AppController
This class is the AppController implementation for the TaskViewer servlet. It is designed for GUI construction of the task tool interface without any task execution job involved. It is used by both TaskViewer and TaskAdmin severlets/pages, and the tool interface could be different based on the configuration file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTaskViewerController.OptionInfoThis object holds information about an HTML Option element.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringREQ_ATTR_TASK_ADMIN_CONTEXTstatic java.lang.StringURL_PARAM_ADMIN_PAGE
-
Constructor Summary
Constructors Constructor Description TaskViewerController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderrorAfterRedirect(RequestState reqState, java.lang.Exception e)Inform the application that the request has failed inside the redirected pagejava.lang.StringgetBaseURL(ContainerServices cs)Returns the root name to use on event links and as the action of the forms generated by the applicationjava.lang.StringgetPage(RequestState reqState)Get the relative path to the Page that should be displayed in the tool interface.voidinitializeApp(ContainerServices cs)Initialize the application.ExternalSecuritynewExternalSecurity()Creates new instance of the ExternalSecurity component to be used for authenticating and authorizing users on each of their requests.RequestStatenewRequestState()Get a newRequestStateobject to handle the incoming request.booleanprocessRequest(RequestState reqState)Process the incoming request.voidterminateApp()Terminate the application.
-
-
-
Field Detail
-
URL_PARAM_ADMIN_PAGE
public static final java.lang.String URL_PARAM_ADMIN_PAGE
- See Also:
- Constant Field Values
-
REQ_ATTR_TASK_ADMIN_CONTEXT
public static final java.lang.String REQ_ATTR_TASK_ADMIN_CONTEXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
initializeApp
public void initializeApp(ContainerServices cs)
Initialize the application.- Specified by:
initializeAppin interfaceAppController- Parameters:
cs- TheContainerServicesobject to use to complete the initialization.
-
processRequest
public boolean processRequest(RequestState reqState)
Process the incoming request. Just do nothing since this controller is dedicated to task tool interface generation.- Specified by:
processRequestin interfaceAppController- Parameters:
reqState- TheRequestStateobject that holds per-request data.- Returns:
- True, if the request was handled; otherwise, false.
-
getPage
public java.lang.String getPage(RequestState reqState)
Get the relative path to the Page that should be displayed in the tool interface.- Specified by:
getPagein interfaceAppController- Parameters:
reqState- TheRequestStateobject that contains per-request data structures.- Returns:
- The path to the Page to internally redirect to.
-
errorAfterRedirect
public void errorAfterRedirect(RequestState reqState, java.lang.Exception e)
Description copied from interface:AppControllerInform the application that the request has failed inside the redirected page- Specified by:
errorAfterRedirectin interfaceAppController
-
getBaseURL
public java.lang.String getBaseURL(ContainerServices cs)
Description copied from interface:AppControllerReturns the root name to use on event links and as the action of the forms generated by the application- Specified by:
getBaseURLin interfaceAppController- Returns:
- String
-
newExternalSecurity
public ExternalSecurity newExternalSecurity()
Description copied from interface:AppControllerCreates new instance of the ExternalSecurity component to be used for authenticating and authorizing users on each of their requests.- Specified by:
newExternalSecurityin interfaceAppController- Returns:
- new instance of the ExternalSecurity component.
-
newRequestState
public RequestState newRequestState()
Get a newRequestStateobject to handle the incoming request.- Specified by:
newRequestStatein interfaceAppController- Returns:
- A new
RequestStateobject to handle the incoming request.
-
terminateApp
public void terminateApp()
Description copied from interface:AppControllerTerminate the application. This allows the application to cleanup any persistent data structures.- Specified by:
terminateAppin interfaceAppController
-
-