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 |
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
|
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<java.lang.String,MboRemote> AssignedEMResource)
Auto Assign labor or crew to assignment requirement
|
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.
|
void |
createNewAssignment(MboRemote assignment,
MboRemote workOrder,
MXGanttModel model,
UserInfo userInfo)
Creates a new SKDActivity and SKDReservation record for the Assignment.
|
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<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> |
getActionTitle(UserInfo userInfo,
java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> actionInfo)
Returns the Action title for an userinfo
|
java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> |
getActionTitle(UserInfo userInfo,
java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> actionInfo,
java.lang.String useWith)
Returns the Action title for an userinfo
|
MXGanttModel |
getActivitiesModel(UserInfo userInfo,
java.lang.String projectId) |
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
|
java.util.HashMap<java.lang.String,SKDCalendarInfo> |
getAssetMntOpMap(MboRemote project,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String objectName,
java.util.HashMap<java.lang.String,SKDCalendarInfo> shiftCalMap)
Get the Asset Maintenance and Operational Calendar.
|
java.util.HashMap<java.lang.String,SKDCalendarInfo> |
getAssetMntOpMapPM(MboRemote project,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String objectName,
java.util.HashMap<java.lang.String,SKDCalendarInfo> shiftCalMap)
Get the Asset Maintenance and Operational Calendar.
|
int |
getAsyncCount(MboRemote projectMbo,
MboSetRemote activitySet)
Duplicate data related to the data source.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getAuthAppDescMap(UserInfo userInfo,
java.util.List<java.lang.String> appList,
java.util.HashMap<java.lang.String,java.lang.String> 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<java.lang.String,java.util.HashMap<java.lang.String,SKDMAPInputParamInfo>> laborResourceSACodeList,
MboRemote projectMbo)
get Crew Resource SACode List for project
|
java.util.TreeSet<SKDDataGroupInfo> |
getDataGroupInfoSet(UserInfo userInfo,
java.lang.String projectId,
java.lang.String skdObjectName)
Returns the data group info list for the given project.
|
java.lang.String |
getDisplayDateTimePattern(UserInfo userInfo)
Get the display datetime pattern for the user.
|
java.util.concurrent.Future<MXGanttModel> |
getFutureModel(UserInfo userInfo,
java.lang.String projectId) |
java.util.concurrent.Future<MXGanttModel> |
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<java.lang.String,java.lang.String> 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<java.lang.String,SKDCalendarInfo> |
getLocationMntOpMap(MboRemote project,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String objectName,
java.util.HashMap<java.lang.String,SKDCalendarInfo> shiftCalMap)
get location calendar map
|
java.util.HashMap<java.lang.String,SKDCalendarInfo> |
getLocationMntOpMapPM(MboRemote project,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String objectName,
java.util.HashMap<java.lang.String,SKDCalendarInfo> 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
|
ilog.views.gantt.IlvGanttModel |
getModel(UserInfo userInfo,
java.lang.String projectId)
Get Gantt model for a project
|
MXActivityFactory |
getNewMXActivityFactoryInstance()
Returns a new factory class for creating objects of type MXActivity
|
MXReservationFactory |
getNewMXReservationFactoryInstance()
Returns a new instance of a factory for creating objects of type MXReservation.
|
java.lang.String |
getOriginalAppForApp(java.lang.String appName,
UserInfo userInfo)
Return the originalapp from maxapps table
|
java.util.HashMap<java.lang.String,java.util.ArrayList<SKDDateInterval>> |
getOverlappingMntOpSchedule(java.util.HashMap<java.lang.String,SKDCalendarInfo> assetLocMntCalMap,
java.util.HashMap<java.lang.String,SKDCalendarInfo> 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) |
java.util.HashMap<java.lang.String,java.lang.String> |
getPropertyTitle(UserInfo userInfo,
java.lang.String skdObjectName)
Returns the Property name and title for skdobjectname.
|
java.util.HashMap |
getResourceSACodeList(MboRemote projectMbo)
get Resource SACode start and end List for project
|
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
|
java.util.HashMap<java.lang.String,java.lang.String> |
getSKDDataGroupTitle(UserInfo userInfo,
java.lang.String projectId,
java.lang.String skdObjectName)
Returns the group name and title for skdobjectname.
|
SKDDD |
getSKDDD() |
java.util.HashMap<java.lang.String,SKDMessage> |
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
|
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<java.lang.String,SKDCalendarInfo> |
getWorkingHours(MboRemote project,
boolean trimByProject)
Read workperiod records and get working hours for a day for calendar and shift.
|
java.util.HashMap<java.lang.String,SKDCalendarInfo> |
getWorkingHours(MboRemote project,
Range<java.util.Date> range)
Read workperiod records and get working hours for a day for calendar and shift.
|
void |
init()
Initialize the service
|
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.
|
void |
loadAdditionalReservations(UserInfo userInfo,
MXGanttModel model,
MboRemote project,
SKDAppService.ActivityData activityData,
SKDAppService.ResourceData resourceData,
SKDAppService.ReservationData reservationData) |
java.util.concurrent.Future<GRSchedule> |
loadScheduleGR(java.lang.String projectId,
IProjectManagerCallback helper)
Load a Scheduler Max project by it's Scheduler Project ID
|
java.util.concurrent.Future<GWASchedule> |
loadScheduleGWA(java.lang.String projectId,
IProjectManagerCallback helper)
Load a Scheduler Max project by it's Scheduler Project ID
|
java.util.concurrent.Future<Schedule> |
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<java.lang.String,java.lang.Object> |
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
|
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
|
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
|
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 |
refreshActivity(IMXActivity activity,
java.util.Map<java.lang.Long,MboRemote> workOrdersByID)
Refresh Activity from the Model.
|
java.util.List<MXReservation> |
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<IMXActivity> |
refreshSelectedActivities(IMXGanttModel model,
UserInfo userInfo,
MboRemote projectMbo,
java.util.List<IMXActivity> selectedActivities,
boolean preserveSkdData)
Populates skd tables with project information
|
java.util.Map<java.lang.Long,MboRemote> |
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<java.lang.String,MboRemote> AssignedEMResource)
Auto Assign labor or crew to assignment requirement
|
void |
removeCachedModel(UserInfo info) |
void |
removeCachedModels(UserInfo info)
Remove model from memory cache.
|
void |
removeFutureModel(UserInfo info,
java.lang.String projectId) |
<T> java.util.concurrent.Future<T> |
runtTask(java.util.concurrent.Callable<T> task)
Run a task on the Scheduler Thread Pool, and return the result as a Future
|
void |
saveInitializedReservationChanges(UserInfo userInfo,
MboRemote project,
java.util.ArrayList<MXReservation> modifiedReservations)
Save initialized reservations for a project.
|
void |
saveState(SKDState lastSavedState) |
void |
saveSuggestResourceListtoEMWO(java.util.List resoureSet,
MboRemote wo,
MboRemote reqtoassign,
java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>> woandtraveltime,
long skdprojectid,
UserInfo userInfo)
save suggest resource list for assignment requirement
|
static java.lang.Double |
secondsToDuration(long seconds) |
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<java.lang.String,SKDMAPInputParamInfo> taskSACodeMap,
java.util.Map<java.lang.String,SKDMAPInputParamInfo> onTheFlyWOIDMap,
java.util.Map<java.lang.String,SKDMAPInputParamInfo> resourceStartSACodeMap,
java.util.Map<java.lang.String,SKDMAPInputParamInfo> resourceEndSACodeMap,
UserInfo userInfo)
API to update the SKDORIGINDESTMATRIX table with travel times retrieved from the map provider.
|
checkSecurity, configure, freeDBConnection, freeMboSet, getCriteria, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, initCriteriaList, isAppService, isRunning, isSingletonService, restart, setProxy, setRunning, setURL, verifyUser, verifyUser
equals, 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 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<IMXActivity> refreshSelectedActivities(IMXGanttModel model, UserInfo userInfo, MboRemote projectMbo, java.util.List<IMXActivity> selectedActivities, boolean preserveSkdData) throws MXException, java.rmi.RemoteException
refreshSelectedActivities
in interface SKDAppServiceRemote
userInfo
- user informationprojectMbo
- project mboMXException
java.rmi.RemoteException
public <T> java.util.concurrent.Future<T> runtTask(java.util.concurrent.Callable<T> task)
task
- public java.util.concurrent.Future<Schedule> loadScheduleMax(java.lang.String projectId, IProjectManagerCallback helper)
projectId
- helper
- cache
- public java.util.concurrent.Future<GWASchedule> loadScheduleGWA(java.lang.String projectId, IProjectManagerCallback helper)
projectId
- helper
- cache
- public java.util.concurrent.Future<GRSchedule> loadScheduleGR(java.lang.String projectId, IProjectManagerCallback helper)
projectId
- helper
- cache
- public java.util.concurrent.Future<MXGanttModel> getFutureModel(UserInfo userInfo, java.lang.String projectId)
public java.util.concurrent.Future<MXGanttModel> 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 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
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
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
public java.util.HashMap<java.lang.String,java.lang.String> 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()
public MXReservationFactory getNewMXReservationFactoryInstance()
public void saveInitializedReservationChanges(UserInfo userInfo, MboRemote project, java.util.ArrayList<MXReservation> modifiedReservations) throws MXException, java.rmi.RemoteException
userInfo
- project
- modifiedReservations
- 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
public MXLogger getSqlLogger()
public MXLogger getMapLogger()
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
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
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<java.lang.String,java.lang.String> appDescMap) throws MXException, java.rmi.RemoteException
userInfo
- project
- activityData
- resourceData
- reservationData
- constraintData
- MXException
java.rmi.RemoteException
public java.util.HashMap<java.lang.String,java.lang.Object> loadSystemPropMap(UserInfo ui) throws MXException, java.rmi.RemoteException
ui
- MXException
java.rmi.RemoteException
public java.util.HashMap<java.lang.String,java.lang.String> getPropertyTitle(UserInfo userInfo, java.lang.String skdObjectName) throws MXException, java.rmi.RemoteException
userInfo
- skdObjectName
- MXException
java.rmi.RemoteException
public java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> getActionTitle(UserInfo userInfo, java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> actionInfo, java.lang.String useWith) throws MXException, java.rmi.RemoteException
userInfo
- HashMap - HashMap>
useWith
- String appnameMXException
java.rmi.RemoteException
public java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> getActionTitle(UserInfo userInfo, java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> actionInfo) throws MXException, java.rmi.RemoteException
userInfo
- HashMap - HashMap>
MXException
java.rmi.RemoteException
public java.util.HashMap<java.lang.String,java.lang.String> getAuthAppDescMap(UserInfo userInfo, java.util.List<java.lang.String> appList, java.util.HashMap<java.lang.String,java.lang.String> 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
public boolean isWorkorderSchedule(UserInfo userInfo, java.lang.String skdProjectId) throws MXException, java.rmi.RemoteException
userInfo
- skdProjectId
- 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<java.lang.String,SKDMessage> getSKDMaxMessages(UserInfo userInfo) throws MXException, java.rmi.RemoteException
userInfo
- MXException
java.rmi.RemoteException
public java.util.HashMap<java.lang.String,SKDCalendarInfo> 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<java.lang.String,SKDCalendarInfo> getWorkingHours(MboRemote project, Range<java.util.Date> 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<SKDDataGroupInfo> 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
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<java.lang.String,java.util.HashMap<java.lang.String,SKDMAPInputParamInfo>> laborResourceSACodeList, MboRemote projectMbo) throws MXException, java.rmi.RemoteException
project
- MXException
java.rmi.RemoteException
public int updateTravelTimeMatrixFor(java.lang.String orgId, java.util.Map<java.lang.String,SKDMAPInputParamInfo> taskSACodeMap, java.util.Map<java.lang.String,SKDMAPInputParamInfo> onTheFlyWOIDMap, java.util.Map<java.lang.String,SKDMAPInputParamInfo> resourceStartSACodeMap, java.util.Map<java.lang.String,SKDMAPInputParamInfo> 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<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>> 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<java.lang.String,MboRemote> 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<java.lang.String,MboRemote> 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
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<java.lang.String,SKDCalendarInfo> getAssetMntOpMap(MboRemote project, java.util.Date startDate, java.util.Date endDate, java.lang.String objectName, java.util.HashMap<java.lang.String,SKDCalendarInfo> shiftCalMap) throws SchedulerException
project
- startDate
- endDate
- objectName
- shiftCalMap
- SchedulerException
public java.util.HashMap<java.lang.String,SKDCalendarInfo> getAssetMntOpMapPM(MboRemote project, java.util.Date startDate, java.util.Date endDate, java.lang.String objectName, java.util.HashMap<java.lang.String,SKDCalendarInfo> shiftCalMap) throws SchedulerException
project
- startDate
- endDate
- objectName
- shiftCalMap
- SchedulerException
public java.util.HashMap<java.lang.String,SKDCalendarInfo> getLocationMntOpMap(MboRemote project, java.util.Date startDate, java.util.Date endDate, java.lang.String objectName, java.util.HashMap<java.lang.String,SKDCalendarInfo> shiftCalMap) throws SchedulerException
project
- startDate
- endDate
- objectName
- shiftCalMap
- SchedulerException
public java.util.HashMap<java.lang.String,SKDCalendarInfo> getLocationMntOpMapPM(MboRemote project, java.util.Date startDate, java.util.Date endDate, java.lang.String objectName, java.util.HashMap<java.lang.String,SKDCalendarInfo> shiftCalMap) throws SchedulerException
project
- startDate
- endDate
- objectName
- shiftCalMap
- SchedulerException
public java.util.HashMap<java.lang.String,java.util.ArrayList<SKDDateInterval>> getOverlappingMntOpSchedule(java.util.HashMap<java.lang.String,SKDCalendarInfo> assetLocMntCalMap, java.util.HashMap<java.lang.String,SKDCalendarInfo> 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<MXReservation> 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<java.lang.Long,MboRemote> 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<java.lang.Long,MboRemote> 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