public class SKDAppServiceCache
extends java.lang.Object
Constructor and Description |
---|
SKDAppServiceCache(java.lang.String currentProjectId) |
Modifier and Type | Method and Description |
---|---|
java.util.HashMap<java.lang.String,java.util.ArrayList> |
getCalendarBreaks()
returns the calendar breaks
|
java.util.HashMap<java.lang.String,java.lang.Integer> |
getDaysInShiftPattern()
returns the days in shift pattern
|
java.util.ArrayList<java.util.Date> |
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<java.lang.String,SKDCalendarInfo> |
getShiftCalMap()
return the shift calendar map
|
java.util.TreeMap<java.util.Date,java.lang.String> |
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<java.lang.String,SKDCalendarInfo> shiftCalMap,
java.util.HashMap<java.lang.String,java.util.ArrayList> calendarBreaks,
java.util.HashMap<java.lang.String,java.lang.Integer> daysInShiftPattern,
java.util.ArrayList<java.util.Date> mergedWorkPeriods,
java.util.TreeMap<java.util.Date,java.lang.String> 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.
|
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)
id
- public java.util.HashMap<java.lang.String,SKDCalendarInfo> getShiftCalMap()
public java.util.HashMap<java.lang.String,java.util.ArrayList> getCalendarBreaks()
public java.util.HashMap<java.lang.String,java.lang.Integer> getDaysInShiftPattern()
public java.util.ArrayList<java.util.Date> getMergedWorkPeriods()
public java.util.TreeMap<java.util.Date,java.lang.String> getWorkPeriodPatternDaySeq()
public void setShiftGridInfo(java.util.HashMap<java.lang.String,SKDCalendarInfo> shiftCalMap, java.util.HashMap<java.lang.String,java.util.ArrayList> calendarBreaks, java.util.HashMap<java.lang.String,java.lang.Integer> daysInShiftPattern, java.util.ArrayList<java.util.Date> mergedWorkPeriods, java.util.TreeMap<java.util.Date,java.lang.String> workPeriodPatternDaySeq)
shiftCalMap
- calendarBreaks
- daysInShiftPattern
- mergedWorkPeriods
- public boolean hasShiftGridInfo()
public boolean isUIDebug()
public void setUIDebug(boolean isUIDebug)
isUIDebug
- public java.lang.String getProjectName()
public java.lang.String getOrgId()