public class WOActivityDataManager extends AbstractActivityDataManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CACHEKEY_ASSIGNMENTACTIVITYMAP |
static java.lang.String |
CACHEKEY_ASSSIGNMENTMBOMAP |
static java.lang.String |
CACHEKEY_COSTTYPEDATA |
static java.lang.String |
CACHEKEY_COSTTYPEDATA_LOADED |
static java.lang.String |
CACHEKEY_GROUPINFOSET |
static java.lang.String |
CACHEKEY_WOMBOMAP |
Constructor and Description |
---|
WOActivityDataManager() |
Modifier and Type | Method and Description |
---|---|
int |
activityRecordCount(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> queryMap)
Get the actvity records for a list of queries
|
void |
applyActivityChange(MboRemote activityMboRemote,
MXTransaction txn)
Apply activity change to the database
|
void |
applyActivityChange(MboRemote activityMboRemote,
java.lang.String ids,
MXTransaction txn)
Apply activity changes to the oroginal table.
|
void |
applyAssignmentChanges(ilog.views.gantt.model.general.IlvGeneralActivity activity,
MXTransaction txn)
Save assignment with activity changes
|
void |
applyScenarioChange(MboRemote activity,
MboRemote parentactivity,
MXTransaction txn)
qiuping- scheduler752
Apply activity changes to the oroginal table.
|
void |
applyScenarioChange(MboRemote activity,
MboRemote parentactivity,
java.lang.String ids,
MXTransaction txn)
qiuping- scheduler752
Apply activity changes to the oroginal table.
|
double |
calculateHours(java.util.Date date1,
java.util.Date date2)
Calculate Elapsed Time in hours.
|
java.lang.String |
getCompleteQueryWhere(java.lang.String objectName,
java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> queryMap)
Get the complete where clause
|
java.lang.String |
getDefaultRestriction(java.lang.String objectName)
Get default restriction for object
|
java.util.List<ilog.views.gantt.IlvActivity> |
getModifiedActivityChildren(MXActivity activity,
java.lang.String objectName,
MboRemote mboObject,
MXGanttModel model)
Get modified children activities
|
java.lang.String |
getWOClassRestriction(java.lang.String objectName)
Get the workorder class restriction for object
|
void |
initializeActivity(MXActivity activity,
java.lang.String objectName,
MboRemote mboObject,
MXGanttModel model)
Initialize activity and populate information needed during initialization
|
void |
initializeActivityChildren(MXActivity activity,
java.lang.String objectName,
MboRemote mboObject,
MXGanttModel model)
Initialize activity children.
|
java.util.List<ilog.views.gantt.IlvActivity> |
linkChildDummyNode(MXActivity activity,
MXGanttModel model,
SKDAppService.ActivityData activityData)
Add dummy child node for an activity node.
|
void |
loadActivity(MXActivity activity,
java.lang.String objectName,
MboRemote mboObject)
Load activity
|
void |
loadActivity(MXActivity activity,
java.lang.String objectName,
MXGanttModel model)
Load activity
|
void |
loadAdditionalActivities(MXGanttModel model,
SKDAppService.ActivityData activityData)
Load additional activities
|
void |
loadCostTypeReservations(MXGanttModel model,
SKDAppService.ActivityData activityData)
Load cost type data
|
void |
loadCrewWorkAndNonWorkActivities(MXGanttModel model,
SKDAppService.ActivityData activityData) |
void |
loadWorkAndNonWorkActivities(MXGanttModel model,
SKDAppService.ActivityData activityData)
Load working and non working hours
|
void |
populateActivities(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> queryMap)
Populate activity records in skdactivity table
|
void |
populateActivityPropertyDetails()
Populate activity with activity property details.
|
void |
saveActivities(ilog.views.gantt.model.general.IlvGeneralActivity activity,
MXTransaction txn)
Save activities
|
java.util.List<ilog.views.gantt.IlvActivity> |
sortActivityChildren(ilog.views.gantt.IlvActivity activity,
java.lang.String objectName,
MXGanttModel model)
Sort activities and return a list.
|
deleteProjectData, duplicateProjectData, getAsyncCount, initializeActivity, saveActivities
getDataManagerContext, getLogger, getObjectName, getProjectMbo, getSqlLogger, getUserInfo, setDataManagerContext
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setDataManagerContext
public static final java.lang.String CACHEKEY_ASSIGNMENTACTIVITYMAP
public static final java.lang.String CACHEKEY_COSTTYPEDATA_LOADED
public static final java.lang.String CACHEKEY_COSTTYPEDATA
public static final java.lang.String CACHEKEY_WOMBOMAP
public static final java.lang.String CACHEKEY_ASSSIGNMENTMBOMAP
public static final java.lang.String CACHEKEY_GROUPINFOSET
public void initializeActivity(MXActivity activity, java.lang.String objectName, MboRemote mboObject, MXGanttModel model) throws SchedulerException
initializeActivity
in interface ActivityDataManager
initializeActivity
in class AbstractActivityDataManager
reservation
- objectName
- mboObject
- SchedulerException
public void initializeActivityChildren(MXActivity activity, java.lang.String objectName, MboRemote mboObject, MXGanttModel model) throws SchedulerException
initializeActivityChildren
in interface ActivityDataManager
initializeActivityChildren
in class AbstractActivityDataManager
activity
- objectName
- mbo
- model
- SchedulerException
public void loadActivity(MXActivity activity, java.lang.String objectName, MXGanttModel model) throws SchedulerException
loadActivity
in interface ActivityDataManager
loadActivity
in class AbstractActivityDataManager
MXActivity
- activityobject
- namemodel
- SchedulerException
public void loadActivity(MXActivity activity, java.lang.String objectName, MboRemote mboObject) throws SchedulerException
loadActivity
in interface ActivityDataManager
loadActivity
in class AbstractActivityDataManager
MXActivity
- activityobject
- namembo
- objectSchedulerException
public double calculateHours(java.util.Date date1, java.util.Date date2)
date1
- date2
- public java.lang.String getWOClassRestriction(java.lang.String objectName) throws SchedulerException
objectName
- SchedulerException
public java.lang.String getDefaultRestriction(java.lang.String objectName) throws SchedulerException
objectName
- SchedulerException
public java.lang.String getCompleteQueryWhere(java.lang.String objectName, java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> queryMap) throws MXException, java.rmi.RemoteException
objectName
- queryMap
- MXException
java.rmi.RemoteException
public int activityRecordCount(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> queryMap) throws SchedulerException
activityRecordCount
in interface ActivityDataManager
activityRecordCount
in class AbstractActivityDataManager
HashMap
SchedulerException
public void populateActivities(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> queryMap) throws SchedulerException
populateActivities
in interface ActivityDataManager
populateActivities
in class AbstractActivityDataManager
HashMap
SchedulerException
public void loadAdditionalActivities(MXGanttModel model, SKDAppService.ActivityData activityData) throws SchedulerException
loadAdditionalActivities
in interface ActivityDataManager
loadAdditionalActivities
in class AbstractActivityDataManager
mode
- activitydata
- SchedulerException
public void loadWorkAndNonWorkActivities(MXGanttModel model, SKDAppService.ActivityData activityData) throws SchedulerException
model
- activityData
- SchedulerException
public void populateActivityPropertyDetails() throws SchedulerException
populateActivityPropertyDetails
in interface ActivityDataManager
populateActivityPropertyDetails
in class AbstractActivityDataManager
SchedulerException
public void applyActivityChange(MboRemote activityMboRemote, MXTransaction txn) throws SchedulerException
AbstractActivityDataManager
applyActivityChange
in interface ActivityDataManager
applyActivityChange
in class AbstractActivityDataManager
SchedulerException
public void applyActivityChange(MboRemote activityMboRemote, java.lang.String ids, MXTransaction txn) throws SchedulerException
applyActivityChange
in interface ActivityDataManager
applyActivityChange
in class AbstractActivityDataManager
activityMboRemote
- - Activity mbotransaction
- SchedulerException
public void applyScenarioChange(MboRemote activity, MboRemote parentactivity, MXTransaction txn) throws SchedulerException
applyScenarioChange
in interface ActivityDataManager
applyScenarioChange
in class AbstractActivityDataManager
activityMboRemote
- - Activity mbotransaction
- SchedulerException
public void applyScenarioChange(MboRemote activity, MboRemote parentactivity, java.lang.String ids, MXTransaction txn) throws SchedulerException
applyScenarioChange
in interface ActivityDataManager
applyScenarioChange
in class AbstractActivityDataManager
activityMboRemote
- - Activity mboString
- - objectidstransaction
- SchedulerException
public java.util.List<ilog.views.gantt.IlvActivity> sortActivityChildren(ilog.views.gantt.IlvActivity activity, java.lang.String objectName, MXGanttModel model) throws SchedulerException
sortActivityChildren
in interface ActivityDataManager
sortActivityChildren
in class AbstractActivityDataManager
activity
- - ActivityobjectName
- - object namemodel
- SchedulerException
public java.util.List<ilog.views.gantt.IlvActivity> linkChildDummyNode(MXActivity activity, MXGanttModel model, SKDAppService.ActivityData activityData) throws SchedulerException
linkChildDummyNode
in interface ActivityDataManager
linkChildDummyNode
in class AbstractActivityDataManager
activity
- mxganttmodel
- activityData
- SchedulerException
public void saveActivities(ilog.views.gantt.model.general.IlvGeneralActivity activity, MXTransaction txn) throws SchedulerException
saveActivities
in interface ActivityDataManager
saveActivities
in class AbstractActivityDataManager
activity
- transaction
- SchedulerException
public void applyAssignmentChanges(ilog.views.gantt.model.general.IlvGeneralActivity activity, MXTransaction txn) throws java.lang.Exception
activity
- txn
- map
- to store children activity infojava.lang.Exception
public java.util.List<ilog.views.gantt.IlvActivity> getModifiedActivityChildren(MXActivity activity, java.lang.String objectName, MboRemote mboObject, MXGanttModel model) throws SchedulerException
getModifiedActivityChildren
in interface ActivityDataManager
getModifiedActivityChildren
in class AbstractActivityDataManager
activity
- object
- Namembo
- Model
- SchedulerException
public void loadCrewWorkAndNonWorkActivities(MXGanttModel model, SKDAppService.ActivityData activityData) throws SchedulerException
model
- activityData
- SchedulerException
public void loadCostTypeReservations(MXGanttModel model, SKDAppService.ActivityData activityData) throws SchedulerException
model
- activityData
- SchedulerException