com.ibm.tivoli.maximo.skd.service

Class SKDAppServiceCache

  • java.lang.Object
    • com.ibm.tivoli.maximo.skd.service.SKDAppServiceCache


  • public class SKDAppServiceCache
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      SKDAppServiceCache(java.lang.String currentProjectId) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.HashMap getCalendarBreaks()
      returns the calendar breaks
      java.util.HashMap getDaysInShiftPattern()
      returns the days in shift pattern
      java.util.ArrayList getMergedWorkPeriods()
      returns the merged work periods
      java.lang.String getOrgId()
      returns the orgid for the current project
      java.lang.String getProjectName()
      returns the project name (name column from skdproject)
      java.util.HashMap getShiftCalMap()
      return the shift calendar map
      java.util.TreeMap getWorkPeriodPatternDaySeq()
      returns the merged work periods
      boolean hasShiftGridInfo()
      return true if we have cached shift grid information
      boolean isUIDebug()
      returns if we are running with the UI in debug mode
      void setShiftGridInfo(java.util.HashMap shiftCalMap, java.util.HashMap calendarBreaks, java.util.HashMap daysInShiftPattern, java.util.ArrayList mergedWorkPeriods, java.util.TreeMap workPeriodPatternDaySeq)
      Sets all of the shift background information (used by FWMShiftWorkingHourGrid) as a group
      void setUIDebug(boolean isUIDebug)
      set the UI debug flag
      void verifyProject(java.lang.String useWith, java.lang.String id, java.lang.String calendar, java.lang.String shift, java.util.Date startDate, java.util.Date endDate, java.lang.String projectName, java.lang.String orgId, java.util.Date startassigndate, boolean viewtype)
      Verifies the project including the id, calendar, shift, and start and end dates If anything has changed, then clear the cached information.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SKDAppServiceCache

        public SKDAppServiceCache(java.lang.String currentProjectId)
    • Method Detail

      • verifyProject

        public void verifyProject(java.lang.String useWith,
                                  java.lang.String id,
                                  java.lang.String calendar,
                                  java.lang.String shift,
                                  java.util.Date startDate,
                                  java.util.Date endDate,
                                  java.lang.String projectName,
                                  java.lang.String orgId,
                                  java.util.Date startassigndate,
                                  boolean viewtype)
        Verifies the project including the id, calendar, shift, and start and end dates If anything has changed, then clear the cached information.
        Parameters:
        id -
      • getShiftCalMap

        public java.util.HashMap getShiftCalMap()
        return the shift calendar map
        Returns:
      • getCalendarBreaks

        public java.util.HashMap getCalendarBreaks()
        returns the calendar breaks
        Returns:
      • getDaysInShiftPattern

        public java.util.HashMap getDaysInShiftPattern()
        returns the days in shift pattern
        Returns:
      • getMergedWorkPeriods

        public java.util.ArrayList getMergedWorkPeriods()
        returns the merged work periods
        Returns:
      • getWorkPeriodPatternDaySeq

        public java.util.TreeMap getWorkPeriodPatternDaySeq()
        returns the merged work periods
        Returns:
      • setShiftGridInfo

        public void setShiftGridInfo(java.util.HashMap shiftCalMap,
                                     java.util.HashMap calendarBreaks,
                                     java.util.HashMap daysInShiftPattern,
                                     java.util.ArrayList mergedWorkPeriods,
                                     java.util.TreeMap workPeriodPatternDaySeq)
        Sets all of the shift background information (used by FWMShiftWorkingHourGrid) as a group
        Parameters:
        shiftCalMap -
        calendarBreaks -
        daysInShiftPattern -
        mergedWorkPeriods -
      • hasShiftGridInfo

        public boolean hasShiftGridInfo()
        return true if we have cached shift grid information
        Returns:
      • isUIDebug

        public boolean isUIDebug()
        returns if we are running with the UI in debug mode
        Returns:
      • setUIDebug

        public void setUIDebug(boolean isUIDebug)
        set the UI debug flag
        Parameters:
        isUIDebug -
      • getProjectName

        public java.lang.String getProjectName()
        returns the project name (name column from skdproject)
        Returns:
      • getOrgId

        public java.lang.String getOrgId()
        returns the orgid for the current project
        Returns: