com.ibm.tivoli.maximo.skd.gworkassign.model

Class GWASchedule

  • java.lang.Object
    • com.ibm.tivoli.maximo.skd.gworkassign.model.GWASchedule
    • Constructor Detail

      • GWASchedule

        public GWASchedule()
      • GWASchedule

        public GWASchedule(MboRemote project)
    • Method Detail

      • getCurrentUserInfo

        public UserInfo getCurrentUserInfo()
      • getCreatedUserInfo

        public UserInfo getCreatedUserInfo()
      • setCurrentUserInfo

        public void setCurrentUserInfo(UserInfo currentUserInfo)
      • setCreatedUserInfo

        public void setCreatedUserInfo(UserInfo createdUserInfo)
      • getProjectStartEnd

        public DateRange getProjectStartEnd()
        Description copied from interface: IMXGanttModel
        Return the Project's Start/End from SKDPROJECT. These are the absolute values as defined by the project. It will not include padding, etc.
        Specified by:
        getProjectStartEnd in interface IMXGanttModel
        Returns:
      • setProjectId

        public void setProjectId(java.lang.String id)
      • setProjectName

        public void setProjectName(java.lang.String name)
      • setProjectDescription

        public void setProjectDescription(java.lang.String projectDescription)
      • setScenarioName

        public void setScenarioName(java.lang.String name)
      • setDefaultScenario

        public void setDefaultScenario(boolean isDefault)
      • setLocalizedScenarioTitle

        public void setLocalizedScenarioTitle(java.lang.String title)
      • isDefaultScenario

        public boolean isDefaultScenario()
      • getLocalizedScenarioTitle

        public java.lang.String getLocalizedScenarioTitle()
      • getCalculatedProjectMinMax

        public DateRange getCalculatedProjectMinMax()
        Description copied from interface: IMXGanttModel
        This is a calculated project min max. It will include at least the union of Actual start/end and project start/end, and will usually include a 2 week calendar padding on each end, IF we have calendar data.
        Specified by:
        getCalculatedProjectMinMax in interface IMXGanttModel
        Returns:
      • getCalendarStartEnd

        public DateRange getCalendarStartEnd()
        Description copied from interface: IMXGanttModel
        Returns the configured Calendar Start End dates. We not use the full calendar, but this is amount of known calendar that we have.
        Specified by:
        getCalendarStartEnd in interface IMXGanttModel
        Returns:
      • setUseWith

        public void setUseWith(java.lang.String useWith)
        Specified by:
        setUseWith in interface IMXGanttModel
      • setCalendarNum

        public void setCalendarNum(java.lang.String calNum)
      • setOrgId

        public void setOrgId(java.lang.String orgId)
      • setAssignStartDate

        public void setAssignStartDate(java.util.Date date)
      • setViewType

        public void setViewType(boolean viewType)
      • getUseWith

        public java.lang.String getUseWith()
      • getProjectType

        public java.lang.String getProjectType()
      • getCalendarNum

        public java.lang.String getCalendarNum()
      • getOrgId

        public java.lang.String getOrgId()
      • getAssignStartDate

        public java.util.Date getAssignStartDate()
      • isViewType

        public boolean isViewType()
      • isShowMaintOperFlag

        public boolean isShowMaintOperFlag()
      • isRollingProject

        public boolean isRollingProject()
      • setRollingProject

        public void setRollingProject(boolean isRollingProject)
      • isRestrictWorkToDates

        public boolean isRestrictWorkToDates()
      • setRestrictWorkToDates

        public void setRestrictWorkToDates(boolean restrictWorkToDates)
      • normalizeDates

        public void normalizeDates()
        Updates the calculated Min/Max based on the dates.
      • setShiftCalendarInfo

        public void setShiftCalendarInfo(java.util.HashMap shiftCalendarInfo)
      • getShiftData

        public java.util.Map getShiftData()
      • getProperties

        public java.util.Properties getProperties()
      • setProperties

        public void setProperties(java.util.Properties properties)
      • setSkdActionInfo

        public void setSkdActionInfo(java.util.HashMap info)
        Set action information
        Parameters:
        HashMap - HashMap> info
      • getSkdActionInfo

        public java.util.HashMap getSkdActionInfo()
        Get action information
        Specified by:
        getSkdActionInfo in interface IMXGanttModel
        Returns:
        HashMap>
      • getSkdActionInfo

        public java.util.HashMap getSkdActionInfo(java.lang.String useWith)
        Get action information
        Returns:
        HashMap>
      • setSkdActionUidInfo

        public void setSkdActionUidInfo(java.util.HashMap info)
        Set action information with key as action unique id
        Parameters:
        HashMap - info
      • getSkdActionUidInfo

        public java.util.HashMap getSkdActionUidInfo()
        Get action information with key as action unique id
        Returns:
        HashMap
      • getUserData

        public java.lang.Object getUserData(java.lang.String key)
        Description copied from interface: IMXGanttModel
        Returns a piece of transient, in-memory stored user data for this model. Never use primatives, since this method will cast to the type, and the value is null, then null pointer will the thrown. User Data is will not be serialized when the model is serialized, so you an store non-serializable objects if needed.
        Specified by:
        getUserData in interface IMXGanttModel
        Returns:
      • setUserData

        public void setUserData(java.lang.String key,
                                java.lang.Object data)
        Description copied from interface: IMXGanttModel
        Sets a transient piece of user data in the model. User data is not serialized with the model.
        Specified by:
        setUserData in interface IMXGanttModel
      • getProjectMbo

        public MboRemote getProjectMbo()
      • setProjectMbo

        public void setProjectMbo(MboRemote projectMbo)
      • getToolbarActions

        public java.util.List getToolbarActions()
      • getShiftWorkPeriod

        public java.util.ArrayList getShiftWorkPeriod(java.lang.String shift)
                                               throws java.io.IOException
        Add the WorkPeriod information to the TreeGrid UI
        Parameters:
        gantt -
        model -
        Throws:
        java.io.IOException
      • setActivityApplinkList

        public void setActivityApplinkList(java.lang.String className,
                                           java.util.HashMap list)
        Set activity applink list.
        Parameters:
        className -
        list -
      • getActivityApplinkList

        public java.util.HashMap getActivityApplinkList(java.lang.String className)
        Get activity applink list for a class name
        Parameters:
        className -
        Returns:
        HashMap>
      • getChangedActivities

        public java.util.Set getChangedActivities()
      • getActualStartEnd

        public Range getActualStartEnd()
        Description copied from interface: IMXGanttModel
        Get the "actual" start/end of the project based simply looking at the project work. This should include when the real work starts and ends for the project.
        Specified by:
        getActualStartEnd in interface IMXGanttModel
        Returns:
      • getNonEmptyTitleForProject

        public java.lang.String getNonEmptyTitleForProject()
      • getWorkHourList

        public java.util.HashMap getWorkHourList()
        Specified by:
        getWorkHourList in interface IMXGanttModel
        Returns:
        getShiftCalendarInfo()
      • setAlternateAvail

        public void setAlternateAvail(boolean useAlternateAvail)
      • setResourceDisplay

        public void setResourceDisplay(java.lang.String resourceDisplay)
      • setWeekday

        public void setWeekday(java.lang.String weekday)
      • getActivitiesForWorkOrderId

        public java.util.List getActivitiesForWorkOrderId(java.lang.Long workOrderId)
      • addActivity

        public void addActivity(java.lang.String id,
                                Activity activity)
      • removeActivity

        public void removeActivity(Activity activity)
      • addResource

        public void addResource(java.lang.String id,
                                Resource resource)
      • getActivities

        public java.util.Collection getActivities()
      • getResources

        public com.ibm.json.java.JSONArray getResources()
      • setResources

        public void setResources(com.ibm.json.java.JSONArray resources)
      • getDisplayRowCount

        public int getDisplayRowCount()
        Description copied from interface: IMXGanttModel
        Returns the rows in the Schedule are being displayed. In the case of server side filtered models, this value would changed to reflect the rows in the schedule.
        Specified by:
        getDisplayRowCount in interface IMXGanttModel
        Returns:
      • isPagingModel

        public boolean isPagingModel()
        Description copied from interface: IMXGanttModel
        Return true if the model is a paging model
        Specified by:
        isPagingModel in interface IMXGanttModel
        Returns:
      • getPages

        public int getPages()
        Description copied from interface: IMXGanttModel
        if a Paging Model, then return the number of pages, otherwise, return 1.
        Specified by:
        getPages in interface IMXGanttModel
        Returns:
      • getPageSize

        public int getPageSize()
        Description copied from interface: IMXGanttModel
        if a Paging Model, then return the number of rows in a page, other wise return total rows in the schedule
        Specified by:
        getPageSize in interface IMXGanttModel
        Returns:
      • setProjectStartEnd

        public void setProjectStartEnd(DateRange projectStartEnd)
      • setCurrentVisibleRange

        public void setCurrentVisibleRange(Range dateRange)
        Sets the last known visible range.
        Parameters:
        dateRange -
      • getCurrentVisibleRange

        public Range getCurrentVisibleRange()
        Gets the last known visible range... can be null.
      • setAllowPastLoad

        public void setAllowPastLoad(boolean allowPastLoad)
      • mergeChangedActivity

        public void mergeChangedActivity(Activity activity)
      • reservationIteratorForActivity

        public java.util.Iterator reservationIteratorForActivity(Activity activity)
      • addMinimalResource

        public MinimalResource addMinimalResource(java.lang.String key,
                                                  java.lang.String description,
                                                  java.lang.String objectName)
      • getMinimalResource

        public MinimalResource getMinimalResource(java.lang.String key)
      • saveChangedActivities

        public void saveChangedActivities()
                                   throws java.rmi.RemoteException,
                                          MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getAssignmentIDs

        public java.util.Set getAssignmentIDs()
      • getActivitiesByResource

        public java.util.List getActivitiesByResource(java.lang.String resource)
      • addActivityByResource

        public void addActivityByResource(java.lang.String resource,
                                          Activity activity)
      • addCraftSkillRank

        public void addCraftSkillRank(java.lang.String craft,
                                      java.lang.String skillLevel,
                                      java.lang.Integer rank)
      • getCraftSkillRank

        public java.lang.Integer getCraftSkillRank(java.lang.String craft,
                                                   java.lang.String skillLevel)