com.ibm.tivoli.maximo.skd.gworkassign.service

Class WMActivityDataManager

    • Constructor Detail

      • WMActivityDataManager

        public WMActivityDataManager(MXServer mxServer)
    • Method Detail

      • loadActivities

        public com.ibm.json.java.JSONArray loadActivities(GWASchedule schedule)
                                                   throws MXException,
                                                          java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getPopulateDataObjectsWhere

        public java.lang.String getPopulateDataObjectsWhere()
      • setPopulateObjectsWhere

        public void setPopulateObjectsWhere(java.lang.String populateObjectsWhere)
      • populateDataObjectsWhere

        public java.lang.String populateDataObjectsWhere(MboRemote projectMbo,
                                                         java.util.Map queryMap)
                                                  throws java.rmi.RemoteException,
                                                         MXException
        get where using the values obtained by the execution of the Work Queries.
        Parameters:
        queryMap - - A Map of Work Queries to be used as input for this process.
        Throws:
        java.rmi.RemoteException
        MXException
      • populateDataObjectsWhere

        public java.lang.String populateDataObjectsWhere(MboRemote projectMbo,
                                                         java.util.Map queryMap,
                                                         boolean forNullDates)
                                                  throws java.rmi.RemoteException,
                                                         MXException
        get where using the values obtained by the execution of the Work Queries.
        Parameters:
        queryMap - - A Map of Work Queries to be used as input for this process.
        Throws:
        java.rmi.RemoteException
        MXException
      • getCompleteQueryWhere

        protected java.lang.String getCompleteQueryWhere(MboRemote projectMbo,
                                                         UserInfo userInfo,
                                                         java.lang.String objectName,
                                                         java.util.Map queryMap,
                                                         java.lang.Boolean forNullDates)
                                                  throws MXException,
                                                         java.rmi.RemoteException
        Get the complete where clause
        Parameters:
        objectName -
        queryMap -
        Returns:
        complete where clause
        Throws:
        MXException
        java.rmi.RemoteException
      • getDefaultRestriction

        protected java.lang.String getDefaultRestriction(MboRemote projectMbo,
                                                         java.lang.String objectName,
                                                         boolean forNullDates)
                                                  throws SchedulerException
        Get default restriction for object
        Parameters:
        objectName -
        Returns:
        default restriction
        Throws:
        SchedulerException
      • getDefaultStatusRestriction

        protected java.lang.String getDefaultStatusRestriction()
                                                        throws SchedulerException
        Get the default restriction where clause
        Returns:
        default restriction
        Throws:
        SchedulerException
      • getStartEndDateRestriction

        protected java.lang.String getStartEndDateRestriction(MboRemote projectMbo)
                                                       throws SchedulerException
        Get the default restriction where clause
        Returns:
        default restriction
        Throws:
        SchedulerException
      • processChanges

        public void processChanges(MboRemote projectMbo,
                                   java.util.List activityChanges)
                            throws java.rmi.RemoteException,
                                   MXException
        Processes a set of changes for the activities associated with the selected Schedule. These changes are the result of any modifications that have been done in the Gantt view for the selected Schedule.
        Parameters:
        schedule - - Schedule model object.
        activityChanges - - Set of changes made in the Gantt view.
        Throws:
        java.rmi.RemoteException
        MXException
      • activityNullRecordCount

        public int activityNullRecordCount(java.util.HashMap queryMap)
                                    throws SchedulerException
        Get the actvity records counts for a list of queries
        Parameters:
        HashMap - name, ArrayList> queryMap
        Returns:
        activity records count
        Throws:
        SchedulerException
      • setWOScheduleStartDateForNullDates

        public int setWOScheduleStartDateForNullDates(java.util.HashMap queryMap)
                                               throws SchedulerException
        Get the actvity records for a list of queries
        Parameters:
        HashMap - name, ArrayList> queryMap
        Returns:
        activity records count
        Throws:
        SchedulerException