Class 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.

    • 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
    • Constructor Detail

      • TaskViewerController

        public TaskViewerController()
    • Method Detail

      • 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:
        processRequest in interface AppController
        Parameters:
        reqState - The RequestState object 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:
        getPage in interface AppController
        Parameters:
        reqState - The RequestState object 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: AppController
        Inform the application that the request has failed inside the redirected page
        Specified by:
        errorAfterRedirect in interface AppController
      • getBaseURL

        public java.lang.String getBaseURL​(ContainerServices cs)
        Description copied from interface: AppController
        Returns the root name to use on event links and as the action of the forms generated by the application
        Specified by:
        getBaseURL in interface AppController
        Returns:
        String
      • newExternalSecurity

        public ExternalSecurity newExternalSecurity()
        Description copied from interface: AppController
        Creates new instance of the ExternalSecurity component to be used for authenticating and authorizing users on each of their requests.
        Specified by:
        newExternalSecurity in interface AppController
        Returns:
        new instance of the ExternalSecurity component.
      • terminateApp

        public void terminateApp()
        Description copied from interface: AppController
        Terminate the application. This allows the application to cleanup any persistent data structures.
        Specified by:
        terminateApp in interface AppController