com.ibm.tivoli.maximo.miniapps.scheduler

Class WorkViewBean

    • Constructor Detail

      • WorkViewBean

        public WorkViewBean()
    • Method Detail

      • onReset

        public void onReset()
        Description copied from class: BaseTreeGridMiniAppBean
        OnReset is called whenever we need to clear the state of our beean. And reinitialize it for a new state. ie, when Maximo changes a record, etc, we need to clear the bean data, the load the state for that record
        Specified by:
        onReset in interface ResetListener
        Overrides:
        onReset in class BaseTreeGridMiniAppBean
      • getLayoutUI

        public com.ibm.json.java.JSONObject getLayoutUI(WebClientSession sess,
                                                        java.lang.String appName,
                                                        java.lang.String projectId)
                                                 throws java.lang.Exception
        Loads the Gantt UI (ie, the TreeGrid ui) for the given project.
        Parameters:
        sess -
        appName -
        project -
        Returns:
        Throws:
        java.lang.Exception
      • createUIOptions

        protected UIOptions createUIOptions(java.lang.String id)
                                     throws MXException,
                                            java.io.IOException
        Called only once, by getUIOptions to actually create the options. SUbclasses con override this, or getUIOptions.
        Overrides:
        createUIOptions in class BaseTreeGridMiniAppBean
        Parameters:
        id -
        Returns:
        Throws:
        MXException
        java.io.IOException
      • addPrintPDFAction

        protected void addPrintPDFAction(UIOptions opts)
      • _DELETECONSTRAINTS

        public ReplyBuilder _DELETECONSTRAINTS(WebClientSession session,
                                               java.lang.String value,
                                               java.lang.String valueList)
                                        throws java.io.IOException,
                                               MXException,
                                               java.lang.InterruptedException,
                                               java.util.concurrent.ExecutionException
        Deletes the incomming and outgoing constraints for the given items in the valueList
        Parameters:
        session -
        value -
        valueList -
        Returns:
        Throws:
        java.io.IOException
        MXException
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • updateConstraints

        protected void updateConstraints(java.lang.String treeGridDescendents,
                                         MXActivity from,
                                         java.util.concurrent.Future modelFuture,
                                         ReplyBuilder reply,
                                         boolean forceUpdate)
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • processChange

        protected void processChange(WebClientSession sess,
                                     MXGanttModel mxGanttModel,
                                     ReplyBuilder reply,
                                     com.ibm.json.java.JSONObject change,
                                     MXActivity mxa)
                              throws java.lang.Exception
        Allow subclasses to process model changes BEFORE add model changes
        Parameters:
        sess -
        mxGanttModel -
        reply -
        change -
        mxa -
        Throws:
        java.lang.Exception
      • markAssignmentDelete

        public void markAssignmentDelete(java.util.concurrent.Future modelFuture,
                                         com.ibm.json.java.JSONObject obj,
                                         MXActivity act)
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • loadSchedulerProject

        public void loadSchedulerProject(WebClientSession sess)
                                  throws java.lang.Exception
        Load the Scheduler project gantt model for the given project.
        Parameters:
        sess -
        Throws:
        java.lang.Exception