public class GRSchedule extends java.lang.Object implements IMXGanttModel
IMXGanttModel.PercentCompleteType
Constructor and Description |
---|
GRSchedule() |
GRSchedule(MboRemote project) |
Modifier and Type | Method and Description |
---|---|
MinimalResource |
addMinimalResource(java.lang.String key,
java.lang.String description,
java.lang.String objectName) |
void |
addResource(java.lang.String id,
Resource resource) |
boolean |
containsActivity(IMXActivity data) |
java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> |
getActivityApplinkList(java.lang.String className)
Get activity applink list for a class name
|
IMXActivity |
getActivityForId(java.lang.String id) |
Range<java.util.Date> |
getActualProjectStartEnd() |
Range<java.util.Date> |
getActualStartEnd()
Get the "actual" start/end of the project based simply looking at the
project work.
|
SKDAppServiceCache |
getAppServiceCache() |
java.util.Date |
getAssignStartDate() |
DateRange |
getCalculatedProjectMinMax()
This is a calculated project min max.
|
java.util.HashMap |
getCalendarBreakPatternCount() |
java.util.HashMap |
getCalendarBreakPatternMap() |
java.lang.String |
getCalendarNum() |
DateRange |
getCalendarStartEnd()
Returns the configured Calendar Start End dates.
|
IMXActivity |
getChildNode(IMXActivity activity,
int index) |
int |
getChildNodeCount(IMXActivity activity) |
UserInfo |
getCreatedUserInfo() |
UserInfo |
getCurrentUserInfo() |
Range<java.util.Date> |
getCurrentVisibleRange()
Gets the last known visible range...
|
int |
getDisplayRowCount()
Returns the rows in the Schedule are being displayed.
|
GanttConfig |
getGanttConfig() |
IGanttConfigInfo |
getGanttConfigInfo() |
java.lang.String |
getLocalizedScenarioFieldTitle() |
java.lang.String |
getLocalizedScenarioTitle() |
java.util.ArrayList<java.util.Date> |
getMergedNonWorkPeriod() |
java.util.ArrayList<java.util.Date> |
getMergedWorkPeriods() |
MinimalResource |
getMinimalResource(java.lang.String key) |
java.lang.String |
getNonEmptyTitleForProject() |
java.lang.String |
getOrgId() |
int |
getPages()
if a Paging Model, then return the number of pages, otherwise, return 1.
|
int |
getPageSize()
if a Paging Model, then return the number of rows in a page, other wise return total rows in the schedule
|
IMXActivity |
getParentForActivity(IMXActivity data) |
IMXGanttModel.PercentCompleteType |
getPercentCompleteType()
Returns the current % complete type for the project.
|
PrintConfig |
getPrintConfig() |
java.lang.String |
getProjectDescription() |
int |
getProjectEndOffsetDays() |
java.lang.String |
getProjectId() |
MboRemote |
getProjectMbo() |
java.lang.String |
getProjectName() |
int |
getProjectPercentComplete(IMXGanttModel.PercentCompleteType pcType) |
DateRange |
getProjectStartEnd()
Return the Project's Start/End from SKDPROJECT.
|
int |
getProjectStartOffsetDays() |
java.lang.String |
getProjectType() |
java.util.Properties |
getProperties() |
java.lang.String |
getResourceDisplay() |
IMXResource |
getResourceForId(java.lang.String id) |
GRResourceManager |
getResourceManager() |
com.ibm.json.java.JSONArray |
getResources() |
IMXActivity |
getRootNode() |
java.lang.String |
getScenarioName() |
java.util.Date |
getSelectedFirstDayWeek() |
java.util.HashMap<java.lang.String,SKDCalendarInfo> |
getShiftCalendarInfo() |
java.util.Map<java.lang.String,SKDShiftWorkTime> |
getShiftData() |
java.util.List<java.lang.String> |
getShifts() |
java.util.ArrayList<java.util.Date> |
getShiftWorkPeriod(java.lang.String shift)
Add the WorkPeriod information to the TreeGrid UI
|
SKDShiftWorkTime |
getShiftWorkTime(java.lang.String shift) |
java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> |
getSkdActionInfo()
Get action information
|
java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> |
getSkdActionInfo(java.lang.String useWith)
Get action information
|
java.util.HashMap<java.lang.Long,SKDActionInfo> |
getSkdActionUidInfo()
Get action information with key as action unique id
|
TableConfig |
getTableConfig() |
java.util.List<SKDActionInfo> |
getToolbarActions() |
ToolbarConfig |
getToolbarConfig() |
<T> T |
getUserData(java.lang.String key)
Returns a piece of transient, in-memory stored user data for this model.
|
java.util.Locale |
getUserLocale() |
java.util.TimeZone |
getUserTimezone() |
com.ibm.icu.util.ULocale |
getUserULocale() |
java.lang.String |
getUseWith() |
java.lang.String |
getWeekDay() |
WeekUtility |
getWeekUtility() |
java.util.HashMap<java.lang.String,SKDCalendarInfo> |
getWorkHourList() |
java.util.TreeMap<java.util.Date,java.lang.String> |
getWorkPeriodPatternDaySeq() |
void |
initWeekUtility() |
boolean |
isAllowPastLoadEnabled() |
boolean |
isAlternateAvailEnabled() |
boolean |
isComplianceEnabled() |
boolean |
isDefaultScenario() |
boolean |
isPagingModel()
Return true if the model is a paging model
|
boolean |
isRestrictWorkToDates() |
boolean |
isRollingProject() |
boolean |
isShowMaintOperFlag() |
boolean |
isViewType() |
java.util.Iterator<IMXConstraint> |
iterateConstraintsFromActivity(IMXActivity activity) |
void |
loadResource(IMXResource resource)
Load resource
|
void |
loadWeekData() |
void |
newConstraintFromActivity(java.lang.Object projectMbo,
IMXActivity activity,
java.sql.ResultSet resultSet) |
void |
normalizeDates()
Updates the calculated Min/Max based on the dates.
|
void |
reloadWeekData() |
java.util.Iterator<IMXReservation> |
reservationIteratorForResource(IMXResource resource)
Returns an Iterator of Reservations for the given Resource
|
void |
resetWeekUtility() |
void |
setActivityApplinkList(java.lang.String className,
java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> list)
Set activity applink list.
|
void |
setAllowPastLoad(boolean allowPastLoad) |
void |
setAlternateAvail(boolean useAlternateAvail) |
void |
setAppServiceCache(SKDAppServiceCache cache) |
void |
setAssetLocNonWorkHourList(java.util.HashMap<java.lang.String,SKDCalendarInfo> assetOpCalMap) |
void |
setAssetLocOverlapMap(java.util.HashMap<java.lang.String,java.util.ArrayList<SKDDateInterval>> assetOverlapCalMap) |
void |
setAssetLocWorkHourList(java.util.HashMap<java.lang.String,SKDCalendarInfo> assetMntCalMap) |
void |
setAssignStartDate(java.util.Date date) |
void |
setCalendarBreakPatternCount(java.util.HashMap<java.lang.String,java.lang.Integer> daysInShiftPattern) |
void |
setCalendarBreakPatternMap(java.util.HashMap<java.lang.String,java.util.ArrayList> calendarBreaks) |
void |
setCalendarNum(java.lang.String calNum) |
void |
setComplianceEnabled(boolean val) |
void |
setCreatedUserInfo(UserInfo createdUserInfo) |
void |
setCurrentUserInfo(UserInfo currentUserInfo) |
void |
setCurrentVisibleRange(Range<java.util.Date> dateRange)
Sets the last known visible range.
|
void |
setDefaultScenario(boolean isDefault) |
void |
setLocalizedScenarioTitle(java.lang.String title) |
void |
setMergedNonWorkPeriod(java.util.ArrayList<java.util.Date> mergedNonWorkPeriods) |
void |
setMergedWorkPeriod(java.util.ArrayList<java.util.Date> workPeriod) |
void |
setOrgId(java.lang.String orgId) |
void |
setProjectDescription(java.lang.String projectDescription) |
void |
setProjectEndOffsetDays(int projectEndOffsetDays) |
void |
setProjectId(java.lang.String id) |
void |
setProjectMbo(MboRemote projectMbo) |
void |
setProjectName(java.lang.String name) |
void |
setProjectPercentComplete(IMXGanttModel.PercentCompleteType pcType,
int val) |
void |
setProjectStartEnd(DateRange projectStartEnd) |
void |
setProjectStartOffsetDays(int projectStartOffsetDays) |
void |
setProjectType(java.lang.String projectType) |
void |
setProperties(java.util.Properties properties) |
void |
setResourceDisplay(java.lang.String resourceDisplay) |
void |
setResourceManager(GRResourceManager resManager) |
void |
setResources(com.ibm.json.java.JSONArray resources) |
void |
setRestrictWorkToDates(boolean restrictWorkToDates) |
void |
setRollingProject(boolean isRollingProject) |
void |
setScenarioName(java.lang.String name) |
void |
setSelectedFirstDayWeek(java.util.Date selectedFirstDayWeek) |
void |
setShiftCalendarInfo(java.util.HashMap<java.lang.String,SKDCalendarInfo> shiftCalendarInfo) |
void |
setShowMaintOperFlag(boolean show) |
void |
setSkdActionInfo(java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> info)
Set action information
|
void |
setSkdActionUidInfo(java.util.HashMap<java.lang.Long,SKDActionInfo> info)
Set action information with key as action unique id
|
void |
setUserData(java.lang.String key,
java.lang.Object data)
Sets a transient piece of user data in the model.
|
void |
setUseWith(java.lang.String useWith) |
void |
setViewType(boolean viewType) |
void |
setWeekday(java.lang.String weekday) |
void |
setWorkHourList(java.util.HashMap<java.lang.String,SKDCalendarInfo> shiftCalMap) |
void |
setWorkPeriodPatternDaySeq(java.util.TreeMap<java.util.Date,java.lang.String> workPeriodPatternDaySeq) |
public GRSchedule()
public GRSchedule(MboRemote project)
public UserInfo getCurrentUserInfo()
public UserInfo getCreatedUserInfo()
public TableConfig getTableConfig()
public GanttConfig getGanttConfig()
public ToolbarConfig getToolbarConfig()
public PrintConfig getPrintConfig()
public void setCurrentUserInfo(UserInfo currentUserInfo)
public void setCreatedUserInfo(UserInfo createdUserInfo)
public DateRange getProjectStartEnd()
IMXGanttModel
getProjectStartEnd
in interface IMXGanttModel
public void setProjectId(java.lang.String id)
public java.lang.String getProjectId()
getProjectId
in interface IMXGanttModel
public void setProjectName(java.lang.String name)
public void setProjectDescription(java.lang.String projectDescription)
public void setScenarioName(java.lang.String name)
public void setDefaultScenario(boolean isDefault)
public void setLocalizedScenarioTitle(java.lang.String title)
public java.lang.String getProjectName()
getProjectName
in interface IMXGanttModel
public java.lang.String getProjectDescription()
getProjectDescription
in interface IMXGanttModel
public java.lang.String getScenarioName()
getScenarioName
in interface IMXGanttModel
public boolean isDefaultScenario()
public java.lang.String getLocalizedScenarioTitle()
public DateRange getCalculatedProjectMinMax()
IMXGanttModel
getCalculatedProjectMinMax
in interface IMXGanttModel
public DateRange getCalendarStartEnd()
IMXGanttModel
getCalendarStartEnd
in interface IMXGanttModel
public void setUseWith(java.lang.String useWith)
setUseWith
in interface IMXGanttModel
public void setProjectType(java.lang.String projectType)
setProjectType
in interface IMXGanttModel
public void setCalendarNum(java.lang.String calNum)
public void setOrgId(java.lang.String orgId)
public void setAssignStartDate(java.util.Date date)
public void setViewType(boolean viewType)
public java.lang.String getUseWith()
public java.lang.String getProjectType()
public java.lang.String getCalendarNum()
public java.lang.String getOrgId()
public java.util.Date getAssignStartDate()
public boolean isViewType()
public void setShowMaintOperFlag(boolean show)
setShowMaintOperFlag
in interface IMXGanttModel
public boolean isShowMaintOperFlag()
public boolean isRollingProject()
public void setRollingProject(boolean isRollingProject)
public boolean isRestrictWorkToDates()
public void setRestrictWorkToDates(boolean restrictWorkToDates)
public void normalizeDates()
public Range<java.util.Date> getActualProjectStartEnd()
public java.util.HashMap<java.lang.String,SKDCalendarInfo> getShiftCalendarInfo()
getShiftCalendarInfo
in interface IMXGanttModel
public void setShiftCalendarInfo(java.util.HashMap<java.lang.String,SKDCalendarInfo> shiftCalendarInfo)
public java.util.Map<java.lang.String,SKDShiftWorkTime> getShiftData()
public java.util.ArrayList<java.util.Date> getMergedWorkPeriods()
getMergedWorkPeriods
in interface IMXGanttModel
public java.util.List<java.lang.String> getShifts()
getShifts
in interface IMXGanttModel
public SKDShiftWorkTime getShiftWorkTime(java.lang.String shift)
getShiftWorkTime
in interface IMXGanttModel
public java.util.Properties getProperties()
public void setProperties(java.util.Properties properties)
public void setSkdActionInfo(java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> info)
HashMap - HashMap> info
public java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> getSkdActionInfo()
getSkdActionInfo
in interface IMXGanttModel
public java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> getSkdActionInfo(java.lang.String useWith)
public void setSkdActionUidInfo(java.util.HashMap<java.lang.Long,SKDActionInfo> info)
HashMap
- infopublic java.util.HashMap<java.lang.Long,SKDActionInfo> getSkdActionUidInfo()
public <T> T getUserData(java.lang.String key)
IMXGanttModel
getUserData
in interface IMXGanttModel
public void setUserData(java.lang.String key, java.lang.Object data)
IMXGanttModel
setUserData
in interface IMXGanttModel
public MboRemote getProjectMbo()
public void setProjectMbo(MboRemote projectMbo)
public java.util.List<SKDActionInfo> getToolbarActions()
public java.util.ArrayList<java.util.Date> getShiftWorkPeriod(java.lang.String shift) throws java.io.IOException
gantt
- model
- java.io.IOException
public void setActivityApplinkList(java.lang.String className, java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> list)
className
- list
- public java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> getActivityApplinkList(java.lang.String className)
className
- public Range<java.util.Date> getActualStartEnd()
IMXGanttModel
getActualStartEnd
in interface IMXGanttModel
public java.util.Iterator<IMXReservation> reservationIteratorForResource(IMXResource resource)
IMXGanttModel
reservationIteratorForResource
in interface IMXGanttModel
public java.lang.String getNonEmptyTitleForProject()
public java.util.ArrayList<java.util.Date> getMergedNonWorkPeriod()
getMergedNonWorkPeriod
in interface IMXGanttModel
public IGanttConfigInfo getGanttConfigInfo()
getGanttConfigInfo
in interface IMXGanttModel
public java.util.HashMap getCalendarBreakPatternMap()
getCalendarBreakPatternMap
in interface IMXGanttModel
public java.util.TreeMap<java.util.Date,java.lang.String> getWorkPeriodPatternDaySeq()
getWorkPeriodPatternDaySeq
in interface IMXGanttModel
public java.util.HashMap getCalendarBreakPatternCount()
getCalendarBreakPatternCount
in interface IMXGanttModel
public java.lang.String getLocalizedScenarioFieldTitle()
getLocalizedScenarioFieldTitle
in interface IMXGanttModel
public java.util.HashMap<java.lang.String,SKDCalendarInfo> getWorkHourList()
getWorkHourList
in interface IMXGanttModel
public void setAssetLocWorkHourList(java.util.HashMap<java.lang.String,SKDCalendarInfo> assetMntCalMap)
setAssetLocWorkHourList
in interface IMXGanttModel
public void setAssetLocNonWorkHourList(java.util.HashMap<java.lang.String,SKDCalendarInfo> assetOpCalMap)
setAssetLocNonWorkHourList
in interface IMXGanttModel
public void setAssetLocOverlapMap(java.util.HashMap<java.lang.String,java.util.ArrayList<SKDDateInterval>> assetOverlapCalMap)
setAssetLocOverlapMap
in interface IMXGanttModel
public void setMergedNonWorkPeriod(java.util.ArrayList<java.util.Date> mergedNonWorkPeriods)
setMergedNonWorkPeriod
in interface IMXGanttModel
public void setMergedWorkPeriod(java.util.ArrayList<java.util.Date> workPeriod)
setMergedWorkPeriod
in interface IMXGanttModel
public void setWorkHourList(java.util.HashMap<java.lang.String,SKDCalendarInfo> shiftCalMap)
setWorkHourList
in interface IMXGanttModel
public void setCalendarBreakPatternMap(java.util.HashMap<java.lang.String,java.util.ArrayList> calendarBreaks)
setCalendarBreakPatternMap
in interface IMXGanttModel
public void setCalendarBreakPatternCount(java.util.HashMap<java.lang.String,java.lang.Integer> daysInShiftPattern)
setCalendarBreakPatternCount
in interface IMXGanttModel
public void setWorkPeriodPatternDaySeq(java.util.TreeMap<java.util.Date,java.lang.String> workPeriodPatternDaySeq)
setWorkPeriodPatternDaySeq
in interface IMXGanttModel
public SKDAppServiceCache getAppServiceCache()
public void setAppServiceCache(SKDAppServiceCache cache)
public void setAlternateAvail(boolean useAlternateAvail)
public void setResourceDisplay(java.lang.String resourceDisplay)
public void setWeekday(java.lang.String weekday)
public void addResource(java.lang.String id, Resource resource)
public IMXResource getResourceForId(java.lang.String id)
getResourceForId
in interface IMXGanttModel
public com.ibm.json.java.JSONArray getResources()
public void setResources(com.ibm.json.java.JSONArray resources)
public IMXGanttModel.PercentCompleteType getPercentCompleteType()
IMXGanttModel
getPercentCompleteType
in interface IMXGanttModel
public int getProjectPercentComplete(IMXGanttModel.PercentCompleteType pcType)
getProjectPercentComplete
in interface IMXGanttModel
public void setProjectPercentComplete(IMXGanttModel.PercentCompleteType pcType, int val)
setProjectPercentComplete
in interface IMXGanttModel
public boolean isPagingModel()
IMXGanttModel
isPagingModel
in interface IMXGanttModel
public int getPages()
IMXGanttModel
getPages
in interface IMXGanttModel
public int getPageSize()
IMXGanttModel
getPageSize
in interface IMXGanttModel
public void setComplianceEnabled(boolean val)
setComplianceEnabled
in interface IMXGanttModel
public boolean isComplianceEnabled()
isComplianceEnabled
in interface IMXGanttModel
public java.util.Locale getUserLocale()
getUserLocale
in interface IMXGanttModel
public com.ibm.icu.util.ULocale getUserULocale()
getUserULocale
in interface IMXGanttModel
public java.util.TimeZone getUserTimezone()
getUserTimezone
in interface IMXGanttModel
public boolean isAlternateAvailEnabled()
isAlternateAvailEnabled
in interface IMXGanttModel
public java.lang.String getResourceDisplay()
getResourceDisplay
in interface IMXGanttModel
public java.lang.String getWeekDay()
getWeekDay
in interface IMXGanttModel
public int getProjectStartOffsetDays()
getProjectStartOffsetDays
in interface IMXGanttModel
public int getProjectEndOffsetDays()
getProjectEndOffsetDays
in interface IMXGanttModel
public void setProjectStartEnd(DateRange projectStartEnd)
public void setProjectStartOffsetDays(int projectStartOffsetDays)
setProjectStartOffsetDays
in interface IMXGanttModel
public void setProjectEndOffsetDays(int projectEndOffsetDays)
setProjectEndOffsetDays
in interface IMXGanttModel
public void setCurrentVisibleRange(Range<java.util.Date> dateRange)
dateRange
- public Range<java.util.Date> getCurrentVisibleRange()
public java.util.Iterator<IMXConstraint> iterateConstraintsFromActivity(IMXActivity activity)
iterateConstraintsFromActivity
in interface IMXGanttModel
public void newConstraintFromActivity(java.lang.Object projectMbo, IMXActivity activity, java.sql.ResultSet resultSet)
newConstraintFromActivity
in interface IMXGanttModel
public int getChildNodeCount(IMXActivity activity)
getChildNodeCount
in interface IMXGanttModel
public IMXActivity getChildNode(IMXActivity activity, int index)
getChildNode
in interface IMXGanttModel
public IMXActivity getRootNode()
getRootNode
in interface IMXGanttModel
public boolean isAllowPastLoadEnabled()
isAllowPastLoadEnabled
in interface IMXGanttModel
public void setAllowPastLoad(boolean allowPastLoad)
public GRResourceManager getResourceManager()
public void setResourceManager(GRResourceManager resManager)
public java.util.Date getSelectedFirstDayWeek()
public void setSelectedFirstDayWeek(java.util.Date selectedFirstDayWeek)
public void loadWeekData()
public void reloadWeekData()
public MinimalResource addMinimalResource(java.lang.String key, java.lang.String description, java.lang.String objectName)
public MinimalResource getMinimalResource(java.lang.String key)
public WeekUtility getWeekUtility()
public void initWeekUtility()
public void resetWeekUtility()
public void loadResource(IMXResource resource) throws SchedulerException, MXException
resource
- object
- namembo
- objectSchedulerException
MXException
public boolean containsActivity(IMXActivity data)
containsActivity
in interface IMXGanttModel
public IMXActivity getParentForActivity(IMXActivity data)
getParentForActivity
in interface IMXGanttModel
public int getDisplayRowCount()
IMXGanttModel
getDisplayRowCount
in interface IMXGanttModel
public IMXActivity getActivityForId(java.lang.String id)
getActivityForId
in interface IMXGanttModel