public class WOResourceDataManager extends AbstractResourceDataManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CACHEKEY_RESOURCECRAFTDATA |
static java.lang.String |
CACHEKEY_RESOURCECRAFTDATA_LOADED |
static java.lang.String |
CACHEKEY_RESOURCENONWORKDATA |
static java.lang.String |
CACHEKEY_RESOURCENONWORKDATA_LOADED |
static java.lang.String |
CACHEKEY_RESOURCEWORKDATA |
static java.lang.String |
CACHEKEY_RESOURCEWORKDATA_LOADED |
static java.lang.String |
GRAPHASSIGN |
protected static java.lang.String |
QBE_SEPARATOR_TOKEN |
Constructor and Description |
---|
WOResourceDataManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
addObjectToModel(ilog.views.gantt.IlvGanttModel model,
java.lang.Object object,
java.lang.Object parentObject)
Add resource object to the model
|
void |
applyResourceChange(MboRemote resourceMboRemote,
MXTransaction txn)
Apply resource changes to the database
|
protected java.lang.String |
getRepairFacilityRestriction()
Get the default restriction where clause
|
protected java.lang.String |
getResourceBaseQuery(int dbType,
java.lang.String projectId,
java.lang.String workType) |
void |
getResourceNonWorkData(java.lang.String objectName,
java.lang.String projectId)
get resource availability data.
|
void |
getResourceShiftAvailableData(java.lang.String objectName,
java.lang.String projectId)
get resource availability data.
|
void |
getResourceWorkData(java.lang.String objectName,
java.lang.String projectId)
get resource availability data.
|
void |
initializeResource(MXResource resource,
java.lang.String objectName,
MboRemote mboObject)
Initialize the resource after it is populated
|
void |
loadResource(MXResource resource,
java.lang.String objectName,
MboRemote mboObject)
Load resource
|
void |
loadResource(MXResource resource,
java.lang.String objectName,
MXGanttModel model)
Load resource
|
void |
populateResourcePropertyDetails()
Populate resource related properties
|
void |
populateResources(java.util.ArrayList queries)
Populate resources with queries provided
|
int |
resourceRecordCount(java.util.ArrayList queries)
Get the resource count of queries
|
java.util.List |
sortResourceChildren(ilog.views.gantt.IlvResource resource,
java.lang.String objectName,
MXGanttModel model)
Sort resource children
|
addToUnjoinedNodes, getDataManagerContext, getLogger, getObjectName, getProjectMbo, getSKDDD, getSqlLogger, getUserInfo, populateNode, populateNode, removeUnnecessaryNodes, setDataManagerContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setDataManagerContext
public static final java.lang.String GRAPHASSIGN
protected static final java.lang.String QBE_SEPARATOR_TOKEN
public static final java.lang.String CACHEKEY_RESOURCECRAFTDATA_LOADED
public static final java.lang.String CACHEKEY_RESOURCECRAFTDATA
public static final java.lang.String CACHEKEY_RESOURCENONWORKDATA_LOADED
public static final java.lang.String CACHEKEY_RESOURCENONWORKDATA
public static final java.lang.String CACHEKEY_RESOURCEWORKDATA_LOADED
public static final java.lang.String CACHEKEY_RESOURCEWORKDATA
public void initializeResource(MXResource resource, java.lang.String objectName, MboRemote mboObject) throws SchedulerException
initializeResource
in interface ResourceDataManager
initializeResource
in class AbstractResourceDataManager
resource
- object
- namembo
- objectSchedulerException
public int resourceRecordCount(java.util.ArrayList queries) throws SchedulerException
resourceRecordCount
in interface ResourceDataManager
resourceRecordCount
in class AbstractResourceDataManager
ArrayList
- queriesSchedulerException
protected void addObjectToModel(ilog.views.gantt.IlvGanttModel model, java.lang.Object object, java.lang.Object parentObject)
addObjectToModel
in class AbstractDataManager
model
- resource
- objectparent
- resourcepublic void populateResources(java.util.ArrayList queries) throws SchedulerException
populateResources
in interface ResourceDataManager
populateResources
in class AbstractResourceDataManager
ArrayList
- queriesSchedulerException
public void populateResourcePropertyDetails() throws SchedulerException
populateResourcePropertyDetails
in interface ResourceDataManager
populateResourcePropertyDetails
in class AbstractResourceDataManager
SchedulerException
public void applyResourceChange(MboRemote resourceMboRemote, MXTransaction txn) throws SchedulerException
applyResourceChange
in interface ResourceDataManager
applyResourceChange
in class AbstractResourceDataManager
resource
- mbotransaction
- SchedulerException
public void loadResource(MXResource resource, java.lang.String objectName, MboRemote mboObject) throws SchedulerException
loadResource
in interface ResourceDataManager
loadResource
in class AbstractResourceDataManager
resource
- object
- namembo
- objectSchedulerException
public void loadResource(MXResource resource, java.lang.String objectName, MXGanttModel model) throws SchedulerException
loadResource
in class AbstractResourceDataManager
resource
- object
- namemodel
- SchedulerException
public java.util.List sortResourceChildren(ilog.views.gantt.IlvResource resource, java.lang.String objectName, MXGanttModel model) throws SchedulerException
sortResourceChildren
in interface ResourceDataManager
sortResourceChildren
in class AbstractResourceDataManager
resource
- object
- namemodel
- SchedulerException
public void getResourceShiftAvailableData(java.lang.String objectName, java.lang.String projectId) throws SchedulerException
objectName
- projectId
- SchedulerException
public void getResourceNonWorkData(java.lang.String objectName, java.lang.String projectId) throws SchedulerException
objectName
- projectId
- SchedulerException
protected java.lang.String getResourceBaseQuery(int dbType, java.lang.String projectId, java.lang.String workType)
public void getResourceWorkData(java.lang.String objectName, java.lang.String projectId) throws SchedulerException
objectName
- projectId
- SchedulerException
protected java.lang.String getRepairFacilityRestriction() throws SchedulerException
SchedulerException