public class MapControl extends DatasrcInstance implements MapControlCallbacks, MapClientEvents
amIinitialize, DATASOURCE, INPUTMODE, labelOverride, ONDATACAHNGE, PARAM_APP, PARAM_APPTABTYPE, PARAM_DESIGNMODE, PARAM_LIGHTNING, PARAM_MOBILE, PARAM_MODULE, PARAM_PAGE, PARAM_PARENTCOMPONENT, PARAM_PARENTCONTROL, PARAM_PRESENTATION, PARAM_SCREENREADER, PARAM_SKINNAME, PARAM_TAB, PARAM_TABGROUP, PARAM_TABGROUP_MAIN, PARAM_TABLE, PARAM_USERINFO, PARAM_VERTICALLABEL, RERENDER_PROPERTY
EXCEPTION_ERROR, EXCEPTION_INFO, EXCEPTION_NONE, EXCEPTION_REQUIREDFIELD, EXCEPTION_SMARTFILL, EXCEPTION_WARNING, EXCEPTION_YESNOCANCEL, FORCE_WARNING_HANDLING, NO_PROMPT_WITH_WARNING, presentationTags, PROMPT_WHEN_WARNING_EXIST
Constructor and Description |
---|
MapControl() |
Modifier and Type | Method and Description |
---|---|
void |
addEventToMap(java.lang.String eventName,
com.ibm.json.java.JSONObject action) |
void |
addRecordsToLayer(java.lang.String layerName,
MboSetRemote mboSet,
boolean cleanOld)
For the sake of flexibility, the interface receives a mboset, but the elements of the mboset
will only be shown on the map if the mbos of the mboset implements the interface Gisable
|
void |
addSpatialSecureTokenInfo(com.ibm.json.java.JSONObject mapConf) |
void |
clearNextEventData()
Clear the event buffer
|
void |
createMapCallback(java.lang.String actionName,
com.ibm.json.java.JSONObject data) |
int |
deleteLinearLayerSegmentObjects() |
com.ibm.json.java.JSONObject |
getBingMapConfiguration(MboRemote mbo)
Creates a specific configuration object for Bing Maps
|
MapControlClientEvent |
getClientEventCtrl() |
int |
getCrewLaborByQueryParams()
Gets the crew labor by coords.
|
MapDataUtils.PROVIDER |
getCurrentProvider() |
com.ibm.json.java.JSONObject |
getCurrentRecordData() |
com.ibm.json.java.JSONArray |
getCurrentState()
Return the next current state with all JSON data that must be handle by the map component.
|
java.lang.String |
getFullExtZoomLevel() |
java.lang.Double |
getFullX() |
java.lang.Double |
getFullY() |
com.ibm.json.java.JSONObject |
getGoogleMapConfiguration(MboRemote mbo)
Creates a specific configuration object for Google Maps
|
java.lang.String |
getHeight() |
java.lang.Double |
getInitialX() |
java.lang.Double |
getInitialY() |
int |
getLinearGraphicsbyWhereClause()
Method to return a list of Graphics IDs for a particular object that matches the where clause
|
MboRemote |
getMainRecordMbo() |
com.ibm.json.java.JSONObject |
getMapConfiguration()
Creates the JSON object configuration based on data from FSM Map Manager app
|
java.lang.String |
getOpenMapReturnAttribute()
Returns the attribute which called the Open Map component.
|
java.lang.String |
getOriginalApp(java.lang.String app) |
int |
getPrintTimeout() |
boolean |
getPropagateCloneStatus(java.lang.String mapName,
java.lang.String app) |
java.lang.String |
getRefreshMapInterval() |
MboRemote |
getRelationshipLinearObject(MboRemote appMbo,
java.lang.String objectName,
java.lang.String relationshipName) |
com.ibm.json.java.JSONObject |
getRouteConfiguration() |
int |
getShowMarkersOnRouteError()
Gets the action to be executed when the map provider fails to return a valid route: 0 -> show provider error and
don't try to draw anything (default) 1 -> try to at least draw the markers
|
com.ibm.json.java.JSONObject |
getSpatialMapConfiguration(MboRemote mbo)
Creates a specific configuration object for Spatial Maps
|
int |
getWeatherAlertsByQueryParams()
Gets the crew labor by coords.
|
java.lang.String |
getWidth() |
java.lang.String |
getZoomLevel() |
java.lang.Boolean |
isContextPersistent() |
int |
isCurrentMboAddressable()
Check if the current Mbo has a Service Address relationship, and if the Formatted Address Field is editable
|
java.lang.Boolean |
isDataSourceDynamic() |
java.lang.Boolean |
isMapViewOnly() |
boolean |
isMboFormattedAddressEditable()
Check if the Mbo has Formatted Address Editable.
|
boolean |
isMobile() |
java.lang.Boolean |
isZoomToDataInput() |
int |
loadAttributesFromLinearAttributeTemplate()
method to load the Linear Graphic attributes (used in Identify Tool)
|
void |
loadGISMapConfiguration()
Sets the GIS configuration
Note: The method has some side effects such as call reset on the mboset before iterate on it.
|
int |
loadLinearLayerObjectAttributes()
method to load the Linear Graphic attributes (used in Identify Tool)
|
com.ibm.json.java.JSONArray |
loadLinearSegments(MboRemote linearLayerMbo,
MboRemote appMbo,
MboRemote relatedAsset,
java.lang.String mapMeasureUnit)
Method to load the linear segments based on the app and the linear layers.
|
int |
loadMapTipSummaryTemplate() |
int |
loadMapTipTemplate() |
int |
loadMenuItems() |
com.ibm.json.java.JSONObject |
loadToolsConfiguration() |
int |
NOOP() |
int |
pushMapControlClientEventHandler() |
int |
queryUnassignedWorkDispatcher()
Queries unassigned work using the Graphical Assignment query.
|
int |
refreshLinearLayers() |
int |
refreshMarkersPositions()
Refreshes the position of markers in the current map.
|
int |
refreshQueryUnassignedWork() |
static java.lang.String |
removeCommentsFromJson(java.lang.String isStr) |
void |
removeRecordsFromLayer(java.lang.String layerName,
MboSetRemote mboSet)
For the sake of flexibility, the interface receives a mboset, but the elements of the mboset
will only be removed from the map if the mbos of the mboset implements the interface Gisable
|
int |
render()
Note: The method has some side effects such as call reset on the mboset before iterate on it.
|
int |
setCurrentSALocation()
Sets the current record location.
|
int |
showDialog() |
int |
showErrors() |
int |
showErrorsParamObject() |
int |
showMaxMessage() |
int |
showSelectDialog(com.ibm.json.java.JSONObject jsonObject) |
int |
showSelectDialog(WebClientSession webClientSession,
com.ibm.json.java.JSONObject jsonObject) |
int |
storeUserLocation() |
static java.util.Map<java.lang.String,java.lang.String> |
tokenizerAttributes(java.lang.String attributes)
Method to transform the JSON attributes into a Map.
|
boolean |
userHasMapServiceLayerPermission(MboRemote mapServiceLayerMbo,
java.lang.String parent) |
broadcastEvent, cleanup, getDataBean, instantiatedatasrc, instantiatedatasrcdesign
addChild, addComponent, canInsert, canInsert, canRemove, childHasError, childHasErrorFocus, clearComponent, clearErrors, copy, createRenderId, errorLevelChanged, eventCheck, findComponentByDescriptorId, findDesignerProperty, findProperty, findUseForLablledByComponent, getAdaptorInstance, getBoundComponent, getComponent, getComponents, getConditonallyChanged, getDataSource, getDescriptorControl, getDesignerProperty, getDesignerSelected, getDesignerSelectedControl, getElement, getErrorLevel, getGeneratedControl, getOriginalControl, getOriginalProperty, getProperties, getProperty, getProperty, getPropertyIgnoreFlags, getPropertyOriginator, getPropertyUncle, getRecordHover, getSkipPreRender, getTableControl, getTakesValueComponent, handleEvent, hasChanged, hasChangedConditionally, hasChildElements, hasMaskedChanged, hasRecordHover, hasVisibleChildren, initialize, isDesignerEditedProperty, isDisabled, isFocusable, isGenerated, isHiddenByLicense, isIncluded, isLastChild, isMainrecActionMenu, isMasked, isOnTableFilterRow, isOnTableTitleRow, isPersistentProperty, isReInitialize, isSelected, isToBeDisplayedOnCurrentTab, isToBeDisplayedOnTab, isVisible, launchexternal, moveChild, needsRender, parseParamvalues, preRender, preRenderChecks, quickinsert, registerDesignerEditedProperty, reInitialize, removeChild, renderChildren, resetDataSource, resolveParam, resolveParams, setAttributeError, setBoundComponent, setChangedFlag, setChangedFlag, setDesignerSelected, setDisabled, setElement, setErrorFocusOnControl, setFocus, setFocus, setFocusable, setFocusTable, setGenerated, setGeneratedControl, setIncluded, setIncluded, setNeedsRender, setOnTableFilterRow, setOnTableRow, setOnTableTitleRow, setOriginalControl, setPropertyOriginator, setPropertyUncle, setReInitialize, setReRenderFlags, setSelected, setSkipPreRender, setTableControl, setVisibility, stopRender, walkForId, walkForId
addChild, addChild, addRefreshListener, clearChildren, clearProperties, clone, clone, getBoolean, getChildCount, getChildIndex, getChildren, getConsiderInDesigner, getDescriptor, getId, getIdExtension, getInt, getLocalizedType, getPage, getParent, getParentInstance, getPropertyNames, getRefreshListeners, getRenderId, getRowNum, getSafeId, getString, getType, getWebClientSession, handleEvent, hasAnyPropertyChanged, hasLocalProperty, hasPropertyChanged, initProperty, isDynamicContainer, isOnTable, isOnTableRow, maintainControlId, removeProperty, setConsiderInDesigner, setDescriptor, setDynamicContainer, setOnTable, setParent, setProperty, setProperty, setRenderId, setType, setWebClientSession, toString
public MapControlClientEvent getClientEventCtrl()
public MapDataUtils.PROVIDER getCurrentProvider()
getCurrentProvider
in interface MapControlCallbacks
public java.lang.String getWidth()
public java.lang.Boolean isContextPersistent()
public java.lang.Boolean isZoomToDataInput()
public java.lang.Boolean isDataSourceDynamic()
public java.lang.String getZoomLevel()
public java.lang.String getFullExtZoomLevel()
public java.lang.Boolean isMapViewOnly()
public java.lang.Double getInitialX()
public java.lang.Double getInitialY()
public java.lang.Double getFullX()
public java.lang.Double getFullY()
public boolean isMobile()
public java.lang.String getHeight()
public java.lang.String getRefreshMapInterval()
public com.ibm.json.java.JSONObject getRouteConfiguration() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public com.ibm.json.java.JSONObject getMapConfiguration() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public int getPrintTimeout() throws java.rmi.RemoteException
java.rmi.RemoteException
public com.ibm.json.java.JSONObject loadToolsConfiguration() throws MXException, java.lang.NullPointerException, java.io.IOException
MXException
java.lang.NullPointerException
java.io.IOException
public void loadGISMapConfiguration() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public com.ibm.json.java.JSONObject getGoogleMapConfiguration(MboRemote mbo) throws MXException, java.rmi.RemoteException
mbo
- - Map Manager MboMXException
java.rmi.RemoteException
public com.ibm.json.java.JSONObject getBingMapConfiguration(MboRemote mbo) throws MXException, java.rmi.RemoteException
mbo
- - Map Manager MboMXException
java.rmi.RemoteException
public com.ibm.json.java.JSONObject getSpatialMapConfiguration(MboRemote mbo) throws MXException, java.rmi.RemoteException
mbo
- - Map Manager MboMXException
java.rmi.RemoteException
public void addSpatialSecureTokenInfo(com.ibm.json.java.JSONObject mapConf) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public int storeUserLocation() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public int loadMenuItems() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public int setCurrentSALocation() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public int render() throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
render
in class DatasrcInstance
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public com.ibm.json.java.JSONArray getCurrentState() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public com.ibm.json.java.JSONObject getCurrentRecordData() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public MboRemote getMainRecordMbo() throws java.rmi.RemoteException, MXException
getMainRecordMbo
in interface MapControlCallbacks
java.rmi.RemoteException
MXException
public int showMaxMessage() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public int showErrorsParamObject() throws MXException, java.lang.NullPointerException, java.io.IOException
MXException
java.lang.NullPointerException
java.io.IOException
public int showErrors() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public int showDialog() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public int showSelectDialog(WebClientSession webClientSession, com.ibm.json.java.JSONObject jsonObject) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public int showSelectDialog(com.ibm.json.java.JSONObject jsonObject) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public int refreshQueryUnassignedWork() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public int queryUnassignedWorkDispatcher() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public int loadMapTipTemplate() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public int loadAttributesFromLinearAttributeTemplate()
public int getLinearGraphicsbyWhereClause()
public int loadLinearLayerObjectAttributes()
public int deleteLinearLayerSegmentObjects()
public static java.util.Map<java.lang.String,java.lang.String> tokenizerAttributes(java.lang.String attributes)
attributes
- public int loadMapTipSummaryTemplate() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public int refreshMarkersPositions() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void createMapCallback(java.lang.String actionName, com.ibm.json.java.JSONObject data) throws java.rmi.RemoteException, MXException
createMapCallback
in interface MapControlCallbacks
java.rmi.RemoteException
MXException
public void addRecordsToLayer(java.lang.String layerName, MboSetRemote mboSet, boolean cleanOld) throws java.rmi.RemoteException, MXException
MapControlCallbacks
addRecordsToLayer
in interface MapControlCallbacks
cleanOld
- data before add new data?java.rmi.RemoteException
MXException
public void addEventToMap(java.lang.String eventName, com.ibm.json.java.JSONObject action)
public void removeRecordsFromLayer(java.lang.String layerName, MboSetRemote mboSet) throws java.rmi.RemoteException, MXException
MapControlCallbacks
removeRecordsFromLayer
in interface MapControlCallbacks
java.rmi.RemoteException
MXException
public int getWeatherAlertsByQueryParams() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
- the remote exceptionMXException
- the mX exceptionpublic int getCrewLaborByQueryParams() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
- the remote exceptionMXException
- the mX exceptionpublic int getShowMarkersOnRouteError() throws java.rmi.RemoteException
java.rmi.RemoteException
- the remote exceptionpublic static java.lang.String removeCommentsFromJson(java.lang.String isStr)
public int NOOP() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void clearNextEventData()
public int refreshLinearLayers()
public MboRemote getRelationshipLinearObject(MboRemote appMbo, java.lang.String objectName, java.lang.String relationshipName) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public com.ibm.json.java.JSONArray loadLinearSegments(MboRemote linearLayerMbo, MboRemote appMbo, MboRemote relatedAsset, java.lang.String mapMeasureUnit) throws java.rmi.RemoteException, MXException
linearLayerMbo
- appMbo
- java.rmi.RemoteException
MXException
public boolean userHasMapServiceLayerPermission(MboRemote mapServiceLayerMbo, java.lang.String parent) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String getOpenMapReturnAttribute()
public java.lang.String getOriginalApp(java.lang.String app) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public boolean getPropagateCloneStatus(java.lang.String mapName, java.lang.String app) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public int pushMapControlClientEventHandler()
pushMapControlClientEventHandler
in interface MapClientEvents
public int isCurrentMboAddressable() throws java.rmi.RemoteException
java.rmi.RemoteException
public boolean isMboFormattedAddressEditable() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException