com.ibm.tivoli.maximo.miniapps.scheduler.gworkassign

Class GWAResourceScheduleView

    • Constructor Detail

      • GWAResourceScheduleView

        public GWAResourceScheduleView()
    • 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.
        Parameters:
        sess -
        appName -
        project -
        Returns:
        Throws:
        java.lang.Exception
      • addLockDurationIcon

        public void addLockDurationIcon(UIOptions opts,
                                        boolean create)
      • addGotoToolbarOptions

        public void addGotoToolbarOptions(UIOptions opts)
      • addViewNavToolbarOptions

        public void addViewNavToolbarOptions(UIOptions opts)
      • setGanttPrintHeader

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

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

        public void processMove(com.ibm.json.java.JSONObject change,
                                WebClientSession sess,
                                ReplyBuilder reply)
                         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(GWASchedule 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
      • 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
      • getScheduleFuture

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

        public void addActionMenuItems(TMenu popupmenu,
                                       java.lang.String[] selectedactivitys,
                                       GWASchedule 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
      • 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.
        Specified by:
        getContextMenuFor in class AbstractTreeGridMiniAppBean
        Parameters:
        menu -
        userInfo -
        projectId -
        propName -
        propValue -
        ids -
        Returns:
        Throws:
        java.lang.Exception
      • getRelatedAssignments

        public ReplyBuilder getRelatedAssignments(WebClientSession sess,
                                                  java.lang.String projectId,
                                                  java.lang.String activityid)
                                           throws java.rmi.RemoteException,
                                                  MXException,
                                                  java.lang.InterruptedException,
                                                  java.util.concurrent.ExecutionException
        Throws:
        java.rmi.RemoteException
        MXException
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • gotoWeek

        public com.ibm.json.java.JSONObject gotoWeek(WebClientSession sess,
                                                     int direction)
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • gotoWeekDate

        public com.ibm.json.java.JSONObject gotoWeekDate(WebClientSession sess,
                                                         long selectedDate)
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setWeekDate

        public com.ibm.json.java.JSONObject setWeekDate(WebClientSession sess,
                                                        long currentDate)
                                                 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
      • newWorkAction

        public com.ibm.json.java.JSONObject newWorkAction(WebClientSession sess,
                                                          java.lang.String actionid,
                                                          java.lang.String params)
                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • deleteWorkAction

        public com.ibm.json.java.JSONObject deleteWorkAction(WebClientSession sess,
                                                             java.lang.String actionid,
                                                             java.lang.String params)
                                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • unassign

        public com.ibm.json.java.JSONObject unassign(WebClientSession sess,
                                                     java.lang.String actionid,
                                                     java.lang.String params)
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • mergeWorkAction

        public com.ibm.json.java.JSONObject mergeWorkAction(WebClientSession sess,
                                                            java.lang.String actionid,
                                                            java.lang.String params)
                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • updateDuration

        public void updateDuration(GWASchedule 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