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_WORKACT
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 |
---|
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, 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 SLRouteService(MXServer mxServer) throws java.rmi.RemoteException
java.rmi.RemoteException
public int createSLRBasedOnSKDProject(MboRemote skdProj) throws MXException, java.rmi.RemoteException
createSLRBasedOnSKDProject
in interface SLRouteServiceRemote
MXException
java.rmi.RemoteException
createSLRBasedOnSKDProject(MboRemote)
public java.util.List<MboSetRemote> getSKDProjectResources(MboRemote skdProj, boolean useResourceFilter, SLRouteServiceCache appCache) throws MXException, java.rmi.RemoteException
getSKDProjectResources
in interface SLRouteServiceRemote
MXException
java.rmi.RemoteException
SLRouteService#getSKDProjectResources(MboRemote, boolean)
public MboSetRemote getSkdProjAssignments(MboRemote skdProj) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboSetRemote getSkdProjAssignments(MboRemote skdProj, java.util.Date start, java.util.Date end) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public 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 SLRouteServiceRemote
MXException
java.rmi.RemoteException
getCrewAssignments(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 SLRouteServiceRemote
MXException
java.rmi.RemoteException
getLaborAssignments(String, UserInfo, Date, Date, String)
public SLRouteSetRemote getSLRouteSet(SLRouteRemote slroute) throws java.rmi.RemoteException, MXException
getSLRouteSet
in interface SLRouteServiceRemote
java.rmi.RemoteException
MXException
getSLRouteSet(SLRouteRemote)
public int applyRoutes(MboRemote slroute) throws MXException, java.rmi.RemoteException
applyRoutes
in interface SLRouteServiceRemote
MXException
java.rmi.RemoteException
applyRoutes(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 SLRouteServiceRemote
userInfo
- user informationskdProjID
- SKDProject unique IDstartDate
- Start DateendDate
- End DateMXException
java.rmi.RemoteException
SLRouteService#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 SLRouteServiceRemote
java.rmi.RemoteException
MXException
public void clearSLRTravelTimeData(AssignmentRemote assignment) throws java.rmi.RemoteException, MXException
clearSLRTravelTimeData
in interface SLRouteServiceRemote
java.rmi.RemoteException
MXException
public SLRouteSetRemote getSLRouteSetFromSelection(SLRouteRemote slroute) throws java.rmi.RemoteException, MXException
SLRouteServiceRemote
getSLRouteSetFromSelection
in interface SLRouteServiceRemote
slroute
- 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
- MXException
java.rmi.RemoteException
public 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 SLRouteServiceRemote
MXException
java.rmi.RemoteException
SLRouteService#getModelForResource(UserInfo, String, String, String)
public void clearStaticDataCaches() throws MXException, java.rmi.RemoteException
clearStaticDataCaches
in interface SLRouteServiceRemote
MXException
java.rmi.RemoteException
clearStaticDataCaches()
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.RemoteException
MXException