public class SLRouteService extends AppService implements SLRouteServiceRemote
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SKDACTIONINFOMAP_SEPARATOR
Key separator
"\u00ef\u00bf\u00bd"
|
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_NEXTASSIGNMENT, PROPERTY_PREVASSIGNMENT, 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.
|
void |
destroy()
Release system resources.
|
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
|
MboSetRemote |
getCrewAssignments(java.lang.String amcrew,
UserInfo userInfo,
java.util.Date start,
java.util.Date end,
java.lang.String orgId,
SLRouteServiceCache appCache) |
MboSetRemote |
getLaborAssignments(java.lang.String labor,
UserInfo userInfo,
java.util.Date start,
java.util.Date end,
java.lang.String orgId,
SLRouteServiceCache appCache) |
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.
|
SKDDD |
getSKDDD() |
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 |
init()
Initialize the Application Service.
|
void |
notifyAssignmentUpdate(java.lang.Long assignmentId,
java.lang.String workOrderNumber,
int operation)
Add an assignment removal notification to the LRU cache.
|
void |
notifyLaborOrCrewAssignment(java.lang.Long assignmentId,
java.lang.String workOrderNumber)
Add an assignment removal notification to the LRU cache.
|
void |
recalculateTravelTimeForAssigment(MXGanttModel mxModel,
MXActivity fromAssignment,
MXActivity toAssignment,
MXResource resource,
MboRemote project,
UserInfo userInfo)
Recalculate Travel Time for Moved/Created Assignments.
|
java.util.List<MXReservation> |
refreshModel(ilog.views.gantt.IlvGanttModel model,
UserInfo userInfo,
SLRouteServiceCache appCache)
Refreshes work orders and assignments that are available for this Schedule/Project.
|
java.lang.String |
updateTravelTime(ilog.views.gantt.IlvGanttModel model,
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, 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, verifyUserequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUserisAppService, isSingletonService, restartpublic static final java.lang.String SKDACTIONINFOMAP_SEPARATOR
public SLRouteService(MXServer mxServer) throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void init()
AppServiceinit in interface Serviceinit in class AppServiceServicepublic void destroy()
Servicedestroy in interface Servicedestroy in class AppServiceServicepublic 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, SLRouteServiceCache appCache) throws MXException, java.rmi.RemoteException
getCrewAssignments in interface SLRouteServiceRemoteMXExceptionjava.rmi.RemoteExceptiongetCrewAssignments(String, UserInfo, Date, Date, String, SLRouteServiceCache)public MboSetRemote getLaborAssignments(java.lang.String labor, UserInfo userInfo, java.util.Date start, java.util.Date end, java.lang.String orgId, SLRouteServiceCache appCache) throws MXException, java.rmi.RemoteException
getLaborAssignments in interface SLRouteServiceRemoteMXExceptionjava.rmi.RemoteExceptiongetLaborAssignments(String, UserInfo, Date, Date, String, SLRouteServiceCache)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 SKDDD getSKDDD() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic 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 appnameMXExceptionjava.rmi.RemoteExceptionpublic 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> MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String updateTravelTime(ilog.views.gantt.IlvGanttModel model,
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.RemoteExceptionMXExceptionpublic java.util.List<MXReservation> refreshModel(ilog.views.gantt.IlvGanttModel model, UserInfo userInfo, SLRouteServiceCache appCache) throws MXException, java.rmi.RemoteException
refreshModel in interface SLRouteServiceRemotemodel - appCache - MXExceptionjava.rmi.RemoteExceptionpublic void recalculateTravelTimeForAssigment(MXGanttModel mxModel, MXActivity fromAssignment, MXActivity toAssignment, MXResource resource, MboRemote project, UserInfo userInfo) throws java.rmi.RemoteException, MXException
SLRouteServiceRemoterecalculateTravelTimeForAssigment in interface SLRouteServiceRemotejava.rmi.RemoteExceptionMXExceptionpublic void notifyLaborOrCrewAssignment(java.lang.Long assignmentId,
java.lang.String workOrderNumber)
assignmentId - workOrderNumber - operation - 0 for DELETE, 1 for UNDELETEpublic void notifyAssignmentUpdate(java.lang.Long assignmentId,
java.lang.String workOrderNumber,
int operation)
assignmentId - workOrderNumber - operation - 0 for DELETE, 1 for UNDELETE