com.ibm.tivoli.maximo.miniapps.scheduler.resourceviews

Class ResourceScheduleView

    • Field Detail

      • QBE_SEPARATOR_TOKEN

        protected static final java.lang.String QBE_SEPARATOR_TOKEN
        Separator character used for the QBE * * "\u00a7"
        See Also:
        Constant Field Values
    • Constructor Detail

      • ResourceScheduleView

        public ResourceScheduleView()
    • Method Detail

      • setFilterState

        public ReplyBuilder setFilterState(boolean val)
                                    throws java.rmi.RemoteException,
                                           MXException,
                                           java.lang.InterruptedException,
                                           java.util.concurrent.ExecutionException
        Throws:
        java.rmi.RemoteException
        MXException
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • validateAssignment

        public void validateAssignment(WebClientSession sess,
                                       ReplyBuilder reply,
                                       MXGanttModel model,
                                       MXResource res,
                                       MXActivity act)
                                throws java.rmi.RemoteException,
                                       java.lang.Exception,
                                       java.lang.InterruptedException,
                                       java.util.concurrent.ExecutionException
        Provides Assignment Validation during updates
        Throws:
        java.rmi.RemoteException
        java.lang.Exception
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • getScheduleWindow

        public java.util.Map getScheduleWindow(WebClientSession sess,
                                               java.lang.String projectId,
                                               java.lang.String activityid)
                                        throws java.rmi.RemoteException,
                                               MXException,
                                               java.lang.InterruptedException,
                                               java.util.concurrent.ExecutionException
        For a given activity ID, find and return the schedule window
        Parameters:
        sess -
        projectId -
        activityid -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • 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
      • loadSchedulerProject

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

        public ReplyBuilder async_upload_changes(WebClientSession sess)
        This is called by the TreeGrid component, in the browser, when it has changes that it needs to sync with the server. This does not cause a "save" but rather, it simply sets the changes to be processed when a save happens.
        Overrides:
        async_upload_changes in class BaseTreeGridMiniAppBean
        Parameters:
        sess -
        Returns:
      • applyModelChange

        public void applyModelChange(MXGanttModel model,
                                     com.ibm.json.java.JSONObject obj,
                                     MXActivity currentActivity,
                                     MXResource res,
                                     MXReservation reservation,
                                     WebClientSession session)
                              throws java.rmi.RemoteException,
                                     java.lang.Exception
        Throws:
        java.rmi.RemoteException
        java.lang.Exception
      • addModelChange

        public void addModelChange(MXGanttModel model,
                                   com.ibm.json.java.JSONObject obj,
                                   MXActivity currentActivity,
                                   MXResource res,
                                   MXReservation reservation,
                                   WebClientSession session)
                            throws java.rmi.RemoteException,
                                   java.lang.Exception
        Throws:
        java.rmi.RemoteException
        java.lang.Exception
      • setSkillMapping

        public boolean setSkillMapping(MXGanttModel model,
                                       ilog.views.gantt.model.general.IlvGeneralActivity currentActivity,
                                       MXResource res,
                                       MXReservation unused_reservation,
                                       boolean update)
      • addActionMenuItems

        protected void addActionMenuItems(TMenu popupmenu,
                                          java.lang.String[] selectedresources,
                                          java.util.concurrent.Future modelFuture,
                                          java.lang.String projectId,
                                          java.lang.String colName,
                                          java.lang.String colValue,
                                          Selection selected,
                                          java.lang.String frame)
                                   throws java.lang.Exception
        Adds SKDAction items to the TMenu.
        Overrides:
        addActionMenuItems in class BaseResourceView
        Throws:
        java.lang.Exception
        java.lang.InterruptedException
      • canDeleteWork

        public boolean canDeleteWork(MXActivity activity)
      • canAssignToLoc

        public boolean canAssignToLoc(MXActivity activity,
                                      java.lang.String[] selectedresources,
                                      java.lang.String actresid,
                                      MXGanttModel model)
      • dummyAction

        public com.ibm.json.java.JSONObject dummyAction(WebClientSession sess,
                                                        java.lang.String actionid,
                                                        java.lang.String params)
                                                 throws java.lang.Exception
        NOT USED. JUst shows how to use an "action reply" to send changes back to the server.
        Returns:
        Throws:
        java.lang.Exception
      • addViewNotesAction

        public void addViewNotesAction(TMenu menu,
                                       java.lang.String projectId,
                                       MXActivity activity)
      • addServerAction

        public void addServerAction(TMenu menu,
                                    java.lang.String projectId,
                                    MXActivity activity,
                                    MXResource resource,
                                    java.lang.String actionTitle,
                                    java.lang.String actionName)
      • 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
      • splitShiftAction

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

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

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

        public com.ibm.json.java.JSONObject mergeAllWorkAction(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
      • getTooltip

        public DynamicTooltip getTooltip(WebClientSession sess,
                                         java.lang.String projectid,
                                         java.lang.String col,
                                         java.lang.String id)
                                  throws MXException,
                                         java.rmi.RemoteException,
                                         java.lang.InterruptedException,
                                         java.util.concurrent.ExecutionException
        Description copied from class: BaseTreeGridMiniAppBean
        Returns a Tooltip HTML for a given activity id
        Overrides:
        getTooltip in class BaseTreeGridMiniAppBean
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • getShiftBreakPoints

        public long[] getShiftBreakPoints(MXGanttModel model,
                                          MXResource resource,
                                          long start,
                                          long end)
      • 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
      • getMultiSkillResourceSet

        public java.util.List getMultiSkillResourceSet(WebClientSession sess,
                                                       java.lang.String projectId,
                                                       java.lang.String activityid)
                                                throws java.rmi.RemoteException,
                                                       MXException,
                                                       java.lang.InterruptedException,
                                                       java.util.concurrent.ExecutionException
        For a given activity ID, find and return the resource list for matching craft and skill
        Parameters:
        sess -
        projectId -
        activityid -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • assigntoselectedlocations

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

        public boolean isCapabilityMat(WebClientSession sess,
                                       MXGanttModel model,
                                       ilog.views.gantt.model.general.IlvGeneralActivity currentActivity,
                                       MXResource res)
                                throws java.rmi.RemoteException,
                                       java.lang.Exception
        Throws:
        java.rmi.RemoteException
        java.lang.Exception
      • isQulificationMat

        public java.lang.String isQulificationMat(WebClientSession sess,
                                                  MXGanttModel model,
                                                  ilog.views.gantt.model.general.IlvGeneralActivity currentActivity,
                                                  MXResource res)
                                           throws java.rmi.RemoteException,
                                                  java.lang.Exception
        Throws:
        java.rmi.RemoteException
        java.lang.Exception
      • validateScheduleWindow

        public boolean validateScheduleWindow(WebClientSession sess,
                                              MXGanttModel model,
                                              ilog.views.gantt.model.general.IlvGeneralActivity currentActivity,
                                              MXResource res)
                                       throws java.rmi.RemoteException,
                                              java.lang.Exception
        Throws:
        java.rmi.RemoteException
        java.lang.Exception
      • createUIOptions

        protected UIOptions createUIOptions(java.lang.String id)
                                     throws MXException,
                                            java.io.IOException
        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:
        MXException
        java.io.IOException
      • addRUNEMRGAction

        protected void addRUNEMRGAction(UIOptions opts)
      • assignto

        public com.ibm.json.java.JSONObject assignto(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
      • canUnAssign

        public boolean canUnAssign(MXActivity activity,
                                   java.lang.String[] selectedactivitis,
                                   java.lang.String actresid,
                                   MXGanttModel model)
      • canAssignToLaborCrew

        public boolean canAssignToLaborCrew(java.lang.String[] selectedresources,
                                            Selection selected)
      • canAssignToLaborCrewBasedOnResourceLock

        public boolean canAssignToLaborCrewBasedOnResourceLock(java.lang.String[] selectedresources,
                                                               Selection selected,
                                                               MXGanttModel model)
      • canAssignToLaborCrewAvail

        public boolean canAssignToLaborCrewAvail(java.lang.String[] selectedresources,
                                                 Selection selected)
      • autoRefreshModel

        public ReplyBuilder autoRefreshModel(java.lang.String projectId)
                                      throws java.rmi.RemoteException,
                                             MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • 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 WorkViewBean