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 |
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,
java.lang.String ids,
java.lang.String objectName)
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 |
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 |
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 |
duplicateSKDData(UserInfo userInfo,
java.lang.String orgProjectId,
MboRemote duplicateProjectMbo)
Duplicate scheduler intermediate tables.
|
int |
dynamicScheduling(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
|
java.lang.String |
getAppDescForApp(java.lang.String appName,
UserInfo userInfo)
Return the description from maxapps table
|
int |
getAsyncCount(MboRemote projectMbo,
MboSetRemote activitySet)
Duplicate data related to the data source.
|
ISKDAvailability |
getAvailabilities(UserInfo ui,
java.lang.String[] availParam)
Get availabilities data for a workorder or PM
|
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.
|
GanttConfigInfo |
getGanttConfigInfo(UserInfo userInfo,
MboRemote project)
Get GanttConfigInfo for an user and project mbo.
|
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
|
MXLogger |
getMapLogger() |
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
|
MboRemote |
getParentActivity(MboRemote project,
java.lang.String parentid)
qiuping 7520
get parent activity SKDACtivityMbo of activity
|
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.
|
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
|
void |
init()
Initialize the service
|
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.HashMap<java.lang.String,java.lang.Object> |
loadSystemPropMap(UserInfo ui)
Load system properties need to be passed to applet
|
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(SKDPropertyValue propValue,
java.lang.String propertyName,
int maxtype,
MboRemote mbo,
java.lang.String attributeName)
Populate property values
|
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 |
saveInitializedReservationChanges(UserInfo userInfo,
MboRemote project,
java.util.ArrayList<MXReservation> modifiedReservations)
Save initialized reservations for a project.
|
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) |
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, destroy, 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 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 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 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 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(SKDPropertyValue 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, java.lang.String ids, java.lang.String objectName) throws MXException, java.rmi.RemoteException
commitModifiedModelChanges
in interface SKDAppServiceRemote
userInfo
- projectId
- 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 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.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.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 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, MXException
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
public static java.lang.Double secondsToDuration(long seconds)
public int dynamicScheduling(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 getSKDViewerProperties() throws java.rmi.RemoteException
getSKDViewerProperties
in interface SKDAppServiceRemote
java.rmi.RemoteException