public class FWMActionsFacade
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
REFRESH_APPLET_MODEL_ONLY |
static int |
REFRESH_MODEL_NEEDED |
static int |
REFRESH_PARTIAL_MODEL_NEEDED |
Constructor and Description |
---|
FWMActionsFacade(netscape.javascript.JSObject window,
java.lang.String namespace) |
Modifier and Type | Method and Description |
---|---|
void |
addUpdateActivity(MXResource newResource,
MXActivity currentActivity) |
void |
addUpdateActivity(MXResource newResource,
MXActivity currentActivity,
MXResource oldresource) |
void |
clearRoutes() |
void |
createAssignment(java.lang.String assignId,
MXResource resource)
Handler function for the 'Create Assignment' function on assignments
|
void |
deleteAssignment(java.lang.String assignId,
MXResource resource)
handler function for the delete assignment function
|
int |
drawRouteCallback()
callback function for the drawAllRoutes call
|
void |
executeJSCall(java.lang.String functionName)
execute a javascript call
|
void |
executeJSCall(java.lang.String functionName,
com.ibm.json.java.JSONArtifact params)
execute a javascript call passing the params as parameters
|
void |
executeJSCall(java.lang.String functionName,
com.ibm.json.java.JSONArtifact params,
java.lang.String callbackMethodName,
java.lang.String errorCallback)
execute a javascript call passing parameters, a callback function, and an errorCallback function
|
void |
executeJSFNCall(java.lang.String functionName,
java.lang.String param1)
execute a function call on the DispatcherManager, passing a single simple parameter to the function
|
void |
executeJSFNCall(java.lang.String functionName,
java.lang.String param1,
java.lang.String param2)
execute a function call on the DispatcherManager, passing two parameters to the function
|
boolean |
isInitialized() |
void |
notifyAssignmentSelecting(java.lang.String activityId)
Notify the map that an assignment was selected on the map, passing over the activity id
|
int |
onAssignmentCreate(com.ibm.json.java.JSONObject data)
callback function for createAssignment
|
int |
onAssignmentDelete(com.ibm.json.java.JSONObject data)
Callback function for deleting an assignment
|
int |
onAssignmentSplit(com.ibm.json.java.JSONObject data)
Callback from server for the splitAssignment function
|
int |
onAssignmentSplitToShift(com.ibm.json.java.JSONObject data)
Callback function after a split to shift callback
|
int |
onAssignmentToggleLock(com.ibm.json.java.JSONObject data)
callback function for the toggle lock function
|
int |
onBulkAssignments(com.ibm.json.java.JSONObject data)
callback function for the bulk assignments function
|
int |
onRefreshResource(com.ibm.json.java.JSONObject data)
Callback function for refreshing a resource
|
int |
onRefreshResources(com.ibm.json.java.JSONObject data)
Handler to indicate how to handle resource refreshing when the refresh is triggered
from an action that was sent through sendEvent.
|
int |
onServerError(com.ibm.json.java.JSONObject data) |
int |
onSLRTravelTimeUpdated(com.ibm.json.java.JSONObject data) |
void |
refreshResource(MXResource resource)
handler function for the refresh resource row action
|
void |
refreshRoutes(ilog.views.gantt.IlvGanttModel ganttModel) |
void |
setMapReady() |
void |
splitAssignment(java.lang.String assignmentId,
java.lang.Integer numberOfSplits,
MXResource resource)
Passes the assignmentId and how many splits to MapDispatcherControl via javascript.
|
void |
splitAssignmentToShift(java.lang.String assignmentId,
MXResource resource)
Passes the assignmentId and how many splits to MapDispatcherControl via javascript.
|
void |
syncUpdatedAssignments() |
void |
toggleLock(java.lang.String assignId,
MXResource resource,
java.lang.Boolean lock)
handler function for the 'Lock' function on assignments
|
void |
triggerServerMessages() |
void |
updateMap(ilog.views.gantt.IlvGanttModel ganttModel,
com.ibm.json.java.JSONObject refreshOptions) |
void |
updateMap(ilog.views.gantt.IlvTimeInterval visibleInterval,
ilog.views.gantt.IlvGanttModel ganttModel,
com.ibm.json.java.JSONObject refreshOptions) |
public static final int REFRESH_MODEL_NEEDED
public static final int REFRESH_PARTIAL_MODEL_NEEDED
public static final int REFRESH_APPLET_MODEL_ONLY
public FWMActionsFacade(netscape.javascript.JSObject window, java.lang.String namespace)
public boolean isInitialized()
public void executeJSCall(java.lang.String functionName)
functionName
- public void executeJSCall(java.lang.String functionName, com.ibm.json.java.JSONArtifact params)
functionName
- params
- public void executeJSCall(java.lang.String functionName, com.ibm.json.java.JSONArtifact params, java.lang.String callbackMethodName, java.lang.String errorCallback)
functionName
- params
- callbackMethodName
- errorCallback
- public void executeJSFNCall(java.lang.String functionName, java.lang.String param1)
functionName
- param1
- public void executeJSFNCall(java.lang.String functionName, java.lang.String param1, java.lang.String param2)
functionName
- param1
- public void deleteAssignment(java.lang.String assignId, MXResource resource)
assignId
- resource
- public int onAssignmentDelete(com.ibm.json.java.JSONObject data)
data
- public void createAssignment(java.lang.String assignId, MXResource resource)
assignId
- resource
- public int onAssignmentCreate(com.ibm.json.java.JSONObject data)
data
- public void syncUpdatedAssignments()
public void addUpdateActivity(MXResource newResource, MXActivity currentActivity)
public void addUpdateActivity(MXResource newResource, MXActivity currentActivity, MXResource oldresource)
public void splitAssignment(java.lang.String assignmentId, java.lang.Integer numberOfSplits, MXResource resource)
assignmentId
- The id of the assignment to be splitnumberOfSplits
- How many total assignments to have at the end of splitting.public int onAssignmentSplit(com.ibm.json.java.JSONObject data)
data
- public int drawRouteCallback()
public void splitAssignmentToShift(java.lang.String assignmentId, MXResource resource)
assignmentId
- The id of the assignment to be splitnumberOfSplits
- How many total assignments to have at the end of splitting.public int onAssignmentSplitToShift(com.ibm.json.java.JSONObject data)
data
- public void updateMap(ilog.views.gantt.IlvGanttModel ganttModel, com.ibm.json.java.JSONObject refreshOptions)
public void updateMap(ilog.views.gantt.IlvTimeInterval visibleInterval, ilog.views.gantt.IlvGanttModel ganttModel, com.ibm.json.java.JSONObject refreshOptions)
public void setMapReady()
public void clearRoutes()
public void refreshRoutes(ilog.views.gantt.IlvGanttModel ganttModel)
public void triggerServerMessages()
public int onBulkAssignments(com.ibm.json.java.JSONObject data)
data
- public int onSLRTravelTimeUpdated(com.ibm.json.java.JSONObject data)
public int onServerError(com.ibm.json.java.JSONObject data)
public int onRefreshResources(com.ibm.json.java.JSONObject data)
data
- public void toggleLock(java.lang.String assignId, MXResource resource, java.lang.Boolean lock)
assignId
- resource
- lock
- public int onAssignmentToggleLock(com.ibm.json.java.JSONObject data)
data
- public void notifyAssignmentSelecting(java.lang.String activityId)
assignId
- public void refreshResource(MXResource resource)
assignId
- resource
- public int onRefreshResource(com.ibm.json.java.JSONObject data)
data
-