public class DispatchViewBean extends BaseTreeGridMiniAppBean implements HasExtraResources
AbstractTreeGridMiniAppBean.BucketInfo, AbstractTreeGridMiniAppBean.ShiftInfo
SCHEDULER_MSG_GROUP, SKD_BUILD_ID, TESTIDS_ENABLED_PROPERTY
ALL_BOOKMARKS, ALL_RECORDS, ATTR_COLUMN, ATTR_DEFAULT, ATTR_QBE, ATTR_READONLY, ATTR_REFRESH_TABLE, ATTR_REQUIRED, ATTR_RESET, MAX_TABLEROWS, TABLE_ALL_SELECTED, TABLE_AT_FIRST_PAGE, TABLE_AT_FIRST_ROW, TABLE_AT_LAST_PAGE, TABLE_AT_LAST_ROW, TABLE_DETAILS_EXPANDED, TABLE_EXPANDED, TABLE_FILTER_EXPANDED, TABLE_FILTERED, TABLE_REFRESH_ALL_ROWS, TABLE_REFRESH_FILTER, TABLE_REFRESH_ROW, TABLE_REFRESH_TITLE, TABLE_ROW_CHANGED, TABLE_START_EMPTY, TABLE_SUBSELECT_ON, TABLE_USE_SUBSELECT
EVENT_CONTINUE, EVENT_HANDLED, EVENT_STOP_ALL
Constructor and Description |
---|
DispatchViewBean() |
Modifier and Type | Method and Description |
---|---|
TMenu |
async_get_table_context_menu(WebClientSession sess,
java.lang.String projectId,
com.ibm.json.java.JSONObject selection)
Called for an ITEM to fetch the Menu for a given item.
|
ReplyBuilder |
async_upload_changes(WebClientSession sess)
This is called by the TreeGrid component, in the browser, when it has
changes that it needs to sync with the server.
|
ReplyBuilder |
autoRefreshModel(java.lang.String projectId) |
com.ibm.json.java.JSONObject |
createAssignment(WebClientSession sess,
java.lang.String actionid,
java.lang.String params)
handler for the right-click createAssignment action on the assignment bar.
|
com.ibm.json.java.JSONObject |
deleteAssignment(WebClientSession sess,
java.lang.String actionid,
java.lang.String params)
handler for the right-click deleteAssignment action on the assignment bar.
|
java.util.List<WebResource> |
getExtraResources(java.lang.String servletBaseUrl,
java.lang.String miniappBaseUrl)
Gets a list of
WebResource objects to load for this miniapp |
MapFacadeTG |
getMapFacade() |
java.util.Map<java.lang.String,?> |
getOptions()
any options defined here, are passed to the contructor of the Dojo
MiniApp control (child controls, such as GanttWidget,
ResourceViewWidget,etc)
|
java.util.concurrent.Future<MXGanttModel> |
getProjectModel(com.ibm.json.java.JSONObject options,
boolean cache) |
java.util.concurrent.Future<MXGanttModel> |
getProjectModel(UserInfo userInfo,
java.lang.String id,
boolean addShiftInfo,
java.lang.String resObj1,
java.lang.String resKey1) |
java.util.concurrent.Future<MXGanttModel> |
getProjectModelForResource(MXResource res) |
com.ibm.json.java.JSONObject |
getRouteDetailsForResources(com.ibm.json.java.JSONArray resources,
long startTime,
long endTime,
com.ibm.json.java.JSONObject refreshOptions) |
DynamicTooltip |
getTooltip(WebClientSession sess,
java.lang.String projectid,
java.lang.String col,
java.lang.String id)
Returns a Tooltip HTML for a given activity id
|
DynamicTooltip |
getTooltipForDate(WebClientSession sess,
java.lang.String projectid,
java.lang.String col,
java.lang.String id,
long date) |
DynamicTooltip |
getTooltipForPoint(java.lang.String id,
int pointIndex) |
DispatchUtil |
getUtil() |
void |
initializeProjectData() |
boolean |
isLocked(MXActivity activity) |
void |
loadData(WebClientSession sess,
java.lang.String projectId,
boolean addShiftInfo,
java.lang.String resObj1,
java.lang.String resKey1)
Load the compare project data
|
java.util.concurrent.Future<MXGanttModel> |
loadProject(com.ibm.json.java.JSONObject options)
Returns a Future for the given Gantt Model.
|
com.ibm.json.java.JSONObject |
loadUI(WebClientSession sess,
java.lang.String projectId,
boolean addShiftInfo,
java.lang.String resObj1,
java.lang.String resKey1)
Load the compare project data
|
com.ibm.json.java.JSONObject |
lock(WebClientSession sess,
java.lang.String actionid,
java.lang.String params)
handler for the right-click lock/unlock action on the assignment bar.
|
void |
on_reload_model_for_traveltime() |
void |
onReset()
OnReset is called whenever we need to clear the state of our beean.
|
void |
processChange(java.util.concurrent.Future<MXGanttModel> model,
com.ibm.json.java.JSONObject change,
WebClientSession sess,
ReplyBuilder reply)
Will be called for each change in the changes model
|
com.ibm.json.java.JSONObject |
refreshResource(WebClientSession sess,
java.lang.String actionid,
java.lang.String params)
handler for the right-click Refresh Resource action on the table.
|
com.ibm.json.java.JSONObject |
SAVEBULKTRAVELTIME(com.ibm.json.java.JSONArray params)
Save several assignments travel times at once;
|
static java.lang.Double |
secondsToDuration(long seconds) |
com.google.gson.JsonObject |
SHOWMULTIPLEROUTEERRORS(com.ibm.json.java.JSONArray param) |
com.ibm.json.java.JSONObject |
splitAssignment(WebClientSession sess,
java.lang.String actionid,
java.lang.String params)
handler for the right-click splitAssignment actionon the assignment bar.
|
com.ibm.json.java.JSONObject |
splitAssignment(WebClientSession sess,
java.lang.String actionid,
java.lang.String params,
int numberOfSplits)
handler for the right-click deleteAssignment action on the assignment bar.
|
com.ibm.json.java.JSONObject |
splitAssignment3(WebClientSession sess,
java.lang.String actionid,
java.lang.String params)
handler for the right-click splitAssignment3 action on the assignment bar.
|
com.ibm.json.java.JSONObject |
splitAssignmentToShift(WebClientSession sess,
java.lang.String actionid,
java.lang.String params)
handler for the right-click splitAssignmentToShift action on the assignment bar.
|
com.ibm.json.java.JSONObject |
toggleLock(WebClientSession sess,
java.lang.String actionid,
java.lang.String params,
boolean lock)
handler for the right-click lock/unlock action on the assignment bar.
|
com.ibm.json.java.JSONObject |
unlock(WebClientSession sess,
java.lang.String actionid,
java.lang.String params)
handler for the right-click lock/unlock action on the assignment bar.
|
void |
updateDuration(MXGanttModel model,
java.util.Date oldStartTime,
java.util.Date oldEndTime,
java.util.Date newStartTime,
java.util.Date newEndTime,
MXActivity mxa)
Start and End times need to be updated at the same time, or else ILOG
will grow or shrink the activity bar when setting the start/end times
separately.
|
addActionMenuItems, addFixUI, addGotoToolbarOptions, addLockDurationIcon, addModelChange, addModelChange, addZoomToToolbarOptions, async_get_table_context_menu, canNotAssignTo, clearSavedState, getActivitites, getActualStartEnd, getCalculatedProjectMinMax, getGanttConfigInfo, getSKDPMUtility, getTooltipForCPM, getUIOptions, loadSKDUIInfo, on_handle_applink_menu_item, setSerializationHelper, setupBean, updateStartEndTimes
addFilterToggle, addLinkToWorkViewFilter, addQuickSearch, addToggleDependencies, appendCss, async_export_echo, async_load_text, async_push_client_message, async_upload_state, beanSupplier, callBeanMethod, callMethod, CfgId, filterCss, getApplicationResource, getAppName, getBaseImageUrl, getClientSession, getCurrentProjectId, getLastKnownState, getModAvailForDate, getPresentationOptions, getSchedulerProperties, getSerializationHelper, getShiftBreakInfoForDate, getShiftWorkPeriodInfoForDate, getShiftWorkPeriodInfoForDate, getShiftWorkPeriodInfoForDate, getSKDAppServiceBean, getSKDAppServiceBean, getTimeZone, getTooltipForDateInSchedule, getUserInfo, isAiviationLicensePresent, isAiviationMROLicensePresent, isGUIMirrored, isLicensePresent, isLicensePresent, isShowingWeather, label, label, loadMiniAppResource, loadTemplate, loadTooltip, on_handle_applink_menu_item, resolveTemplate, sendEventToTreeGrid, setGridTitleInUIOptions, sortSKDAction, uiOptionsSupplier, updateBooleanProperty, updateDateTimeProperty, updateIntProperty, updateStringProperty
_useAllBookmarksQuery, _useAllRecsQuery, _usequery, addAttribute, addConditionalProperties, addDialogReference, addListener, addQbeAttribute, addrow, addSigOption, applyValuesToSharedAttributes, applyValuesToSharedAttributes, asyncLocked, bindComponent, boundToTable, buildPortalMsg, callBeanMethod, callBeanMethod, callBeanMethod, callBeanMethod, callMethod, callMethod, callMethod, callMethod, callRemoteMethod, callRemoteMethod, cancelDialog, canCloseBean, canFetchData, changeRequiredField, checkAndDistributeRequiredError, checkESigAuthenticated, checkForAppError, checkMethodAccess, clearBean, clearfilter, clearSavedFilterSettings, clearSavedQbeSettings, close, copytonewrow, count, dataChangedEvent, delete, delete, deleteAndRemove, deleteAndRemove, displaycount, duplicateMbo, execute, fetchRecordData, fetchTableData, fetchTableData, filterrows, findAndCallMethod, fireChildChangedEvent, fireDataChangedEvent, fireDataChangedEvent, fireStructureChangedEvent, fireStructureChangedEvent, getAppWhere, getAttributes, getBoolean, getBoolean, getCacheRowIndex, getColumnDate, getColumnString, getCompleteWhere, getConditionalProperties, getCurrentQueryDescription, getCurrentQueryName, getCurrentRow, getDataAsArray, getDataAsArray, getDataList, getDataList, getDataList, getDataList, getDataListFromMboSetRemote, getDate, getDefaultOrderBy, getDefaultValue, getDescAttributeId, getEndRow, getEventRowIndex, getKeyAttribute, getKeyAttributes, getLastEventHandled, getLastFetchIndex, getList, getList, getList, getLockedByDisplayName, getMbo, getMbo, getMboForUniqueId, getMboName, getMboOrZombie, getMboRowIndex, getMboSet, getMboSetData, getMboSetFromSmartFind, getMboSetFromSmartFind, getMboSetFromSmartFind, getMboValueData, getMboValueData, getMboValueInfo, getMXSession, getNullRequiedFields, getOrderBy, getPageEndRow, getPageRowCount, getPageStartIndex, getParent, getParentRelationship, getQbe, getQbe, getQbeAttributes, getQueryDescBeforeReviseAction, getQueryNameBeforeReviseAction, getRemoteForDownload, getRemoteForLookup, getReturnAttribute, getReturnComponent, getReturnComponentId, getReturnControlId, getRowIndexFromEvent, getSavedFilterSettings, getSelectedDataAsArray, getSelectedDataAsArray, getSelection, getShowDetails, getSmartFillValue, getSortOrder, getString, getString, getTableAttributes, getTableOffset, getTableStateFlags, getTitle, getUIERMEntity, getUniqueIdFromSmartFill, getUniqueIdFromSmartFill, getUniqueIdName, getUniqueIdValue, getUserAndQbeWhere, getUserWhere, getWarnings, getZombie, getZombieMboValueData, handleRemoteException, handleRequiredFieldException, hasLongDescriptionText, hasLongDescriptionText, hasMboSetRemote, hasPageRows, hasRow, hasSameMboSet, hasSigOptionAccess, hasSigOptionAccess, hierarchicalmove, highlightrow, highlightrow, insert, insert, insertAtEnd, instantdelete, isAppTableRetain, isAttribute, isAttributeHidden, isAttributeHidden, isColumnSorted, isEmpty, isListTableModified, isListTableRetain, isLookupMultiSelect, isMboHidden, isMboHidden, isModifiedRow, isModifiedRow, isNewRow, isNewRow, isNewRowUnedited, isRowDeleted, isRowLocked, isSelected, isSubSelect, isTableAttribute, isTablePostionMarked, isTableRowSelected, isTableStateFlagSet, listenerChangedEvent, madeRequiredConditionally, markTablePosition, moveToMboFromDataBean, needToAuthenticate, next, nextrow, positionState, previous, prevrow, propagateRequired, queryAllBookmarks, queryAllRecs, refreshFieldErrors, refreshTable, registerDynamicControlsWithERM, reloadTable, removeDialogReference, removeListener, removeRowOnCancel, rePosition, reset, resetJSPFlags, resetQbe, resetWithSelection, restoreSavedQbeSettings, retainPosition, returnLookupValue, returnLookupValue, returnLookupValue, returnLookupValue, save, save, saveCurrentQbeSettings, scrollnext, scrollprev, select, select, selectAll, selectrecord, selectRows, sendRefreshTable, setApp, setAppDefault, setAppDefaults, setApplicationError, setAppWhere, setAsyncLock, setAttributes, setCurrentQueryDescription, setCurrentRow, setDate, setDate, setDate, setDefaultOrderBy, setDefaultQbe, setDefaultValue, setDefaultValue, setDescAttributeId, setDynamicAppDefaults, setDynamicDefault, setDynamicQbeDefaults, setEmptyOnClear, setEsigValidated, setEventRowIndex, setfiltervalue, setLastEventHandled, setListTableModified, setListTableRetain, setMboName, setNewRowUnedited, setOrderBy, setPageRowCount, setParent, setQbe, setQbe, setQbe, setQbe, setQbe, setQbeAttributes, setQbeCaseSensitive, setQbeDefaults, setQbeExactMatch, setQueryBySiteQbe, setQueryDescBeforeReviseAction, setQueryNameBeforeReviseAction, setRemoveOnCancel, setReturnAttribute, setReturnComponent, setReturnComponentId, setReturnControlId, setShowDetails, setSmartFillValue, setTableFlag, setupBean, setUserDefaults, setUserWhere, setvalue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromComponent, smartFill, smartFill, sort, sort, sortcolumn, sortcolumn, sqlwhere, structureChangedEvent, toBeSaved, toggledeleterow, toggledetailstate, toggleselectallrows, toggleselectrow, toString, turnEmptyStateOn, unbindComponent, undelete, undelete, unselect, unselect, unselectAll, useAllBookmarksQuery, useAllRecsQuery, useqbe, usequery, useQuery, useStoredQuery, validate, validateChildren, validateMbo, valueBound, valueUnbound
getCreator, getId, setCreator, setId
public DispatchUtil getUtil()
public MapFacadeTG getMapFacade()
public com.ibm.json.java.JSONObject getRouteDetailsForResources(com.ibm.json.java.JSONArray resources, long startTime, long endTime, com.ibm.json.java.JSONObject refreshOptions)
public void loadData(WebClientSession sess, java.lang.String projectId, boolean addShiftInfo, java.lang.String resObj1, java.lang.String resKey1) throws java.lang.Exception
sess
- java.lang.Exception
public com.ibm.json.java.JSONObject loadUI(WebClientSession sess, java.lang.String projectId, boolean addShiftInfo, java.lang.String resObj1, java.lang.String resKey1) throws java.lang.Exception
sess
- java.lang.Exception
public java.util.concurrent.Future<MXGanttModel> getProjectModel(UserInfo userInfo, java.lang.String id, boolean addShiftInfo, java.lang.String resObj1, java.lang.String resKey1) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.util.concurrent.Future<MXGanttModel> loadProject(com.ibm.json.java.JSONObject options) throws java.rmi.RemoteException, MXException
BaseTreeGridMiniAppBean
loadProject
in class BaseTreeGridMiniAppBean
options
- JSONObject
of parameters to pass the model. Can be null.java.rmi.RemoteException
MXException
public java.util.concurrent.Future<MXGanttModel> getProjectModelForResource(MXResource res) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.util.concurrent.Future<MXGanttModel> getProjectModel(com.ibm.json.java.JSONObject options, boolean cache) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.util.Map<java.lang.String,?> getOptions()
AbstractTreeGridMiniAppBean
getOptions
in interface HasOptions
getOptions
in class AbstractTreeGridMiniAppBean
public DynamicTooltip getTooltip(WebClientSession sess, java.lang.String projectid, java.lang.String col, java.lang.String id) throws MXException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
BaseTreeGridMiniAppBean
getTooltip
in class BaseTreeGridMiniAppBean
MXException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public DynamicTooltip getTooltipForDate(WebClientSession sess, java.lang.String projectid, java.lang.String col, java.lang.String id, long date) throws MXException, java.rmi.RemoteException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
getTooltipForDate
in class BaseTreeGridMiniAppBean
MXException
java.rmi.RemoteException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public DynamicTooltip getTooltipForPoint(java.lang.String id, int pointIndex) throws MXException, java.rmi.RemoteException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
getTooltipForPoint
in class BaseTreeGridMiniAppBean
pointIndex
- Point Index in the GanttPoints for row id. Points start at index 0.MXException
java.rmi.RemoteException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public ReplyBuilder async_upload_changes(WebClientSession sess)
BaseTreeGridMiniAppBean
async_upload_changes
in class BaseTreeGridMiniAppBean
public void processChange(java.util.concurrent.Future<MXGanttModel> model, com.ibm.json.java.JSONObject change, WebClientSession sess, ReplyBuilder reply) throws java.lang.Exception
BaseTreeGridMiniAppBean
processChange
in class BaseTreeGridMiniAppBean
java.lang.Exception
public void updateDuration(MXGanttModel model, java.util.Date oldStartTime, java.util.Date oldEndTime, java.util.Date newStartTime, java.util.Date newEndTime, MXActivity mxa) throws java.lang.Exception
BaseTreeGridMiniAppBean
updateDuration
in class BaseTreeGridMiniAppBean
java.lang.Exception
public void initializeProjectData()
initializeProjectData
in class BaseTreeGridMiniAppBean
public void onReset()
BaseTreeGridMiniAppBean
onReset
in interface ResetListener
onReset
in class BaseTreeGridMiniAppBean
public TMenu async_get_table_context_menu(WebClientSession sess, java.lang.String projectId, com.ibm.json.java.JSONObject selection) throws java.lang.Exception
id
- Activity IDcol
- Table Columnjava.lang.Exception
public boolean isLocked(MXActivity activity)
public com.ibm.json.java.JSONObject refreshResource(WebClientSession sess, java.lang.String actionid, java.lang.String params) throws java.lang.Exception
java.lang.Exception
public com.ibm.json.java.JSONObject createAssignment(WebClientSession sess, java.lang.String actionid, java.lang.String params) throws java.lang.Exception
java.lang.Exception
public com.ibm.json.java.JSONObject deleteAssignment(WebClientSession sess, java.lang.String actionid, java.lang.String params) throws java.lang.Exception
java.lang.Exception
public com.ibm.json.java.JSONObject splitAssignment(WebClientSession sess, java.lang.String actionid, java.lang.String params) throws java.lang.Exception
java.lang.Exception
public com.ibm.json.java.JSONObject splitAssignment3(WebClientSession sess, java.lang.String actionid, java.lang.String params) throws java.lang.Exception
java.lang.Exception
public com.ibm.json.java.JSONObject splitAssignment(WebClientSession sess, java.lang.String actionid, java.lang.String params, int numberOfSplits) throws java.lang.Exception
java.lang.Exception
public com.ibm.json.java.JSONObject splitAssignmentToShift(WebClientSession sess, java.lang.String actionid, java.lang.String params) throws java.lang.Exception
java.lang.Exception
public com.ibm.json.java.JSONObject lock(WebClientSession sess, java.lang.String actionid, java.lang.String params) throws java.lang.Exception
java.lang.Exception
public com.ibm.json.java.JSONObject unlock(WebClientSession sess, java.lang.String actionid, java.lang.String params) throws java.lang.Exception
java.lang.Exception
public com.ibm.json.java.JSONObject toggleLock(WebClientSession sess, java.lang.String actionid, java.lang.String params, boolean lock) throws java.lang.Exception
java.lang.Exception
public java.util.List<WebResource> getExtraResources(java.lang.String servletBaseUrl, java.lang.String miniappBaseUrl)
HasExtraResources
WebResource
objects to load for this miniappgetExtraResources
in interface HasExtraResources
servletBaseUrl
- full base servlet URL pathminiappBaseUrl
- full base miniapp URL path to THIS miniapp instancepublic com.ibm.json.java.JSONObject SAVEBULKTRAVELTIME(com.ibm.json.java.JSONArray params) throws MXException, java.rmi.RemoteException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
MXException
java.rmi.RemoteException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
public com.google.gson.JsonObject SHOWMULTIPLEROUTEERRORS(com.ibm.json.java.JSONArray param) throws MXException, java.io.IOException
MXException
java.io.IOException
public static java.lang.Double secondsToDuration(long seconds)
public void on_reload_model_for_traveltime()
public ReplyBuilder autoRefreshModel(java.lang.String projectId) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException