public class SKDAppService extends AppService implements SKDAppServiceRemote
Modifier and Type | Class and Description |
---|---|
class |
SKDAppService.ActivityData
Class to store activity information
|
class |
SKDAppService.ReservationData |
class |
SKDAppService.ResourceData |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPLINK_APPNAME |
static java.lang.String |
APPLINK_OBJECTNAME |
static java.lang.String |
MAP_LOGGER |
static java.lang.String |
OBJECTNAME_SKDACTIVITY |
static java.lang.String |
OBJECTNAME_SKDCONSTRAINT |
static java.lang.String |
OBJECTNAME_SKDRESERVATION |
static java.lang.String |
OBJECTNAME_SKDRESOURCE |
static java.lang.String |
SCHEDULER_SQLLOGGER |
static java.lang.String |
SKDACTIONINFOMAP_SEPARATOR
Key separator
"\u00ef\u00bf\u00bd"
|
int |
TRAVEL_TIME_MATRIX_API_ERROR_INVALID_ARGUMENTS |
int |
TRAVEL_TIME_MATRIX_API_ERROR_NO_RECORDS_SAVED |
int |
TRAVEL_TIME_MATRIX_API_NO_TABLE_UPDATE_NEEDED |
int |
TRAVEL_TIME_MATRIX_API_SUCCESS_TABLE_UPDATED |
int |
TRAVEL_TIME_MATRIX_API_WARNING_SOME_RECORDS_NOT_SAVED |
currentState, dbManager, INIT, liveObjCount, load, LOAD, mxServer, name, RUN, running, stateCmdList, stateList, STOP, url
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix
Constructor and Description |
---|
SKDAppService(MXServer mxServer)
Constructor for SKDAppService
|
Modifier and Type | Method and Description |
---|---|
boolean |
activitiesInitialized(MboRemote projectMbo)
Indicates if activities are initialized or not
|
protected void |
addToUnjoinedNodes(java.util.HashMap unjoinedNodes,
java.lang.String id,
java.lang.String parentId,
java.lang.Object nodeValue)
Add activities to unjoin nodes
|
protected void |
applyActivityChanges(UserInfo userInfo,
java.sql.Connection connection,
MboRemote project,
MboSetRemote activitySet,
MXTransaction txn)
Apply activity changes for the project
|
protected void |
applyActivityChanges(UserInfo userInfo,
java.sql.Connection connection,
MboRemote project,
MboSetRemote activitySet,
java.lang.String ids,
MXTransaction txn)
Apply activity changes for the project
|
protected void |
applyConstraintChanges(UserInfo userInfo,
java.sql.Connection connection,
MboRemote project,
MboSetRemote constraintSett,
MXTransaction txn)
Apply constraint changes for the project
|
protected void |
applyConstraintChanges(UserInfo userInfo,
java.sql.Connection connection,
MboRemote project,
MboSetRemote constraintSett,
java.lang.String ids,
MXTransaction txn)
Apply constraint changes for the project
|
protected void |
applyScenarioChanges(UserInfo userInfo,
java.sql.Connection connection,
MboRemote project,
MboSetRemote activitySet,
java.lang.String ids,
MXTransaction txn)
qiuping-scheduler752
Apply scenario changes for the project
|
void |
assignLaborCrewFromSuggestSet(MboSetRemote emWOAvailResSet,
UserInfo userInfo,
java.util.Date currentTime)
Assign labor or crew from suggest set
|
void |
assignLaborCrewtoEMWO(MboRemote wo,
MboRemote reqtoassign,
java.lang.String assigncrew,
java.lang.String assignlaborcode,
java.util.Date currentTime)
Assign labor or crew to assignment requirement
|
boolean |
asyncCommitNeeded(MboRemote projectMbo)
Check if commit will be done by async or not.
|
boolean |
autoAssignLaborCrewtoEMWO(ResourceFinder resFinder,
java.util.List resources,
java.lang.String resourcetype,
MboRemote wo,
MboRemote req,
boolean assignedlist,
java.util.Date currentTime,
java.util.HashMap AssignedEMResource)
Auto Assign labor or crew to assignment requirement
|
protected void |
cleanResourceUse(UserInfo userInfo,
MboRemote projectMbo)
Clean up skdresourceuse table.
|
void |
clearPopulateDataObjectsWhere() |
void |
clearState(SKDState lastSavedState)
Clear all state for the given project and user of the passed in state
|
void |
clearState(java.lang.String skdProjectId,
UserInfo info)
Clear all state for the given project and user of the passed in state
|
void |
commitMaxSchedule(UserInfo userInfo,
java.lang.String projectid,
boolean commitConstraintsOnly)
Commit modified Max schedule model changes to the database
|
void |
commitMaxSchedule(UserInfo userInfo,
java.lang.String projectid,
java.lang.String ids,
boolean commitConstraintsOnly)
Commit modified Max schedule model changes to the database
|
void |
commitModifiedModelChanges(UserInfo userInfo,
java.lang.String projectId)
Applies the changes made to the model data to the real data.
|
void |
commitModifiedModelChanges(UserInfo userInfo,
java.lang.String projectId,
boolean commitConstraintsOnly)
Applies the changes made to the model data to the real data.
|
void |
commitModifiedModelChanges(UserInfo userInfo,
java.lang.String projectId,
java.lang.String ids,
java.lang.String objectName)
Applies the changes made to the model data to the real data.
|
void |
commitModifiedModelChanges(UserInfo userInfo,
java.lang.String projectId,
java.lang.String ids,
java.lang.String objectName,
boolean commitConstraintsOnly)
Applies the changes made to the model data to the real data.
|
void |
commitScenario(UserInfo userInfo,
java.lang.String ScenarioProjectid)
qiuping-scheduler752
Applies the senario result to the real data.
|
void |
commitScenario(UserInfo userInfo,
java.lang.String ScenarioProjectid,
java.lang.String ids)
qiuping-scheduler752
Applies the senario result to the real data.
|
protected void |
copyMboValueInfo(UserInfo userInfo,
java.lang.String objectName,
java.lang.String attributeName,
MXGanttPropertyInfo mxgInfo)
Get MboValueInfoStatic for an attribute.
|
protected SKDAppService.ActivityData |
createActivityDataFromDB(UserInfo userInfo,
MXGanttModel model,
MboRemote project)
Load Activity data from database for a project
|
protected com.ibm.tivoli.maximo.skd.service.SKDAppService.ConstraintData |
createConstraintDataFromDB(UserInfo userInfo,
MXGanttModel model,
MboRemote project,
java.util.HashMap activityMap)
Loads constraint from database for a project.
|
protected DataManagerContext |
createDataManagerContext(UserInfo userInfo,
MboRemote project,
java.lang.String objectName)
Create Data Manager for a project
|
java.util.HashMap |
createKPIDataCache(MboSetRemote skdScenRunKPISet,
MboRemote resource,
java.util.Date startDate,
java.util.Date endDate)
Method to create a cache to store and serve data to the Scheduling Dashboard Resource Load data grid.
|
void |
createNewAssignment(MboRemote assignment,
MboRemote workOrder,
MXGanttModel model,
UserInfo userInfo)
Creates a new SKDActivity and SKDReservation record for the Assignment.
|
protected SKDAppService.ReservationData |
createReservationDataFromDB(UserInfo userInfo,
MXGanttModel model,
MboRemote project,
java.util.HashMap activityMap,
java.util.HashMap resourceMap)
Loads reservations from database for a project
|
protected SKDAppService.ResourceData |
createResourceDataFromDB(UserInfo userInfo,
MXGanttModel model,
MboRemote project)
Create resourcedata for a project.
|
protected SKDDefaultActionContext |
createSKDActionContext(UserInfo userInfo,
java.lang.String projectId,
java.lang.String objectName,
java.lang.String skdObjectName,
java.lang.String actionName)
Create skdaction context for a project
|
void |
deleteAssignment(long objectID,
UserInfo userInfo)
Marks SKDActivity and SKDReservation records as DELETED for removed assignment.
|
void |
deleteObjectData(UserInfo userInfo,
MboRemote projectMbo)
Delete data source related data for the project
|
void |
deleteProjectData(UserInfo userInfo,
MboRemote projectMbo)
Delete project and all its related data
|
void |
deleteSKDData(UserInfo userInfo,
MboRemote projectMbo)
deleted Scheduler intermediate table data for the project
|
void |
deleteSuggestResourceListtoEMWO(long skdprojectid,
UserInfo userInfo,
java.lang.String assignmentids)
delete suggest resource list for project before run dynamic scheduling
|
void |
deleteUncommitedDuplicateConstraints(long skdProjectID,
UserInfo userInfo)
Removes constraints duplicate and uncommited constraints.
|
void |
destroy()
Release system resources.
|
void |
duplicateObjectData(UserInfo userInfo,
java.lang.String orgProjectId,
MboRemote duplicateProjectMbo)
Duplicate data related to the data source.
|
void |
duplicateProjectData(UserInfo userInfo,
java.lang.String orgProjectId,
MboRemote duplicateProjectMbo)
Duplicates the project data i.e the same state as of now
|
void |
duplicateSKDAlternateAvail(UserInfo userInfo,
java.lang.String originalProjectID,
MboRemote duplicateProjectMbo)
Duplicates scheduler alternate availability info.
|
void |
duplicateSKDData(UserInfo userInfo,
java.lang.String orgProjectId,
MboRemote duplicateProjectMbo)
Duplicate scheduler intermediate tables.
|
int |
dynamicScheduling(UserInfo userInfo,
long skdprojectid,
java.lang.String emQuery,
boolean autoassign)
dynamic scheduling for emergency work
|
java.util.HashMap |
getActionTitle(UserInfo userInfo,
java.util.HashMap actionInfo)
Returns the Action title for an userinfo
|
java.util.HashMap |
getActionTitle(UserInfo userInfo,
java.util.HashMap actionInfo,
java.lang.String useWith)
Returns the Action title for an userinfo
|
MXGanttModel |
getActivitiesModel(UserInfo userInfo,
java.lang.String projectId) |
protected java.util.HashMap |
getAllQueryList(MboSetRemote querySet)
Get queries for an object
|
java.util.Properties |
getALLSKDViewerProperties()
Returns ALL the properties, which includes those from skdviewer.properties, and those from the System Properties
|
java.lang.String |
getAppDescForApp(java.lang.String appName,
UserInfo userInfo)
Return the description from maxapps table
|
protected java.util.Set |
getAppletExtensionInfoSet(UserInfo userInfo)
Returns the Applet Extension Info configured.
|
java.util.HashMap |
getAssetMntOpMap(MboRemote project,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String objectName,
java.util.HashMap shiftCalMap)
Get the Asset Maintenance and Operational Calendar.
|
java.util.HashMap |
getAssetMntOpMapPM(MboRemote project,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String objectName,
java.util.HashMap shiftCalMap)
Get the Asset Maintenance and Operational Calendar.
|
int |
getAsyncCount(MboRemote projectMbo,
MboSetRemote activitySet)
Duplicate data related to the data source.
|
java.util.HashMap |
getAuthAppDescMap(UserInfo userInfo,
java.util.List appList,
java.util.HashMap appDescMap)
Get the authorized application and its description.
|
ISKDAvailability |
getAvailabilities(UserInfo ui,
java.lang.String[] availParam)
Get availabilities data for a workorder or PM
|
DateRange |
getCalendarDates(MboRemote project) |
MboRemote |
getCalendarMbo(MboRemote project)
Returns the calendar for a project
|
ilog.views.gantt.IlvGanttModel |
getCapacityPlanningGapModel(UserInfo userInfo,
SKDCapacityPlanningGapRequestParams params)
For the given project, read the SKDWORKPLANCAPEXT table and build a MXGanttModel around that
information.
|
java.util.HashMap |
getCrewResourceSACodeList(java.util.HashMap laborResourceSACodeList,
MboRemote projectMbo)
get Crew Resource SACode List for project
|
java.util.TreeSet |
getDataGroupInfoSet(UserInfo userInfo,
java.lang.String projectId,
java.lang.String skdObjectName)
Returns the data group info list for the given project.
|
protected java.lang.Object |
getDataManagerInstance(SKDObjectManagerInfo skdObject)
Get the skd object class for a skd object
|
java.lang.String |
getDisplayDateTimePattern(UserInfo userInfo)
Get the display datetime pattern for the user.
|
java.util.concurrent.Future |
getFutureModel(UserInfo userInfo,
java.lang.String projectId) |
java.util.concurrent.Future |
getFutureModel(UserInfo userInfo,
java.lang.String projectId,
SKDAppServiceCache appCache) |
GanttConfigInfo |
getGanttConfigInfo(UserInfo userInfo,
MboRemote project)
Get GanttConfigInfo for an user and project mbo.
|
GanttConfigInfo |
getGanttConfigInfo(UserInfo userInfo,
MboRemote project,
SKDAppService.ActivityData activityData,
SKDAppService.ResourceData resourceData,
SKDAppService.ReservationData reservationData,
com.ibm.tivoli.maximo.skd.service.SKDAppService.ConstraintData constraintData,
java.util.HashMap appDescMap)
Get GanttConfigInfo for an user and project mbo and skd object data
|
GanttConfigInfo |
getGanttConfigInfo(UserInfo userInfo,
java.lang.String projectId)
Get GanttConfigInfo for an user and project unique id.
|
SKDItemAvailability |
getItemAvailabilities(UserInfo ui,
java.lang.String[] availParam)
Get itema nd tool availabilities data for a workorder
|
java.util.HashMap |
getLocationMntOpMap(MboRemote project,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String objectName,
java.util.HashMap shiftCalMap)
get location calendar map
|
java.util.HashMap |
getLocationMntOpMapPM(MboRemote project,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String objectName,
java.util.HashMap shiftCalMap)
get location calendar map
|
MXLogger |
getMapLogger() |
ilog.views.gantt.IlvGanttModel |
getModel(UserInfo userInfo,
MboRemote project,
UserInfo createdByUserInfo,
boolean getModelForCreatedUser)
Get Gantt model for a project
|
protected ilog.views.gantt.IlvGanttModel |
getModel(UserInfo userInfo,
MboRemote project,
UserInfo createdByUserInfo,
boolean getModelForCreatedUser,
SKDAppServiceCache appCache)
Get Gantt model for a project
|
ilog.views.gantt.IlvGanttModel |
getModel(UserInfo userInfo,
java.lang.String projectId)
Get Gantt model for a project
|
protected ilog.views.gantt.IlvGanttModel |
getModelForActivities(UserInfo userInfo,
MboRemote project,
UserInfo createdByUserInfo,
boolean getModelForCreatedUser)
Load the activities.
|
MXActivityFactory |
getNewMXActivityFactoryInstance()
Returns a new factory class for creating objects of type MXActivity
|
protected MXConstraintFactory |
getNewMXConstraintFactoryInstance()
Returns a new instance of a factory for creating objects of type MXConstraint.
|
protected MXGanttModel |
getNewMXGanttModelInstance()
Returns a new instance of a MXGanttModel.
|
MXReservationFactory |
getNewMXReservationFactoryInstance()
Returns a new instance of a factory for creating objects of type MXReservation.
|
protected MXResourceFactory |
getNewMXResourceFactory()
Returns a new instance of a factory for creating objects of type MXResource
|
java.lang.String |
getOriginalAppForApp(java.lang.String appName,
UserInfo userInfo)
Return the originalapp from maxapps table
|
java.util.HashMap |
getOverlappingMntOpSchedule(java.util.HashMap assetLocMntCalMap,
java.util.HashMap assetLocOpCalMap)
Get overlap schedule
|
MboRemote |
getParentActivity(MboRemote project,
java.lang.String parentid)
qiuping 7520
get parent activity SKDACtivityMbo of activity
|
java.lang.String |
getPopulateDataObjectsWhere(SKDProject projectMbo) |
DateRange |
getProjectDates(MboRemote project) |
DateRange |
getProjectDatesAdjustedForCalendar(MboRemote project,
DateRange calDates,
boolean trimByProject) |
protected java.lang.String |
getProjectKey(UserInfo info,
java.lang.String projectId) |
protected java.lang.String |
getProjectKeyIgnoreSessionId(java.util.Map cachedModels,
UserInfo info,
java.lang.String projectId) |
java.util.HashMap |
getPropertyTitle(UserInfo userInfo,
java.lang.String skdObjectName)
Returns the Property name and title for skdobjectname.
|
protected java.util.ArrayList |
getQueryList(MboSetRemote querySet)
Get the list of queries for query set.
|
java.util.HashMap |
getResourceSACodeList(MboRemote projectMbo)
get Resource SACode start and end List for project
|
protected java.util.Set |
getResourceViewInfoSet(UserInfo userInfo)
Returns the Resource View Info list configured.
|
protected java.util.Set |
getResourceViewInfoSet(UserInfo userInfo,
java.lang.String appName) |
protected java.util.Set |
getResourceViewInfoSet(UserInfo userInfo,
java.lang.String appName,
java.lang.String projectId) |
java.util.Date |
getServerDate()
Get server date
|
void |
getShiftInfoForDispatch(UserInfo userInfo,
MXGanttModel model,
MboRemote project,
boolean trimByProject)
fetches shift information for the dispatch applet
|
SKDAppServiceBeanRemote |
getSKDAppServiceBean(UserInfo userInfo)
Returns a new instance of the SKDAppServiceBean
|
protected java.util.Set |
getSKDDataGroupInfo(UserInfo userInfo)
Returns the Applet Extension Info configured.
|
java.util.HashMap |
getSKDDataGroupTitle(UserInfo userInfo,
java.lang.String projectId,
java.lang.String skdObjectName)
Returns the group name and title for skdobjectname.
|
SKDDD |
getSKDDD() |
java.util.HashMap |
getSKDMaxMessages(UserInfo userInfo)
Get the messages for an user.
|
ISKDUIInfo |
getSKDUIInfo(UserInfo userInfo)
Returns ISKDUIInfo information.
|
ISKDUIInfo |
getSKDUIInfo(UserInfo userInfo,
java.lang.String appName)
Returns ISKDUIInfo information.
|
ISKDUIInfo |
getSKDUIInfo(UserInfo userInfo,
java.lang.String appName,
java.lang.String projectId)
Returns ISKDUIInfo information.
|
SKDUserLocaleData |
getSKDUserLocaleData(UserInfo userInfo)
Get the Message and formatting data for user locale.
|
java.util.Properties |
getSKDViewerProperties()
Returns the overridden properties for the Scheduler Applet from the MAXPROP cache
|
protected java.util.Properties |
getSKDViewerPropertiesForPrefix(java.lang.String prefix,
java.util.Properties mxProperties) |
MXLogger |
getSqlLogger()
Get the logger
|
java.util.HashMap |
getTaskSACodeList(MboRemote projectMbo)
get Task SACode List for project
|
MboSetRemote |
getTemplatesMboSet(java.lang.String templateName,
MboRemote projectMbo) |
java.util.HashMap |
getWorkingHours(MboRemote project,
boolean trimByProject)
Read workperiod records and get working hours for a day for calendar and shift.
|
java.util.HashMap |
getWorkingHours(MboRemote project,
Range range)
Read workperiod records and get working hours for a day for calendar and shift.
|
protected void |
identifyAdditionalModifiedActivities(MXGanttModel model,
MXActivity parentActivity,
java.util.ArrayList modifiedActivities)
Identify additional activities that are modified
|
protected void |
identifyAndSaveAdditionalModifiedActivities(UserInfo userInfo,
MXGanttModel model,
MboRemote project)
Save modified properties for a project
|
void |
init()
Initialize the service
|
protected java.util.ArrayList |
initializeActivities(UserInfo userInfo,
MboRemote project,
SKDAppService.ActivityData activityData,
MXGanttModel model)
Initialize activity data for a project
|
protected java.util.ArrayList |
initializeConstraints(UserInfo userInfo,
MboRemote project,
com.ibm.tivoli.maximo.skd.service.SKDAppService.ConstraintData constraintData)
Initialize constraints for a project.
|
protected java.util.ArrayList |
initializeReservations(UserInfo userInfo,
MboRemote project,
SKDAppService.ReservationData reservationData)
Initializes reservation for a project.
|
protected java.util.ArrayList |
initializeResources(UserInfo userInfo,
MboRemote project,
SKDAppService.ResourceData resourceData)
Initialize resourcedata for a project.
|
static boolean |
isEAMSchedulerLicensePresent()
Returns true, if the EAM scheduler license is present, otherwise false.
|
static boolean |
isLicensePresent(java.lang.String lic)
returns true if the license is present
|
static boolean |
isScheduler7510LicensePresent()
Returns true, if the Scheduler 7.5.1.0 license is present, otherwise false.
|
static boolean |
isScheduler7520LicensePresent()
Returns true, if the Scheduler 7.5.2.0 license is present, otherwise false.
|
static boolean |
isSchedulerAviationLicensePresent()
Returns true, if the Scheduler Aviation license is present, otherwise false.
|
boolean |
isWorkorderSchedule(UserInfo userInfo,
java.lang.String skdProjectId)
Return true if it is workorder schedule.
|
protected void |
linkChildDummyNode(UserInfo userInfo,
MboRemote project,
MXGanttModel model,
SKDAppService.ActivityData activityData)
Add dummy child node for an activity node.In this case assignment dummy node is added.
|
protected SKDAppService.ActivityData |
loadActivities(UserInfo userInfo,
MXGanttModel model,
MboRemote project)
Load activities for a project
|
protected void |
loadAdditionalActivities(UserInfo userInfo,
MXGanttModel model,
MboRemote project,
SKDAppService.ActivityData activityData)
Load additional activities
|
void |
loadAdditionalReservations(UserInfo userInfo,
MXGanttModel model,
MboRemote project,
SKDAppService.ActivityData activityData,
SKDAppService.ResourceData resourceData,
SKDAppService.ReservationData reservationData) |
protected com.ibm.tivoli.maximo.skd.service.SKDAppService.ConstraintData |
loadConstraints(UserInfo userInfo,
MXGanttModel model,
MboRemote project,
SKDAppService.ActivityData activityData)
Load constraints for a project to the model.
|
protected SKDAppService.ReservationData |
loadReservations(UserInfo userInfo,
MXGanttModel model,
MboRemote project,
SKDAppService.ActivityData activityData,
SKDAppService.ResourceData resourceData)
Load reservations for a project to the model.
|
protected SKDAppService.ResourceData |
loadResources(UserInfo userInfo,
MXGanttModel model,
MboRemote project)
Load resources for a project.
|
java.util.concurrent.Future |
loadScheduleGR(java.lang.String projectId,
IProjectManagerCallback helper)
Load a Scheduler Max project by it's Scheduler Project ID
|
java.util.concurrent.Future |
loadScheduleGWA(java.lang.String projectId,
IProjectManagerCallback helper)
Load a Scheduler Max project by it's Scheduler Project ID
|
java.util.concurrent.Future |
loadScheduleMax(java.lang.String projectId,
IProjectManagerCallback helper)
Load a Scheduler Max project by it's Scheduler Project ID
|
SKDState |
loadState(SKDState lastSavedState) |
java.util.HashMap |
loadSystemPropMap(UserInfo ui)
Load system properties need to be passed to applet
|
java.lang.String |
loadTemplate(java.lang.String templateName,
MboRemote projectMbo,
SKDTemplateResolver alternateResolver)
Loads the given template from the database, and optionally, upgrades the template in the database if the
template is upgradeable and the digest values are different for the current and newly resolved template
|
static void |
logDebugStatementForInfo(MXLogger sqlLogger,
java.lang.String msgId,
java.lang.Object[] params)
Log the debug information for sql operation.
|
static void |
logDebugStatementForTime(MXLogger sqlLogger,
UserInfo userInfo,
java.sql.Connection connection,
java.lang.String projectId,
long timeTaken,
java.lang.String query)
Log the sql statement that takes more time than the timelimit
|
protected boolean |
notExistInProjActobjlist(UserInfo userInfo,
MboRemote projectMbo,
java.lang.String objName)
object exist in project activity objectlist
|
protected boolean |
notExistInProjResobjlist(UserInfo userInfo,
MboRemote projectMbo,
java.lang.String objName)
object exist in project activity objectlist
|
protected boolean |
notExistInProjRevobjlist(UserInfo userInfo,
MboRemote projectMbo,
java.lang.String objName)
object exist in project activity objectlist
|
java.lang.Object |
performSkdAction(java.lang.String projectId,
UserInfo ui,
java.lang.String actionId,
java.lang.Object actionObject,
boolean saveBeforeAction,
SKDAppServiceBeanRemote serviceBean)
Perform action by calling action class
|
protected void |
populateActivities(UserInfo userInfo,
MboRemote projectMbo,
int populateInt)
Populate activities for a project.
|
protected void |
populateActivityNode(java.util.HashMap unjoinedNodes,
java.lang.Object rootObject,
java.util.HashMap dataGroupActivityMap,
MXGanttModel model)
Populate activity nodes
|
protected void |
populateActivityNode(MXHierarchyNode node,
java.lang.Object parentObject,
MXGanttModel model)
Populate activity nodes
|
protected void |
populateActivityPropertyDetails(UserInfo userInfo,
MboRemote projectMbo)
Populates activity properties for a project
|
protected void |
populateConstraintPropertyDetails(UserInfo userInfo,
MboRemote projectMbo)
Populates constraint properties for a project
|
protected void |
populateConstraints(UserInfo userInfo,
MboRemote projectMbo,
int populateInt)
Populates constraints for a project
|
protected void |
populateCostResourceNode(java.util.HashMap unjoinedNodes,
java.lang.Object rootObject,
java.util.HashMap dataGroupResourceMap,
MboRemote project,
MXGanttModel model)
Populate cost resource node
|
void |
populateProjectData(UserInfo userInfo,
MboRemote projectMbo)
Populates skd tables with project information
|
void |
populateProjectData(UserInfo userInfo,
java.lang.String projectId)
Populates skd tables with project information
|
protected void |
populateReservationPropertyDetails(UserInfo userInfo,
MboRemote projectMbo)
Populates reservation properties for a project
|
protected void |
populateReservations(UserInfo userInfo,
MboRemote projectMbo,
int populateInt)
Populates reservations for a project
|
protected void |
populateResourceNode(java.util.HashMap unjoinedNodes,
java.lang.Object rootObject,
java.util.HashMap dataGroupResourceMap,
MboRemote project,
MXGanttModel model)
Populate resource node
|
protected void |
populateResourceNode(MXHierarchyNode node,
java.lang.Object parentObject,
MXGanttModel model)
Populate resource node.
|
protected void |
populateResourcePropertyDetails(UserInfo userInfo,
MboRemote projectMbo)
Populates resouce properties for a project
|
protected void |
populateResources(UserInfo userInfo,
MboRemote projectMbo,
int populateInt)
Populates resources for a project
|
static void |
populateResourceUse(java.sql.Connection conn,
UserInfo userInfo,
java.lang.String projectId,
MXLogger sqlLogger)
Deprecated.
Populate skdsourceuse table
Don't call this method,use the new method populateResourceUse(Connection conn,UserInfo userInfo, String projectId,MXLogger sqlLogger,String refObjName)
else resources will not be deleted properly.
|
static void |
populateResourceUse(java.sql.Connection conn,
UserInfo userInfo,
java.lang.String projectId,
MXLogger sqlLogger,
java.lang.String refObjName)
Populate skdresourceuse for the specific reference object
|
boolean |
PopulateSKDOrigiDestMatrix(MboRemote projectMbo)
populate skdorigindestmatrix for project - need invoke API updateTravelTimeMatrixFor(..)
|
void |
populateSKDPropValue(ilog.views.gantt.property.IlvUserPropertyHolder propValue,
java.lang.String propertyName,
int maxtype,
MboRemote mbo,
java.lang.String attributeName)
Populate property values
|
void |
publish(SKDProjectRemote skdProject) |
void |
refresh(SKDProjectRemote skdProject) |
void |
refreshActivity(IMXActivity activity,
java.util.Map workOrdersByID)
Refresh Activity from the Model.
|
java.util.List |
refreshModel(UserInfo userInfo,
MboRemote project,
MXGanttModel model)
Refresh the Maximo Gantt data model with new and/or updated data retrieved from the DB.
|
java.util.List |
refreshSelectedActivities(IMXGanttModel model,
UserInfo userInfo,
MboRemote projectMbo,
java.util.List selectedActivities,
boolean preserveSkdData)
Populates skd tables with project information
|
java.util.Map |
reloadWorkOrders(java.lang.String projectID,
UserInfo userInfo)
Refresh Project Work Orders.
|
java.util.List |
removeAssignedEMResource(java.util.List resoureSet,
java.lang.String resourcetype,
java.util.HashMap AssignedEMResource)
Auto Assign labor or crew to assignment requirement
|
void |
removeCachedModel(UserInfo info) |
void |
removeCachedModels(UserInfo info)
Remove model from memory cache.
|
protected void |
removeChildDummyActivitiesIfNoChild(MXGanttModel model)
Remove all child dummy activities if there is no children
|
protected void |
removeDummyActivitiesIfNoChild(MXGanttModel model,
MXActivity parentActivity) |
void |
removeFutureModel(UserInfo info,
java.lang.String projectId) |
void |
removeFutureModelIgnoreSessionID(UserInfo info,
java.lang.String projectId) |
protected void |
removeUnauthorizedActivities(MXGanttModel model,
MXActivity parentActivity)
Remote unauthorized activities from model.
|
protected void |
removeUnauthorizedConstraints(MXGanttModel model)
Remove unauthorized constraints from model.
|
protected void |
removeUnauthorizedReservations(MXGanttModel model)
Remove unauthorized reservations from model.
|
protected void |
removeUnauthorizedResources(MXGanttModel model,
MXResource parentResource)
Remove unauthorized resources from model.
|
protected void |
removeUnnecessaryNodes(java.util.HashMap unjoinedNodes)
Remove nodes that are not needed.
|
boolean |
runOptimization(SKDProjectRemote skdProject) |
java.util.concurrent.Future |
runtTask(java.util.concurrent.Callable task)
Run a task on the Scheduler Thread Pool, and return the result as a Future
|
protected void |
saveInitializedActivityChanges(UserInfo userInfo,
MboRemote project,
java.util.ArrayList modifiedActivities)
Save the Activity changes to the database.
|
protected void |
saveInitializedConstraintChanges(UserInfo userInfo,
MboRemote project,
java.util.ArrayList modifiedConstraints)
Save initialized constraints for a project.
|
void |
saveInitializedReservationChanges(UserInfo userInfo,
MboRemote project,
java.util.ArrayList modifiedReservations)
Save initialized reservations for a project.
|
protected void |
saveInitializedResourceChanges(UserInfo userInfo,
MboRemote project,
java.util.ArrayList modifiedResources)
Save initialized resource data to database.
|
void |
saveState(SKDState lastSavedState) |
void |
saveSuggestResourceListtoEMWO(java.util.List resoureSet,
MboRemote wo,
MboRemote reqtoassign,
java.util.HashMap woandtraveltime,
long skdprojectid,
UserInfo userInfo)
save suggest resource list for assignment requirement
|
protected void |
scanActivities(UserInfo userInfo,
MXGanttModel model,
MboRemote project,
SKDAppService.ActivityData activityData,
java.util.HashMap appDescMap)
Scan activities for an user
|
protected void |
scanConstraints(UserInfo userInfo,
MXGanttModel model,
MboRemote project,
com.ibm.tivoli.maximo.skd.service.SKDAppService.ConstraintData constraintData,
java.util.HashMap appDescMap)
Scan constraints for an user.
|
protected void |
scanReservations(UserInfo userInfo,
MXGanttModel model,
MboRemote project,
SKDAppService.ReservationData reservationData,
java.util.HashMap appDescMap)
Scan reservations for an user.
|
protected void |
scanResources(UserInfo userInfo,
MXGanttModel model,
MboRemote project,
SKDAppService.ResourceData resourceData,
java.util.HashMap appDescMap)
Scan resources for an user.
|
static java.lang.Double |
secondsToDuration(long seconds) |
protected void |
setAuthourizeApplinkAppList(java.lang.Object obj,
UserInfo userInfo,
java.util.HashMap appDescMap,
java.util.HashMap authAppList)
Find the applications that are authorized from the list of applink apps, and set to the property.
|
protected void |
setProjectPropertiesToActivity(MXActivity activity,
MboRemote project)
Set project properties to the activity
|
void |
updateAssignment(MboRemote assignment,
UserInfo userInfo)
Updates SKDActivity and SKDReservation records.
|
void |
updateCalendarInfoInProject(MboRemote project,
UserInfo userInfo,
IMXGanttModel model,
java.util.Date startDate,
java.util.Date endDate,
SKDAppServiceCache appCache,
boolean getModelForCreatedUser) |
int |
updateTravelTimeMatrixFor(java.lang.String orgId,
java.util.Map taskSACodeMap,
java.util.Map onTheFlyWOIDMap,
java.util.Map resourceStartSACodeMap,
java.util.Map resourceEndSACodeMap,
UserInfo userInfo)
API to update the SKDORIGINDESTMATRIX table with travel times retrieved from the map provider.
|
checkSecurity, configure, freeDBConnection, freeMboSet, getCriteria, getCriteriaList, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, initCriteriaList, isAppService, isRunning, isSingletonService, restart, setName, setProxy, setRunning, setURL, verifyUser, verifyUser
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUser
isAppService, isSingletonService, restart
public static final java.lang.String OBJECTNAME_SKDACTIVITY
public static final java.lang.String OBJECTNAME_SKDRESOURCE
public static final java.lang.String OBJECTNAME_SKDRESERVATION
public static final java.lang.String OBJECTNAME_SKDCONSTRAINT
public static final java.lang.String SCHEDULER_SQLLOGGER
public static final java.lang.String MAP_LOGGER
public static final java.lang.String APPLINK_OBJECTNAME
public static final java.lang.String APPLINK_APPNAME
public final int TRAVEL_TIME_MATRIX_API_SUCCESS_TABLE_UPDATED
public final int TRAVEL_TIME_MATRIX_API_NO_TABLE_UPDATE_NEEDED
public final int TRAVEL_TIME_MATRIX_API_ERROR_NO_RECORDS_SAVED
public final int TRAVEL_TIME_MATRIX_API_ERROR_INVALID_ARGUMENTS
public final int TRAVEL_TIME_MATRIX_API_WARNING_SOME_RECORDS_NOT_SAVED
public static final java.lang.String SKDACTIONINFOMAP_SEPARATOR
public SKDAppService(MXServer mxServer) throws java.rmi.RemoteException
mxServer
- java.rmi.RemoteException
public void init()
init
in interface Service
init
in class AppService
Service
public void destroy()
Service
destroy
in interface Service
destroy
in class AppService
Service
public void publish(SKDProjectRemote skdProject) throws MXException, java.rmi.RemoteException
publish
in interface SKDAppServiceRemote
MXException
java.rmi.RemoteException
throws MXException, RemoteException
public void refresh(SKDProjectRemote skdProject) throws MXException, java.rmi.RemoteException
refresh
in interface SKDAppServiceRemote
MXException
java.rmi.RemoteException
throws MXException, RemoteException
public boolean runOptimization(SKDProjectRemote skdProject) throws MXException, java.rmi.RemoteException
runOptimization
in interface SKDAppServiceRemote
MXException
java.rmi.RemoteException
throws MXException, RemoteException
public SKDAppServiceBeanRemote getSKDAppServiceBean(UserInfo userInfo) throws MXException, java.rmi.RemoteException
getSKDAppServiceBean
in interface SKDAppServiceRemote
userInfo
- user informationMXException
java.rmi.RemoteException
public void populateProjectData(UserInfo userInfo, java.lang.String projectId) throws MXException, java.rmi.RemoteException
populateProjectData
in interface SKDAppServiceRemote
userInfo
- user informationproject
- unique idMXException
java.rmi.RemoteException
public void populateProjectData(UserInfo userInfo, MboRemote projectMbo) throws MXException, java.rmi.RemoteException
populateProjectData
in interface SKDAppServiceRemote
userInfo
- user informationprojectMbo
- project mboMXException
java.rmi.RemoteException
public java.util.List refreshSelectedActivities(IMXGanttModel model, UserInfo userInfo, MboRemote projectMbo, java.util.List selectedActivities, boolean preserveSkdData) throws MXException, java.rmi.RemoteException
refreshSelectedActivities
in interface SKDAppServiceRemote
userInfo
- user informationprojectMbo
- project mboMXException
java.rmi.RemoteException
protected java.lang.String getProjectKey(UserInfo info, java.lang.String projectId)
public java.util.concurrent.Future runtTask(java.util.concurrent.Callable task)
task
- public java.util.concurrent.Future loadScheduleMax(java.lang.String projectId, IProjectManagerCallback helper)
projectId
- helper
- cache
- public java.util.concurrent.Future loadScheduleGWA(java.lang.String projectId, IProjectManagerCallback helper)
projectId
- helper
- cache
- public java.util.concurrent.Future loadScheduleGR(java.lang.String projectId, IProjectManagerCallback helper)
projectId
- helper
- cache
- public java.util.concurrent.Future getFutureModel(UserInfo userInfo, java.lang.String projectId)
public java.util.concurrent.Future getFutureModel(UserInfo userInfo, java.lang.String projectId, SKDAppServiceCache appCache)
public void removeCachedModels(UserInfo info)
SKDAppServiceRemote
removeCachedModels
in interface SKDAppServiceRemote
public void removeFutureModel(UserInfo info, java.lang.String projectId)
public void removeFutureModelIgnoreSessionID(UserInfo info, java.lang.String projectId)
protected java.lang.String getProjectKeyIgnoreSessionId(java.util.Map cachedModels, UserInfo info, java.lang.String projectId)
public void removeCachedModel(UserInfo info)
public ilog.views.gantt.IlvGanttModel getModel(UserInfo userInfo, java.lang.String projectId) throws MXException, java.rmi.RemoteException
getModel
in interface SKDAppServiceRemote
userInfo
- user information,project unique idproject
- idMXException
java.rmi.RemoteException
public ilog.views.gantt.IlvGanttModel getModel(UserInfo userInfo, MboRemote project, UserInfo createdByUserInfo, boolean getModelForCreatedUser) throws MXException, java.rmi.RemoteException
userInfo
- user information,project unique idproject
- idMXException
java.rmi.RemoteException
public MXGanttModel getActivitiesModel(UserInfo userInfo, java.lang.String projectId) throws java.rmi.RemoteException, MXException, java.sql.SQLException
java.rmi.RemoteException
MXException
java.sql.SQLException
protected ilog.views.gantt.IlvGanttModel getModel(UserInfo userInfo, MboRemote project, UserInfo createdByUserInfo, boolean getModelForCreatedUser, SKDAppServiceCache appCache) throws MXException, java.rmi.RemoteException
userInfo
- - User infoproject
- - project mbocreatedByUserInfo
- - created by userinfoboolean
- - is model data is for created by userMXException
java.rmi.RemoteException
public void updateCalendarInfoInProject(MboRemote project, UserInfo userInfo, IMXGanttModel model, java.util.Date startDate, java.util.Date endDate, SKDAppServiceCache appCache, boolean getModelForCreatedUser) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
protected ilog.views.gantt.IlvGanttModel getModelForActivities(UserInfo userInfo, MboRemote project, UserInfo createdByUserInfo, boolean getModelForCreatedUser) throws MXException, java.rmi.RemoteException
userInfo
- project
- createdByUserInfo
- getModelForCreatedUser
- MXException
java.rmi.RemoteException
public void duplicateProjectData(UserInfo userInfo, java.lang.String orgProjectId, MboRemote duplicateProjectMbo) throws MXException, java.rmi.RemoteException
duplicateProjectData
in interface SKDAppServiceRemote
userInfo
- projectId
- duplicateProjectMbo
- - Duplicated project MboMXException
java.rmi.RemoteException
public void duplicateObjectData(UserInfo userInfo, java.lang.String orgProjectId, MboRemote duplicateProjectMbo) throws MXException, java.rmi.RemoteException
userInfo
- orgProjectId
- duplicateProjectMbo
- MXException
java.rmi.RemoteException
public void duplicateSKDAlternateAvail(UserInfo userInfo, java.lang.String originalProjectID, MboRemote duplicateProjectMbo) throws MXException, java.rmi.RemoteException
duplicateSKDAlternateAvail
in interface SKDAppServiceRemote
userInfo
- projectName
- duplicateProjectId
- MXException
java.rmi.RemoteException
public void duplicateSKDData(UserInfo userInfo, java.lang.String orgProjectId, MboRemote duplicateProjectMbo) throws MXException, java.rmi.RemoteException
userInfo
- projectId
- duplicateProjectId
- MXException
java.rmi.RemoteException
protected MXGanttModel getNewMXGanttModelInstance()
protected void identifyAndSaveAdditionalModifiedActivities(UserInfo userInfo, MXGanttModel model, MboRemote project) throws MXException, java.rmi.RemoteException
userInfo
- model
- project
- MXException
java.rmi.RemoteException
protected void copyMboValueInfo(UserInfo userInfo, java.lang.String objectName, java.lang.String attributeName, MXGanttPropertyInfo mxgInfo) throws MXException, java.rmi.RemoteException
userInfo
- maximoDD
- mlDD
- objectName
- attributeName
- MXException
java.rmi.RemoteException
protected SKDAppService.ActivityData loadActivities(UserInfo userInfo, MXGanttModel model, MboRemote project) throws MXException, java.rmi.RemoteException
userInfo
- model
- project
- MXException
java.rmi.RemoteException
protected void loadAdditionalActivities(UserInfo userInfo, MXGanttModel model, MboRemote project, SKDAppService.ActivityData activityData) throws MXException, java.rmi.RemoteException
userInfo
- model
- project
- activityData
- MXException
java.rmi.RemoteException
protected SKDAppService.ActivityData createActivityDataFromDB(UserInfo userInfo, MXGanttModel model, MboRemote project) throws MXException, java.rmi.RemoteException
userInfo
- model
- project
- MXException
java.rmi.RemoteException
protected void linkChildDummyNode(UserInfo userInfo, MboRemote project, MXGanttModel model, SKDAppService.ActivityData activityData) throws MXException, java.rmi.RemoteException
activity
- mxganttmodel
- activityData
- SchedulerException
MXException
java.rmi.RemoteException
public java.util.HashMap getSKDDataGroupTitle(UserInfo userInfo, java.lang.String projectId, java.lang.String skdObjectName) throws MXException, java.rmi.RemoteException
userInfo
- project
- idskdObjectName
- MXException
java.rmi.RemoteException
public void populateSKDPropValue(ilog.views.gantt.property.IlvUserPropertyHolder propValue, java.lang.String propertyName, int maxtype, MboRemote mbo, java.lang.String attributeName) throws MXException, java.rmi.RemoteException
propValue
- propertyName
- maxtype
- mbo
- attributeName
- MXException
java.rmi.RemoteException
public MXActivityFactory getNewMXActivityFactoryInstance()
protected java.util.ArrayList initializeActivities(UserInfo userInfo, MboRemote project, SKDAppService.ActivityData activityData, MXGanttModel model) throws MXException, java.rmi.RemoteException
userInfo
- project
- activityData
- MXException
java.rmi.RemoteException
protected void saveInitializedActivityChanges(UserInfo userInfo, MboRemote project, java.util.ArrayList modifiedActivities) throws MXException, java.rmi.RemoteException
userInfo
- project
- ArrayList
- MXException
java.rmi.RemoteException
protected void scanActivities(UserInfo userInfo, MXGanttModel model, MboRemote project, SKDAppService.ActivityData activityData, java.util.HashMap appDescMap) throws MXException, java.rmi.RemoteException
userInfo
- model
- project
- activityData
- MXException
java.rmi.RemoteException
protected void setProjectPropertiesToActivity(MXActivity activity, MboRemote project) throws java.rmi.RemoteException, MXException
activity
- project
- java.rmi.RemoteException
MXException
protected void setAuthourizeApplinkAppList(java.lang.Object obj, UserInfo userInfo, java.util.HashMap appDescMap, java.util.HashMap authAppList) throws MXException
obj
- userInfo
- appDescMap
- MXException
protected void identifyAdditionalModifiedActivities(MXGanttModel model, MXActivity parentActivity, java.util.ArrayList modifiedActivities)
model
- parentActivity
- modifiedActivities
- protected void removeUnauthorizedActivities(MXGanttModel model, MXActivity parentActivity)
model
- parentActivity
- protected void removeDummyActivitiesIfNoChild(MXGanttModel model, MXActivity parentActivity)
protected void removeChildDummyActivitiesIfNoChild(MXGanttModel model)
model
- protected void populateActivityNode(java.util.HashMap unjoinedNodes, java.lang.Object rootObject, java.util.HashMap dataGroupActivityMap, MXGanttModel model)
unjoinedNodes
- rootObject
- model
- protected void populateActivityNode(MXHierarchyNode node, java.lang.Object parentObject, MXGanttModel model)
node
- parentObject
- model
- protected void addToUnjoinedNodes(java.util.HashMap unjoinedNodes, java.lang.String id, java.lang.String parentId, java.lang.Object nodeValue)
unjoinedNodes
- id
- parentId
- nodeValue
- protected void removeUnnecessaryNodes(java.util.HashMap unjoinedNodes)
unjoinedNodes
- protected SKDAppService.ResourceData loadResources(UserInfo userInfo, MXGanttModel model, MboRemote project) throws MXException, java.rmi.RemoteException
userInfo
- model
- project
- MXException
java.rmi.RemoteException
protected SKDAppService.ResourceData createResourceDataFromDB(UserInfo userInfo, MXGanttModel model, MboRemote project) throws MXException, java.rmi.RemoteException
userInfo
- model
- project
- MXException
java.rmi.RemoteException
protected MXResourceFactory getNewMXResourceFactory()
protected java.util.ArrayList initializeResources(UserInfo userInfo, MboRemote project, SKDAppService.ResourceData resourceData) throws MXException, java.rmi.RemoteException
userInfo
- project
- resourceData
- MXException
java.rmi.RemoteException
protected void saveInitializedResourceChanges(UserInfo userInfo, MboRemote project, java.util.ArrayList modifiedResources) throws MXException, java.rmi.RemoteException
userInfo
- project
- modifiedResources
- MXException
java.rmi.RemoteException
protected void scanResources(UserInfo userInfo, MXGanttModel model, MboRemote project, SKDAppService.ResourceData resourceData, java.util.HashMap appDescMap) throws MXException, java.rmi.RemoteException
userInfo
- model
- project
- resourceData
- MXException
java.rmi.RemoteException
protected void removeUnauthorizedResources(MXGanttModel model, MXResource parentResource)
model
- parentResource
- protected void scanReservations(UserInfo userInfo, MXGanttModel model, MboRemote project, SKDAppService.ReservationData reservationData, java.util.HashMap appDescMap) throws MXException, java.rmi.RemoteException
userInfo
- model
- project
- reservationData
- MXException
java.rmi.RemoteException
protected void removeUnauthorizedReservations(MXGanttModel model)
model
- protected void scanConstraints(UserInfo userInfo, MXGanttModel model, MboRemote project, com.ibm.tivoli.maximo.skd.service.SKDAppService.ConstraintData constraintData, java.util.HashMap appDescMap) throws MXException, java.rmi.RemoteException
userInfo
- model
- project
- constraintData
- MXException
java.rmi.RemoteException
protected void removeUnauthorizedConstraints(MXGanttModel model)
model
- protected void populateResourceNode(java.util.HashMap unjoinedNodes, java.lang.Object rootObject, java.util.HashMap dataGroupResourceMap, MboRemote project, MXGanttModel model) throws MXException, java.rmi.RemoteException
unjoinedNodes
- rootObject
- model
- MXException
java.rmi.RemoteException
protected void populateResourceNode(MXHierarchyNode node, java.lang.Object parentObject, MXGanttModel model)
node
- parentObject
- model
- protected void populateCostResourceNode(java.util.HashMap unjoinedNodes, java.lang.Object rootObject, java.util.HashMap dataGroupResourceMap, MboRemote project, MXGanttModel model) throws MXException, java.rmi.RemoteException
unjoinedNodes
- rootObject
- model
- MXException
java.rmi.RemoteException
protected SKDAppService.ReservationData createReservationDataFromDB(UserInfo userInfo, MXGanttModel model, MboRemote project, java.util.HashMap activityMap, java.util.HashMap resourceMap) throws MXException, java.rmi.RemoteException
userInfo
- model
- project
- activityMap
- resourceMap
- MXException
java.rmi.RemoteException
public MXReservationFactory getNewMXReservationFactoryInstance()
protected java.util.ArrayList initializeReservations(UserInfo userInfo, MboRemote project, SKDAppService.ReservationData reservationData) throws MXException, java.rmi.RemoteException
userInfo
- project
- reservationData
- MXException
java.rmi.RemoteException
public void saveInitializedReservationChanges(UserInfo userInfo, MboRemote project, java.util.ArrayList modifiedReservations) throws MXException, java.rmi.RemoteException
userInfo
- project
- modifiedReservations
- MXException
java.rmi.RemoteException
protected SKDAppService.ReservationData loadReservations(UserInfo userInfo, MXGanttModel model, MboRemote project, SKDAppService.ActivityData activityData, SKDAppService.ResourceData resourceData) throws MXException, java.rmi.RemoteException
userInfo
- model
- project
- activityData
- resourceData
- MXException
java.rmi.RemoteException
public void loadAdditionalReservations(UserInfo userInfo, MXGanttModel model, MboRemote project, SKDAppService.ActivityData activityData, SKDAppService.ResourceData resourceData, SKDAppService.ReservationData reservationData) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected com.ibm.tivoli.maximo.skd.service.SKDAppService.ConstraintData createConstraintDataFromDB(UserInfo userInfo, MXGanttModel model, MboRemote project, java.util.HashMap activityMap) throws MXException, java.rmi.RemoteException
userInfo
- model
- project
- activityMap
- MXException
java.rmi.RemoteException
protected MXConstraintFactory getNewMXConstraintFactoryInstance()
protected java.util.ArrayList initializeConstraints(UserInfo userInfo, MboRemote project, com.ibm.tivoli.maximo.skd.service.SKDAppService.ConstraintData constraintData) throws MXException, java.rmi.RemoteException
userInfo
- project
- constraintData
- MXException
java.rmi.RemoteException
protected void saveInitializedConstraintChanges(UserInfo userInfo, MboRemote project, java.util.ArrayList modifiedConstraints) throws MXException, java.rmi.RemoteException
userInfo
- project
- modifiedConstraints
- MXException
java.rmi.RemoteException
protected com.ibm.tivoli.maximo.skd.service.SKDAppService.ConstraintData loadConstraints(UserInfo userInfo, MXGanttModel model, MboRemote project, SKDAppService.ActivityData activityData) throws MXException, java.rmi.RemoteException
userInfo
- model
- project
- activityData
- MXException
java.rmi.RemoteException
protected java.util.HashMap getAllQueryList(MboSetRemote querySet) throws MXException, java.rmi.RemoteException
querySet
- MXException
java.rmi.RemoteException
protected java.util.ArrayList getQueryList(MboSetRemote querySet) throws MXException, java.rmi.RemoteException
querySet
- MXException
java.rmi.RemoteException
protected java.lang.Object getDataManagerInstance(SKDObjectManagerInfo skdObject) throws MXException
skdObject
- MXException
protected DataManagerContext createDataManagerContext(UserInfo userInfo, MboRemote project, java.lang.String objectName) throws MXException, java.rmi.RemoteException
userInfo
- projectId
- objectName
- MXException
java.rmi.RemoteException
public MXLogger getSqlLogger()
public MXLogger getMapLogger()
protected boolean notExistInProjActobjlist(UserInfo userInfo, MboRemote projectMbo, java.lang.String objName) throws MXException, java.rmi.RemoteException
userInfo
- projectMbo
- objName
- MXException
java.rmi.RemoteException
protected boolean notExistInProjResobjlist(UserInfo userInfo, MboRemote projectMbo, java.lang.String objName) throws MXException, java.rmi.RemoteException
userInfo
- projectMbo
- objName
- MXException
java.rmi.RemoteException
protected boolean notExistInProjRevobjlist(UserInfo userInfo, MboRemote projectMbo, java.lang.String objName) throws MXException, java.rmi.RemoteException
userInfo
- projectMbo
- objName
- MXException
java.rmi.RemoteException
protected void populateActivities(UserInfo userInfo, MboRemote projectMbo, int populateInt) throws MXException, java.rmi.RemoteException
userInfo
- projectMbo
- MXException
java.rmi.RemoteException
protected void populateActivityPropertyDetails(UserInfo userInfo, MboRemote projectMbo) throws MXException, java.rmi.RemoteException
userInfo
- projectMbo
- MXException
java.rmi.RemoteException
protected void cleanResourceUse(UserInfo userInfo, MboRemote projectMbo) throws java.lang.Exception
userInfo
- projectMbo
- java.lang.Exception
public static void populateResourceUse(java.sql.Connection conn, UserInfo userInfo, java.lang.String projectId, MXLogger sqlLogger) throws java.lang.Exception
conn
- userInfo
- projectId
- sqlLogger
- java.lang.Exception
public static void populateResourceUse(java.sql.Connection conn, UserInfo userInfo, java.lang.String projectId, MXLogger sqlLogger, java.lang.String refObjName) throws java.lang.Exception
conn
- userInfo
- projectId
- sqlLogger
- refObjName
- java.lang.Exception
protected void populateResources(UserInfo userInfo, MboRemote projectMbo, int populateInt) throws MXException, java.rmi.RemoteException
userInfo
- projectMbo
- MXException
java.rmi.RemoteException
protected void populateResourcePropertyDetails(UserInfo userInfo, MboRemote projectMbo) throws MXException, java.rmi.RemoteException
userInfo
- projectMbo
- MXException
java.rmi.RemoteException
protected void populateReservationPropertyDetails(UserInfo userInfo, MboRemote projectMbo) throws MXException, java.rmi.RemoteException
userInfo
- projectMbo
- MXException
java.rmi.RemoteException
protected void populateConstraintPropertyDetails(UserInfo userInfo, MboRemote projectMbo) throws MXException, java.rmi.RemoteException
userInfo
- projectMbo
- MXException
java.rmi.RemoteException
protected void populateReservations(UserInfo userInfo, MboRemote projectMbo, int populateInt) throws MXException, java.rmi.RemoteException
userInfo
- projectMbo
- MXException
java.rmi.RemoteException
protected void populateConstraints(UserInfo userInfo, MboRemote projectMbo, int populateInt) throws MXException, java.rmi.RemoteException
userInfo
- projectMbo
- MXException
java.rmi.RemoteException
public void commitScenario(UserInfo userInfo, java.lang.String ScenarioProjectid) throws MXException, java.rmi.RemoteException
commitScenario
in interface SKDAppServiceRemote
userInfo
- projectId
- MXException
java.rmi.RemoteException
public void commitScenario(UserInfo userInfo, java.lang.String ScenarioProjectid, java.lang.String ids) throws MXException, java.rmi.RemoteException
commitScenario
in interface SKDAppServiceRemote
userInfo
- ids
- projectId
- MXException
java.rmi.RemoteException
public void commitModifiedModelChanges(UserInfo userInfo, java.lang.String projectId) throws MXException, java.rmi.RemoteException
commitModifiedModelChanges
in interface SKDAppServiceRemote
userInfo
- projectId
- MXException
java.rmi.RemoteException
public void commitModifiedModelChanges(UserInfo userInfo, java.lang.String projectId, boolean commitConstraintsOnly) throws MXException, java.rmi.RemoteException
commitModifiedModelChanges
in interface SKDAppServiceRemote
userInfo
- projectId
- commitConstraintsOnly
- - Flag used to indicate that the commit action will only persist constraint changes.MXException
java.rmi.RemoteException
public void commitModifiedModelChanges(UserInfo userInfo, java.lang.String projectId, java.lang.String ids, java.lang.String objectName) throws MXException, java.rmi.RemoteException
commitModifiedModelChanges
in interface SKDAppServiceRemote
userInfo
- projectId
- MXException
java.rmi.RemoteException
public void commitModifiedModelChanges(UserInfo userInfo, java.lang.String projectId, java.lang.String ids, java.lang.String objectName, boolean commitConstraintsOnly) throws MXException, java.rmi.RemoteException
commitModifiedModelChanges
in interface SKDAppServiceRemote
userInfo
- projectId
- commitConstraintsOnly
- - Flag used to indicate that the commit action will only persist constraint changes.MXException
java.rmi.RemoteException
protected void applyScenarioChanges(UserInfo userInfo, java.sql.Connection connection, MboRemote project, MboSetRemote activitySet, java.lang.String ids, MXTransaction txn) throws MXException, java.rmi.RemoteException
userInfo
- connection
- project
- activitySet
- txn
- MXException
java.rmi.RemoteException
protected void applyActivityChanges(UserInfo userInfo, java.sql.Connection connection, MboRemote project, MboSetRemote activitySet, MXTransaction txn) throws MXException, java.rmi.RemoteException
userInfo
- connection
- project
- activitySet
- txn
- MXException
java.rmi.RemoteException
protected void applyActivityChanges(UserInfo userInfo, java.sql.Connection connection, MboRemote project, MboSetRemote activitySet, java.lang.String ids, MXTransaction txn) throws MXException, java.rmi.RemoteException
userInfo
- connection
- project
- activitySet
- txn
- MXException
java.rmi.RemoteException
protected void applyConstraintChanges(UserInfo userInfo, java.sql.Connection connection, MboRemote project, MboSetRemote constraintSett, MXTransaction txn) throws MXException, java.rmi.RemoteException
userInfo
- connection
- project
- constraintSett
- txn
- MXException
java.rmi.RemoteException
protected void applyConstraintChanges(UserInfo userInfo, java.sql.Connection connection, MboRemote project, MboSetRemote constraintSett, java.lang.String ids, MXTransaction txn) throws MXException, java.rmi.RemoteException
userInfo
- connection
- project
- constraintSett
- txn
- MXException
java.rmi.RemoteException
public GanttConfigInfo getGanttConfigInfo(UserInfo userInfo, java.lang.String projectId) throws MXException, java.rmi.RemoteException
getGanttConfigInfo
in interface SKDAppServiceRemote
userInfo
- projectid
- MXException
java.rmi.RemoteException
public GanttConfigInfo getGanttConfigInfo(UserInfo userInfo, MboRemote project) throws MXException, java.rmi.RemoteException
getGanttConfigInfo
in interface SKDAppServiceRemote
userInfo
- project
- mboMXException
java.rmi.RemoteException
public GanttConfigInfo getGanttConfigInfo(UserInfo userInfo, MboRemote project, SKDAppService.ActivityData activityData, SKDAppService.ResourceData resourceData, SKDAppService.ReservationData reservationData, com.ibm.tivoli.maximo.skd.service.SKDAppService.ConstraintData constraintData, java.util.HashMap appDescMap) throws MXException, java.rmi.RemoteException
userInfo
- project
- activityData
- resourceData
- reservationData
- constraintData
- MXException
java.rmi.RemoteException
public java.util.HashMap loadSystemPropMap(UserInfo ui) throws MXException, java.rmi.RemoteException
ui
- MXException
java.rmi.RemoteException
public java.util.HashMap getPropertyTitle(UserInfo userInfo, java.lang.String skdObjectName) throws MXException, java.rmi.RemoteException
userInfo
- skdObjectName
- MXException
java.rmi.RemoteException
public java.util.HashMap getActionTitle(UserInfo userInfo, java.util.HashMap actionInfo, java.lang.String useWith) throws MXException, java.rmi.RemoteException
userInfo
- HashMap - HashMap>
useWith
- String appnameMXException
java.rmi.RemoteException
public java.util.HashMap getActionTitle(UserInfo userInfo, java.util.HashMap actionInfo) throws MXException, java.rmi.RemoteException
userInfo
- HashMap - HashMap>
MXException
java.rmi.RemoteException
public java.util.HashMap getAuthAppDescMap(UserInfo userInfo, java.util.List appList, java.util.HashMap appDescMap) throws MXException, java.rmi.RemoteException
userInfo
- appList
- appDescMap
- MXException
java.rmi.RemoteException
public java.lang.String getAppDescForApp(java.lang.String appName, UserInfo userInfo) throws MXException, java.rmi.RemoteException
appName
- java.lang.Exception
MXException
java.rmi.RemoteException
public java.lang.String getOriginalAppForApp(java.lang.String appName, UserInfo userInfo) throws MXException, java.rmi.RemoteException
appName
- java.lang.Exception
MXException
java.rmi.RemoteException
public SKDUserLocaleData getSKDUserLocaleData(UserInfo userInfo) throws MXException, java.rmi.RemoteException
getSKDUserLocaleData
in interface SKDAppServiceRemote
MXException
java.rmi.RemoteException
public ISKDUIInfo getSKDUIInfo(UserInfo userInfo) throws MXException, java.rmi.RemoteException
getSKDUIInfo
in interface SKDAppServiceRemote
MXException
java.rmi.RemoteException
public ISKDUIInfo getSKDUIInfo(UserInfo userInfo, java.lang.String appName) throws MXException, java.rmi.RemoteException
getSKDUIInfo
in interface SKDAppServiceRemote
MXException
java.rmi.RemoteException
public ISKDUIInfo getSKDUIInfo(UserInfo userInfo, java.lang.String appName, java.lang.String projectId) throws MXException, java.rmi.RemoteException
getSKDUIInfo
in interface SKDAppServiceRemote
MXException
java.rmi.RemoteException
protected java.util.Set getSKDDataGroupInfo(UserInfo userInfo) throws MXException, java.rmi.RemoteException
userInfo
- MXException
java.rmi.RemoteException
protected java.util.Set getResourceViewInfoSet(UserInfo userInfo, java.lang.String appName) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected java.util.Set getResourceViewInfoSet(UserInfo userInfo) throws MXException, java.rmi.RemoteException
userInfo
- MXException
java.rmi.RemoteException
protected java.util.Set getResourceViewInfoSet(UserInfo userInfo, java.lang.String appName, java.lang.String projectId) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean isWorkorderSchedule(UserInfo userInfo, java.lang.String skdProjectId) throws MXException, java.rmi.RemoteException
userInfo
- skdProjectId
- MXException
java.rmi.RemoteException
protected java.util.Set getAppletExtensionInfoSet(UserInfo userInfo) throws MXException, java.rmi.RemoteException
userInfo
- MXException
java.rmi.RemoteException
public java.lang.String getDisplayDateTimePattern(UserInfo userInfo) throws MXException, java.rmi.RemoteException
userInfo
- java.lang.Exception
MXException
java.rmi.RemoteException
public java.util.HashMap getSKDMaxMessages(UserInfo userInfo) throws MXException, java.rmi.RemoteException
userInfo
- MXException
java.rmi.RemoteException
public java.util.HashMap getWorkingHours(MboRemote project, boolean trimByProject) throws SchedulerException, java.rmi.RemoteException
project
- trimByProject
- - Defines if SKDProject start and end dates should be used to filter the working hoursSchedulerException
java.rmi.RemoteException
public DateRange getCalendarDates(MboRemote project) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public DateRange getProjectDates(MboRemote project) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public DateRange getProjectDatesAdjustedForCalendar(MboRemote project, DateRange calDates, boolean trimByProject) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.util.HashMap getWorkingHours(MboRemote project, Range range) throws SchedulerException, java.rmi.RemoteException
project
- trimByProject
- - Defines if SKDProject start and end dates should be used to filter the working hoursSchedulerException
java.rmi.RemoteException
public MboRemote getCalendarMbo(MboRemote project) throws MXException, java.rmi.RemoteException
project
- MXException
java.rmi.RemoteException
public java.util.TreeSet getDataGroupInfoSet(UserInfo userInfo, java.lang.String projectId, java.lang.String skdObjectName) throws MXException, java.rmi.RemoteException
userInfo
- projectId
- skdObjectName
- MXException
java.rmi.RemoteException
public boolean asyncCommitNeeded(MboRemote projectMbo) throws MXException, java.rmi.RemoteException
asyncCommitNeeded
in interface SKDAppServiceRemote
project
- mbo
return true if async commit else falseMXException
java.rmi.RemoteException
public static void logDebugStatementForTime(MXLogger sqlLogger, UserInfo userInfo, java.sql.Connection connection, java.lang.String projectId, long timeTaken, java.lang.String query)
sqlLogger
- userInfo
- connection
- projectId
- - project idtimeTaken
- - time taken to execute the queryquery
- - query stringpublic static void logDebugStatementForInfo(MXLogger sqlLogger, java.lang.String msgId, java.lang.Object[] params)
sqlLogger
- msgId
- - message idparams
- - message parameterpublic java.lang.Object performSkdAction(java.lang.String projectId, UserInfo ui, java.lang.String actionId, java.lang.Object actionObject, boolean saveBeforeAction, SKDAppServiceBeanRemote serviceBean) throws MXException, java.rmi.RemoteException
performSkdAction
in interface SKDAppServiceRemote
projectId
- - Project id-
- userinfoactionid
- - Unique id of action in skdactionactionObject
- - object on which action will actsaveBeforeAction
- - flag to indicate if model need to be saved before action or not.MXException
java.rmi.RemoteException
protected SKDDefaultActionContext createSKDActionContext(UserInfo userInfo, java.lang.String projectId, java.lang.String objectName, java.lang.String skdObjectName, java.lang.String actionName) throws MXException, java.rmi.RemoteException
userInfo
- projectId
- - Project idobjectName
- - Name of the object for which action is definedskdObjectName
- - Scheduler object name like SKDACTIVITYactionName
- - Name of the actionMXException
java.rmi.RemoteException
public void deleteProjectData(UserInfo userInfo, MboRemote projectMbo) throws MXException, java.rmi.RemoteException
deleteProjectData
in interface SKDAppServiceRemote
-
- userinfo-
- Project mboMXException
java.rmi.RemoteException
public void deleteSKDData(UserInfo userInfo, MboRemote projectMbo) throws MXException, java.rmi.RemoteException
userInfo
- projectMbo
- MXException
java.rmi.RemoteException
public void deleteObjectData(UserInfo userInfo, MboRemote projectMbo) throws MXException, java.rmi.RemoteException
userInfo
- projectMbo
- MXException
java.rmi.RemoteException
public java.util.Date getServerDate() throws MXException, java.rmi.RemoteException
getServerDate
in interface SKDAppServiceRemote
MXException
java.rmi.RemoteException
public int getAsyncCount(MboRemote projectMbo, MboSetRemote activitySet) throws MXException, java.rmi.RemoteException
userInfo
- orgProjectId
- duplicateProjectMbo
- MXException
java.rmi.RemoteException
public static boolean isEAMSchedulerLicensePresent() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static boolean isScheduler7510LicensePresent() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static boolean isScheduler7520LicensePresent() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static boolean isSchedulerAviationLicensePresent() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static boolean isLicensePresent(java.lang.String lic) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public ISKDAvailability getAvailabilities(UserInfo ui, java.lang.String[] availParam) throws MXException, java.rmi.RemoteException
getAvailabilities
in interface SKDAppServiceRemote
userinfo
- parameters
- from UIMXException,
- RemoteExceptionMXException
java.rmi.RemoteException
public SKDItemAvailability getItemAvailabilities(UserInfo ui, java.lang.String[] availParam) throws MXException, java.rmi.RemoteException
getItemAvailabilities
in interface SKDAppServiceRemote
userinfo
- parameters
- from UIMXException,
- RemoteExceptionMXException
java.rmi.RemoteException
public void getShiftInfoForDispatch(UserInfo userInfo, MXGanttModel model, MboRemote project, boolean trimByProject) throws MXException, java.rmi.RemoteException
SKDAppServiceRemote
getShiftInfoForDispatch
in interface SKDAppServiceRemote
MXException
java.rmi.RemoteException
public boolean activitiesInitialized(MboRemote projectMbo) throws MXException, java.rmi.RemoteException
activitiesInitialized
in interface SKDAppServiceRemote
project
- MXException
java.rmi.RemoteException
public MboRemote getParentActivity(MboRemote project, java.lang.String parentid) throws MXException, java.rmi.RemoteException
project
- MXException
java.rmi.RemoteException
public ilog.views.gantt.IlvGanttModel getCapacityPlanningGapModel(UserInfo userInfo, SKDCapacityPlanningGapRequestParams params) throws java.rmi.RemoteException, MXException
getCapacityPlanningGapModel
in interface SKDAppServiceRemote
java.rmi.RemoteException
MXException
public boolean PopulateSKDOrigiDestMatrix(MboRemote projectMbo) throws MXException, java.rmi.RemoteException
PopulateSKDOrigiDestMatrix
in interface SKDAppServiceRemote
project
- MXException
java.rmi.RemoteException
public java.util.HashMap getTaskSACodeList(MboRemote projectMbo) throws MXException, java.rmi.RemoteException
project
- MXException
java.rmi.RemoteException
public java.util.HashMap getResourceSACodeList(MboRemote projectMbo) throws MXException, java.rmi.RemoteException
project
- MXException
java.rmi.RemoteException
public java.util.HashMap getCrewResourceSACodeList(java.util.HashMap laborResourceSACodeList, MboRemote projectMbo) throws MXException, java.rmi.RemoteException
project
- MXException
java.rmi.RemoteException
public int updateTravelTimeMatrixFor(java.lang.String orgId, java.util.Map taskSACodeMap, java.util.Map onTheFlyWOIDMap, java.util.Map resourceStartSACodeMap, java.util.Map resourceEndSACodeMap, UserInfo userInfo) throws java.io.IOException, java.lang.Exception
SKDAppServiceRemote
updateTravelTimeMatrixFor
in interface SKDAppServiceRemote
taskSACodeMap
- service address codes and lat/lng points for tasks (used as both origins and destinations)onTheFlyWOIDMap
- work order IDs and lat/lng points for "on the fly" work orders (used as both origins and destinations)resourceStartSACodeMap
- service address codes and lat/lng points of resource start locations (used as origins only)resourceEndSACodeMap
- service address codes and lat/lng points of resource end locations (used as destinations only)java.io.IOException
MXException
java.lang.Exception
public static java.lang.Double secondsToDuration(long seconds)
public int dynamicScheduling(UserInfo userInfo, long skdprojectid, java.lang.String emQuery, boolean autoassign) throws MXException, java.rmi.RemoteException
dynamicScheduling
in interface SKDAppServiceRemote
skdProjectId
- skdproject unique idemWhere
- skdproject unique idMXException
java.rmi.RemoteException
com.ibm.tivoli.maximo.skd.service.SKDAppService#dynamicScheduling()
public void deleteSuggestResourceListtoEMWO(long skdprojectid, UserInfo userInfo, java.lang.String assignmentids) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void saveSuggestResourceListtoEMWO(java.util.List resoureSet, MboRemote wo, MboRemote reqtoassign, java.util.HashMap woandtraveltime, long skdprojectid, UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void assignLaborCrewtoEMWO(MboRemote wo, MboRemote reqtoassign, java.lang.String assigncrew, java.lang.String assignlaborcode, java.util.Date currentTime) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean autoAssignLaborCrewtoEMWO(ResourceFinder resFinder, java.util.List resources, java.lang.String resourcetype, MboRemote wo, MboRemote req, boolean assignedlist, java.util.Date currentTime, java.util.HashMap AssignedEMResource) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void assignLaborCrewFromSuggestSet(MboSetRemote emWOAvailResSet, UserInfo userInfo, java.util.Date currentTime) throws MXException, java.rmi.RemoteException
assignLaborCrewFromSuggestSet
in interface SKDAppServiceRemote
MXException
java.rmi.RemoteException
com.ibm.tivoli.maximo.skd.service.SKDAppService#assignLaborCrewFromSuggestSet()
public java.util.List removeAssignedEMResource(java.util.List resoureSet, java.lang.String resourcetype, java.util.HashMap AssignedEMResource) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Properties getALLSKDViewerProperties() throws java.io.IOException
java.io.IOException
java.rmi.RemoteException
public java.util.Properties getSKDViewerProperties() throws java.rmi.RemoteException
getSKDViewerProperties
in interface SKDAppServiceRemote
java.rmi.RemoteException
protected java.util.Properties getSKDViewerPropertiesForPrefix(java.lang.String prefix, java.util.Properties mxProperties)
public SKDDD getSKDDD() throws MXException, java.rmi.RemoteException
getSKDDD
in interface SKDAppServiceRemote
MXException
java.rmi.RemoteException
public void saveState(SKDState lastSavedState) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public SKDState loadState(SKDState lastSavedState) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public MboSetRemote getTemplatesMboSet(java.lang.String templateName, MboRemote projectMbo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.lang.String loadTemplate(java.lang.String templateName, MboRemote projectMbo, SKDTemplateResolver alternateResolver) throws java.rmi.RemoteException, MXException
loadTemplate
in interface SKDAppServiceRemote
templateName
- template nameprojectMbo
- main scheduler project mboalternateResolver
- resolve to use when no template is foundjava.rmi.RemoteException
MXException
public java.util.HashMap getAssetMntOpMap(MboRemote project, java.util.Date startDate, java.util.Date endDate, java.lang.String objectName, java.util.HashMap shiftCalMap) throws SchedulerException
project
- startDate
- endDate
- objectName
- shiftCalMap
- SchedulerException
public java.util.HashMap getAssetMntOpMapPM(MboRemote project, java.util.Date startDate, java.util.Date endDate, java.lang.String objectName, java.util.HashMap shiftCalMap) throws SchedulerException
project
- startDate
- endDate
- objectName
- shiftCalMap
- SchedulerException
public java.util.HashMap getLocationMntOpMap(MboRemote project, java.util.Date startDate, java.util.Date endDate, java.lang.String objectName, java.util.HashMap shiftCalMap) throws SchedulerException
project
- startDate
- endDate
- objectName
- shiftCalMap
- SchedulerException
public java.util.HashMap getLocationMntOpMapPM(MboRemote project, java.util.Date startDate, java.util.Date endDate, java.lang.String objectName, java.util.HashMap shiftCalMap) throws SchedulerException
project
- startDate
- endDate
- objectName
- shiftCalMap
- SchedulerException
public java.util.HashMap getOverlappingMntOpSchedule(java.util.HashMap assetLocMntCalMap, java.util.HashMap assetLocOpCalMap)
public void clearState(SKDState lastSavedState) throws java.rmi.RemoteException, MXException
lastSavedState
- java.rmi.RemoteException
MXException
public void clearState(java.lang.String skdProjectId, UserInfo info) throws java.rmi.RemoteException, MXException
lastSavedState
- java.rmi.RemoteException
MXException
public void commitMaxSchedule(UserInfo userInfo, java.lang.String projectid, boolean commitConstraintsOnly) throws MXException, java.rmi.RemoteException
commitMaxSchedule
in interface SKDAppServiceRemote
userInfo
- projectId
- MXException
java.rmi.RemoteException
public void commitMaxSchedule(UserInfo userInfo, java.lang.String projectid, java.lang.String ids, boolean commitConstraintsOnly) throws MXException, java.rmi.RemoteException
commitMaxSchedule
in interface SKDAppServiceRemote
userInfo
- projectId
- ids
- MXException
java.rmi.RemoteException
public java.util.List refreshModel(UserInfo userInfo, MboRemote project, MXGanttModel model) throws MXException, java.rmi.RemoteException
refreshModel
in interface SKDAppServiceRemote
userInfo
- project
- model
- MXException
java.rmi.RemoteException
public java.util.Map reloadWorkOrders(java.lang.String projectID, UserInfo userInfo) throws java.rmi.RemoteException, MXException
reloadWorkOrders
in interface SKDAppServiceRemote
projectID
- userInfo
- java.rmi.RemoteException
MXException
public void refreshActivity(IMXActivity activity, java.util.Map workOrdersByID) throws java.rmi.RemoteException, MXException
refreshActivity
in interface SKDAppServiceRemote
activity
- workOrdersByID
- java.rmi.RemoteException
MXException
public void createNewAssignment(MboRemote assignment, MboRemote workOrder, MXGanttModel model, UserInfo userInfo) throws java.rmi.RemoteException, MXException
SKDAppServiceRemote
createNewAssignment
in interface SKDAppServiceRemote
java.rmi.RemoteException
MXException
public void deleteAssignment(long objectID, UserInfo userInfo) throws java.rmi.RemoteException, MXException
SKDAppServiceRemote
deleteAssignment
in interface SKDAppServiceRemote
java.rmi.RemoteException
MXException
public void updateAssignment(MboRemote assignment, UserInfo userInfo) throws java.rmi.RemoteException, MXException
SKDAppServiceRemote
updateAssignment
in interface SKDAppServiceRemote
java.rmi.RemoteException
MXException
public void deleteUncommitedDuplicateConstraints(long skdProjectID, UserInfo userInfo) throws java.rmi.RemoteException, MXException
SKDAppServiceRemote
deleteUncommitedDuplicateConstraints
in interface SKDAppServiceRemote
java.rmi.RemoteException
MXException
public java.lang.String getPopulateDataObjectsWhere(SKDProject projectMbo) throws java.rmi.RemoteException, MXException
getPopulateDataObjectsWhere
in interface SKDAppServiceRemote
java.rmi.RemoteException
MXException
public void clearPopulateDataObjectsWhere() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.util.HashMap createKPIDataCache(MboSetRemote skdScenRunKPISet, MboRemote resource, java.util.Date startDate, java.util.Date endDate) throws java.rmi.RemoteException, MXException
skdScenRunKPISet
- resource
- startDate
- endDate
- java.rmi.RemoteException
MXException