public class SLRouteService extends AppService implements SLRouteServiceRemote
FWM_APP_CACHE, FWM_MAPSELECTFLAG, FWM_RESOURCEKEY_PREFIX, FWM_RESOURCEKEY_SKDPROPERTY, FWM_RESOURCEOBJ_PREFIX, FWMRESKEY, FWMTYPE, PROPERTY_ADDRESS, PROPERTY_ASSIGNMENTID, PROPERTY_DURATION_IN_SECS, PROPERTY_FROMASSIGNMENT, PROPERTY_FROMLOCATION, PROPERTY_GISABLE, PROPERTY_HASTRAVELTIME, PROPERTY_LATITUDE, PROPERTY_LONGITUDE, PROPERTY_MBO_JSON, PROPERTY_RES_DESC, PROPERTY_RES_ID, PROPERTY_RES_MOUSEOVER, PROPERTY_RES_START, PROPERTY_RES_TYPE_CRAFT, PROPERTY_RES_TYPE_CREW, PROPERTY_RES_TYPE_CREWTYPE, PROPERTY_RES_TYPE_HIERSTUB, PROPERTY_RES_TYPE_LABOR, PROPERTY_ROUTEINFO, PROPERTY_SHIFTENDDATE, PROPERTY_SHIFTINFO, PROPERTY_SHIFTSTARTDATE, PROPERTY_SITEID, PROPERTY_SLROUTEID, PROPERTY_TOLOCATION, PROPERTY_UIDNAME, PROPERTY_UIDVALUE, PROPERTY_WO_MOUSEOVER, PROPERTY_WO_STATUS, PROPERTY_WONUM, TYPE_ASSIGNMENT, TYPE_ENDLOCATION, TYPE_NONWORKACT, TYPE_STARTLOCATION, TYPE_WORKACTAPPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGERappenderPrefix, 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 |
|---|
SLRouteService(MXServer mxServer) |
| Modifier and Type | Method and Description |
|---|---|
int |
applyRoutes(MboRemote slroute) |
void |
clearSLRTravelTimeData(AssignmentRemote assignment) |
void |
clearStaticDataCaches()
clear out the static data caches
|
int |
createSLRBasedOnSKDProject(MboRemote skdProj)
Creates the slroute records based on values of the passed on SKDProject record.
|
MboSetRemote |
getCrewAssignments(java.lang.String amcrew,
UserInfo userInfo,
java.util.Date start,
java.util.Date end,
java.lang.String orgId) |
MboSetRemote |
getLaborAssignments(java.lang.String labor,
UserInfo userInfo,
java.util.Date start,
java.util.Date end,
java.lang.String orgId) |
ilog.views.gantt.IlvGanttModel |
getModel(UserInfo userInfo,
java.lang.String skdProjID,
boolean addShiftInfo,
SLRouteServiceCache appCache)
Get Gantt model for dispatch view
|
ilog.views.gantt.IlvGanttModel |
getModelForResource(UserInfo userInfo,
java.lang.String skdProjID,
java.lang.String resObj,
java.lang.String resKey,
SLRouteServiceCache appCache)
loads a subset of the model for a single resource, used for partial model updates.
|
ilog.views.gantt.IlvGanttModel |
getModelNew(UserInfo userInfo,
java.lang.String rootActivityName,
java.lang.String rootResourceName,
java.util.List<MboSetRemote> resMboSetList,
java.util.Date startDate,
java.util.Date endDate,
int shiftMargin,
SLRouteServiceCache appCache,
boolean addHierachy,
MboRemote skdProj)
Create the model and calls the function that fetches the resources to be used to get the model.
|
MboSetRemote |
getSkdProjAssignments(MboRemote skdProj) |
MboSetRemote |
getSkdProjAssignments(MboRemote skdProj,
java.util.Date start,
java.util.Date end) |
java.util.List<MboSetRemote> |
getSKDProjectResources(MboRemote skdProj,
boolean useResourceFilter,
SLRouteServiceCache appCache)
Fetches all of the resources to use when fetching the full dispatch model from the database.
|
SLRouteSetRemote |
getSLRouteSet(SLRouteRemote slroute) |
SLRouteSetRemote |
getSLRouteSetFromSelection(SLRouteRemote slroute)
Gets the sL route set from selection.
|
SLRTravelTimeSetRemote |
getSLRTravelTimeRecord(java.lang.String toAssignId,
java.lang.String fromAssignId,
java.lang.String fromLocationId,
java.lang.String toLocationId,
long slrRouteId,
UserInfo userInfo)
Returns the mboset for a single travel time record.
|
void |
updateTravelTime(java.lang.String toAssignId,
java.lang.String fromAssignId,
java.lang.String fromLocationId,
java.lang.String toLocationId,
java.lang.String slrRouteId,
java.lang.Double duration,
UserInfo userInfo) |
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, init, initCriteriaList, isAppService, isRunning, isSingletonService, restart, setProxy, setRunning, setURL, verifyUser, verifyUserequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUserisAppService, isSingletonService, restartpublic SLRouteService(MXServer mxServer) throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic int createSLRBasedOnSKDProject(MboRemote skdProj) throws MXException, java.rmi.RemoteException
createSLRBasedOnSKDProject in interface SLRouteServiceRemoteMXExceptionjava.rmi.RemoteExceptioncreateSLRBasedOnSKDProject(MboRemote)public java.util.List<MboSetRemote> getSKDProjectResources(MboRemote skdProj, boolean useResourceFilter, SLRouteServiceCache appCache) throws MXException, java.rmi.RemoteException
getSKDProjectResources in interface SLRouteServiceRemoteMXExceptionjava.rmi.RemoteExceptionSLRouteService#getSKDProjectResources(MboRemote, boolean)public MboSetRemote getSkdProjAssignments(MboRemote skdProj) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote getSkdProjAssignments(MboRemote skdProj, java.util.Date start, java.util.Date end) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote getCrewAssignments(java.lang.String amcrew, UserInfo userInfo, java.util.Date start, java.util.Date end, java.lang.String orgId) throws MXException, java.rmi.RemoteException
getCrewAssignments in interface SLRouteServiceRemoteMXExceptionjava.rmi.RemoteExceptiongetCrewAssignments(String, UserInfo, Date, Date, String)public MboSetRemote getLaborAssignments(java.lang.String labor, UserInfo userInfo, java.util.Date start, java.util.Date end, java.lang.String orgId) throws MXException, java.rmi.RemoteException
getLaborAssignments in interface SLRouteServiceRemoteMXExceptionjava.rmi.RemoteExceptiongetLaborAssignments(String, UserInfo, Date, Date, String)public SLRouteSetRemote getSLRouteSet(SLRouteRemote slroute) throws java.rmi.RemoteException, MXException
getSLRouteSet in interface SLRouteServiceRemotejava.rmi.RemoteExceptionMXExceptiongetSLRouteSet(SLRouteRemote)public int applyRoutes(MboRemote slroute) throws MXException, java.rmi.RemoteException
applyRoutes in interface SLRouteServiceRemoteMXExceptionjava.rmi.RemoteExceptionapplyRoutes(MboRemote)public ilog.views.gantt.IlvGanttModel getModel(UserInfo userInfo, java.lang.String skdProjID, boolean addShiftInfo, SLRouteServiceCache appCache) throws MXException, java.rmi.RemoteException
getModel in interface SLRouteServiceRemoteuserInfo - user informationskdProjID - SKDProject unique IDstartDate - Start DateendDate - End DateMXExceptionjava.rmi.RemoteExceptionSLRouteService#getModel(UserInfo, String, Date, Date)public void updateTravelTime(java.lang.String toAssignId,
java.lang.String fromAssignId,
java.lang.String fromLocationId,
java.lang.String toLocationId,
java.lang.String slrRouteId,
java.lang.Double duration,
UserInfo userInfo)
throws java.rmi.RemoteException,
MXException
updateTravelTime in interface SLRouteServiceRemotejava.rmi.RemoteExceptionMXExceptionpublic void clearSLRTravelTimeData(AssignmentRemote assignment) throws java.rmi.RemoteException, MXException
clearSLRTravelTimeData in interface SLRouteServiceRemotejava.rmi.RemoteExceptionMXExceptionpublic SLRouteSetRemote getSLRouteSetFromSelection(SLRouteRemote slroute) throws java.rmi.RemoteException, MXException
SLRouteServiceRemotegetSLRouteSetFromSelection in interface SLRouteServiceRemoteslroute - theSLRoute dialog object containing the selected Slroutes recordsjava.rmi.RemoteException - the remote exceptionMXException - the mX exceptiongetSLRouteSetFromSelection(SLRouteRemote)public ilog.views.gantt.IlvGanttModel getModelNew(UserInfo userInfo, java.lang.String rootActivityName, java.lang.String rootResourceName, java.util.List<MboSetRemote> resMboSetList, java.util.Date startDate, java.util.Date endDate, int shiftMargin, SLRouteServiceCache appCache, boolean addHierachy, MboRemote skdProj) throws MXException, java.rmi.RemoteException
userInfo - rootActivityName - rootResourceName - resMboSetList - startDate - endDate - MXExceptionjava.rmi.RemoteExceptionpublic ilog.views.gantt.IlvGanttModel getModelForResource(UserInfo userInfo, java.lang.String skdProjID, java.lang.String resObj, java.lang.String resKey, SLRouteServiceCache appCache) throws MXException, java.rmi.RemoteException
getModelForResource in interface SLRouteServiceRemoteMXExceptionjava.rmi.RemoteExceptionSLRouteService#getModelForResource(UserInfo, String, String, String)public void clearStaticDataCaches()
throws MXException,
java.rmi.RemoteException
clearStaticDataCaches in interface SLRouteServiceRemoteMXExceptionjava.rmi.RemoteExceptionclearStaticDataCaches()public SLRTravelTimeSetRemote getSLRTravelTimeRecord(java.lang.String toAssignId, java.lang.String fromAssignId, java.lang.String fromLocationId, java.lang.String toLocationId, long slrRouteId, UserInfo userInfo) throws java.rmi.RemoteException, MXException
toAssignId - fromAssignId - fromLocationId - toLocationId - slrRouteId - userInfo - java.rmi.RemoteExceptionMXException