com.ibm.tivoli.maximo.miniapps.scheduler.gresource

Class GResourceView

    • Constructor Detail

      • GResourceView

        public GResourceView()
    • Method Detail

      • 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.
        Overrides:
        getLayoutUI in class WorkViewBean
        Parameters:
        sess -
        appName -
        projectId -
        Returns:
        Throws:
        java.lang.Exception
      • getProjectData

        public com.ibm.json.java.JSONObject getProjectData(WebClientSession sess,
                                                           long ganttStart)
                                                    throws java.lang.Exception
        Load the resource hours data
        Parameters:
        sess -
        Returns:
        Throws:
        java.lang.Exception
      • async_get_table_context_menu

        public TMenu async_get_table_context_menu(WebClientSession sess,
                                                  java.lang.String projectId,
                                                  java.lang.String id,
                                                  java.lang.String column,
                                                  java.lang.String value,
                                                  com.ibm.json.java.JSONObject selection,
                                                  long selecteddate)
                                           throws java.lang.Exception
        Called for an ITEM to fetch the Menu for a given item. The menu items should contain a Menu Name (display) and an action value. The Action Value will later be passed to the on_handle_conent_menu_item callback.
        Parameters:
        id - Activity ID
        col - Table Column
        Returns:
        Throws:
        java.lang.Exception
      • getTooltip

        public DynamicTooltip getTooltip(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
        Throws:
        MXException
        java.rmi.RemoteException
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • saveModAvailReasonCode

        public com.ibm.json.java.JSONObject saveModAvailReasonCode(WebClientSession sess,
                                                                   java.lang.String projectId,
                                                                   java.lang.String selection,
                                                                   java.lang.String objectName,
                                                                   long date,
                                                                   java.lang.String reasonCode,
                                                                   java.lang.String durationType)
                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • deleteModAvailReasonCode

        public com.ibm.json.java.JSONObject deleteModAvailReasonCode(WebClientSession sess,
                                                                     java.lang.String projectId,
                                                                     java.lang.String selection,
                                                                     java.lang.String objectName,
                                                                     long date,
                                                                     java.lang.String durationType)
                                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addActionMenuItems

        protected void addActionMenuItems(TMenu popupmenu,
                                          java.lang.String[] selectedresources,
                                          GRSchedule schedule,
                                          java.lang.String projectId,
                                          java.lang.String colName,
                                          java.lang.String colValue,
                                          Selection selected,
                                          long selecteddate,
                                          java.lang.String frame)
                                   throws java.lang.Exception
        Adds SKDAction items to the TMenu.
        Throws:
        java.lang.Exception
        java.lang.InterruptedException
      • createUIOptions

        protected UIOptions createUIOptions(java.lang.String projectId)
                                     throws java.io.IOException,
                                            MXException
        Description copied from class: WorkViewBean
        Called only once, by getUIOptions to actually create the options. SUbclasses con override this, or getUIOptions.
        Overrides:
        createUIOptions in class WorkViewBean
        Returns:
        Throws:
        java.io.IOException
        MXException
      • addModAvailReasonCode

        protected void addModAvailReasonCode(UIOptions opts)
                                      throws java.rmi.RemoteException,
                                             MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • addModAvailDurationType

        protected void addModAvailDurationType(UIOptions opts)
      • getContextMenuFor

        protected TMenu getContextMenuFor(TMenu menu,
                                          UserInfo userInfo,
                                          java.lang.String projectId,
                                          java.lang.String propName,
                                          java.lang.String propValue,
                                          java.lang.String[] ids,
                                          Selection selected,
                                          long selecteddate)
                                   throws java.lang.Exception
        Given the paramters, return a TMenu (TreeGrid Menu) context menu.
        Parameters:
        menu -
        userInfo -
        projectId -
        propName -
        propValue -
        ids -
        Returns:
        Throws:
        java.lang.Exception
      • getSchedule

        protected GRSchedule getSchedule()
      • getScheduleFuture

        protected java.util.concurrent.Future getScheduleFuture()
                                                         throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • addShowLegendIcon

        protected void addShowLegendIcon(UIOptions opts)
      • addViewNavToolbarOptions

        protected void addViewNavToolbarOptions(UIOptions opts)
      • gotoPeriod

        public com.ibm.json.java.JSONObject gotoPeriod(WebClientSession sess,
                                                       int direction,
                                                       int zoomLevel,
                                                       long weekStart)
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setStartDate

        public com.ibm.json.java.JSONObject setStartDate(WebClientSession sess,
                                                         long currentDate)
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception