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_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.
|
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, 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 SKDACTIONINFOMAP_SEPARATOR
public SLRouteService(MXServer mxServer) throws java.rmi.RemoteException
java.rmi.RemoteException
public void init()
AppService
init
in interface Service
init
in class AppService
Service
public void destroy()
Service
destroy
in interface Service
destroy
in class AppService
Service
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, SLRouteServiceCache appCache) throws MXException, java.rmi.RemoteException
getCrewAssignments
in interface SLRouteServiceRemote
MXException
java.rmi.RemoteException
getCrewAssignments(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 SLRouteServiceRemote
MXException
java.rmi.RemoteException
getLaborAssignments(String, UserInfo, Date, Date, String, SLRouteServiceCache)
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 SKDDD getSKDDD() throws MXException, java.rmi.RemoteException
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 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 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
public java.util.List<MXReservation> refreshModel(ilog.views.gantt.IlvGanttModel model, UserInfo userInfo, SLRouteServiceCache appCache) throws MXException, java.rmi.RemoteException
refreshModel
in interface SLRouteServiceRemote
model
- appCache
- MXException
java.rmi.RemoteException
public void recalculateTravelTimeForAssigment(MXGanttModel mxModel, MXActivity fromAssignment, MXActivity toAssignment, MXResource resource, MboRemote project, UserInfo userInfo) throws java.rmi.RemoteException, MXException
SLRouteServiceRemote
recalculateTravelTimeForAssigment
in interface SLRouteServiceRemote
java.rmi.RemoteException
MXException
public 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