com.ibm.tivoli.maximo.miniapps.scheduler.max

Class SchedulerMaxWorkView

    • Field Detail

      • SCHEDMAX_SYNC_ID

        public static final java.lang.String SCHEDMAX_SYNC_ID
        See Also:
        Constant Field Values
      • SESSION_VALUES_REF

        public static final java.lang.String SESSION_VALUES_REF
        See Also:
        Constant Field Values
    • Constructor Detail

      • SchedulerMaxWorkView

        public SchedulerMaxWorkView()
    • Method Detail

      • async_set_compliance

        public boolean async_set_compliance(java.lang.String id,
                                            boolean state)
      • 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
      • async_export_xls

        public void async_export_xls(WebClientSession sess)
                              throws java.io.IOException,
                                     java.lang.InterruptedException,
                                     java.util.concurrent.ExecutionException,
                                     MXException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        MXException
      • async_load_gantt_pages

        public com.ibm.json.java.JSONObject async_load_gantt_pages(WebClientSession sess)
                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • async_load_gantt_page

        public com.ibm.json.java.JSONObject async_load_gantt_page(WebClientSession sess)
                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • async_load_gantt_data

        public com.ibm.json.java.JSONObject async_load_gantt_data(WebClientSession sess)
                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getTooltipForDate

        public DynamicTooltip getTooltipForDate(WebClientSession sess,
                                                java.lang.String projectid,
                                                java.lang.String col,
                                                java.lang.String id,
                                                long date)
                                         throws MXException,
                                                java.rmi.RemoteException,
                                                java.lang.InterruptedException,
                                                java.util.concurrent.ExecutionException
        Overrides:
        getTooltipForDate in class BaseLargeGanttView
        Throws:
        MXException
        java.rmi.RemoteException
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • _cpmall

        public com.ibm.json.java.JSONObject _cpmall(WebClientSession sess,
                                                    java.lang.String ids,
                                                    java.lang.String values)
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • _cpmselected

        public com.ibm.json.java.JSONObject _cpmselected(WebClientSession sess,
                                                         java.lang.String ids,
                                                         java.lang.String values)
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • _cpmcreatelinks

        public com.ibm.json.java.JSONObject _cpmcreatelinks(WebClientSession sess,
                                                            java.lang.String ids,
                                                            java.lang.String values)
                                                     throws java.lang.Exception
        Given the list of Selected Activities, create A Finish to Start link, and then run CPM Selected on the items
        Parameters:
        sess -
        ids -
        values -
        Returns:
        Throws:
        java.lang.Exception
      • _cpmfilter

        public com.ibm.json.java.JSONObject _cpmfilter(WebClientSession sess,
                                                       boolean filteredByCriticalPath)
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • _discardRefreshSelected

        public com.ibm.json.java.JSONObject _discardRefreshSelected(WebClientSession sess,
                                                                    java.lang.String ids)
                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • _refreshSelected

        public com.ibm.json.java.JSONObject _refreshSelected(WebClientSession sess,
                                                             java.lang.String ids)
                                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • _expandToLevel

        public com.ibm.json.java.JSONObject _expandToLevel(WebClientSession sess,
                                                           java.lang.Integer level)
                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • _updateSummary

        public com.ibm.json.java.JSONObject _updateSummary(WebClientSession sess,
                                                           java.lang.String ids,
                                                           java.lang.String values)
                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • _getSelectedTab

        public com.ibm.json.java.JSONObject _getSelectedTab(WebClientSession sess)
                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • processChange

        public void processChange(com.ibm.json.java.JSONObject change,
                                  WebClientSession sess,
                                  ReplyBuilder reply)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • updateStartEndTimes

        public int updateStartEndTimes(Schedule schedule,
                                       com.ibm.json.java.JSONObject change,
                                       WebClientSession sess,
                                       Activity activity)
                                throws java.lang.Exception
        Start and End times need to be updated at the same time, or else ILOG will grow or shrink the activity bar when setting the start/end times separately.
        Parameters:
        change -
        mxa -
        Returns:
        -1 on error, or 0 meaning nothing updated, or 1 start updated, 2 is end updated, 3 is both updated
        Throws:
        java.lang.Exception
      • updateDuration

        public void updateDuration(Schedule schedule,
                                   java.util.Date oldStartTime,
                                   java.util.Date oldEndTime,
                                   java.util.Date newStartTime,
                                   java.util.Date newEndTime,
                                   Activity activity)
                            throws java.lang.Exception
        Start and End times need to be updated at the same time, or else ILOG will grow or shrink the activity bar when setting the start/end times separately.
        Parameters:
        change -
        mxa -
        Throws:
        java.lang.Exception
      • updateStringProperty

        protected void updateStringProperty(java.lang.String prop,
                                            com.ibm.json.java.JSONObject obj,
                                            Activity act,
                                            boolean acceptEmptyString)
      • _DELETECONSTRAINTS

        public ReplyBuilder _DELETECONSTRAINTS(WebClientSession session,
                                               java.lang.String value,
                                               java.lang.String valueList,
                                               com.ibm.json.java.JSONObject selection)
                                        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,
                                         Activity from,
                                         Schedule schedule,
                                         ReplyBuilder reply,
                                         boolean forceUpdate,
                                         java.lang.Boolean optimize)
                                  throws java.rmi.RemoteException,
                                         MXException,
                                         java.io.IOException
        Throws:
        java.rmi.RemoteException
        MXException
        java.io.IOException
      • getContextMenuFor

        protected TMenu getContextMenuFor(TMenu menu,
                                          UserInfo userInfo,
                                          java.lang.String projectId,
                                          java.lang.String propName,
                                          java.lang.String propValue,
                                          java.lang.String[] ids)
                                   throws java.lang.Exception
        Given the parameters, return a TMenu (TreeGrid Menu) context menu.
        Overrides:
        getContextMenuFor in class BaseLargeGanttView
        Parameters:
        menu -
        userInfo -
        projectId -
        propName -
        propValue -
        ids -
        Returns:
        Throws:
        java.lang.Exception
      • on_handle_applink_menu_item

        public java.lang.Object on_handle_applink_menu_item(WebClientSession sess,
                                                            java.lang.String id,
                                                            java.lang.String action,
                                                            java.lang.String values,
                                                            com.ibm.json.java.JSONObject selection)
                                                     throws MXException,
                                                            java.rmi.RemoteException
        Called form the Browser Client with the Activity ID and Action. The action was was the same action that was created during the
        Parameters:
        id -
        action -
        Throws:
        MXException
        java.rmi.RemoteException
      • addActionMenuItems

        public void addActionMenuItems(TMenu popupmenu,
                                       java.lang.String[] selectedactivitys,
                                       Schedule schedule,
                                       IMXActivityPropertyInfo actproptinfo,
                                       java.lang.String projectId,
                                       java.lang.String propName,
                                       java.lang.String propValue,
                                       java.lang.String frame)
                                throws java.lang.Exception
        Adds SKDAction items to the TMenu.
        Throws:
        java.lang.Exception
        java.lang.InterruptedException
      • addDependencyInfo

        protected void addDependencyInfo(java.util.Map values,
                                         java.lang.String fromId,
                                         java.lang.String depInfo,
                                         Schedule schedule)
                                  throws java.lang.InterruptedException,
                                         java.util.concurrent.ExecutionException
        Push Dependency Information into the Dialog Values
        Parameters:
        values -
        fromId - activity from id
        depInfo - dependency to id
        modelFutre - model
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException