public class MapDataUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MapDataUtils.PROVIDER |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTOLOCATEDATA |
static java.lang.String |
GISDATA |
static java.lang.String |
LAT_PROPERTY |
static java.lang.String |
LNG_PROPERTY |
static java.lang.String |
MXDATA |
Constructor and Description |
---|
MapDataUtils() |
Modifier and Type | Method and Description |
---|---|
void |
clearMapTipTemplateCache()
Clears the maptip template cache
|
static java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getAllSymbologyAttributes() |
com.ibm.json.java.JSONObject |
getGISData(MboRemote currentMbo)
Return GIS data for the current MBO.
|
com.ibm.json.java.JSONObject |
getGISDataFromGisable(GISable gisMbo) |
com.ibm.json.java.JSONArray |
getLBSAuditData(MboRemote currentMbo,
java.util.Date startDate,
java.util.Date endDate)
Return the current LBS audit data (if any).
|
com.ibm.json.java.JSONObject |
getLBSData(MboRemote currentMbo)
Return the current LBS data.
|
MboRemote |
getMapManager(UserInfo user) |
java.lang.String |
getMapProvider(MboRemote mapManager) |
java.lang.String |
getMapTipData(MboRemote mbo,
java.lang.String mboName,
java.lang.String templateField,
UserInfo userInfo,
com.ibm.json.java.JSONArray mapTipOverrides) |
com.ibm.json.java.JSONObject |
getMboAsJSONObject(MboRemote mbo)
Transform an mbo into a JSONobject with gis,mx and lbs data, and eventually Autolocate data
|
com.ibm.json.java.JSONArray |
getMboSetAsJSONArray(MboSetRemote mboSet)
Transform a mboSet into a JSONArray with gis,mx and lbs data, and eventually Autolocate data
|
java.util.Date |
getMinimumLastUpdateTimestamp()
Get the current date minus the mxe.lbs.lastupdate.maxTime
|
com.ibm.json.java.JSONObject |
getMXData(MboRemote currentMbo)
Return the current Mbo Maximo data.
|
java.lang.Long |
getObjectIdFromRecordData(com.ibm.json.java.JSONObject recordData) |
java.lang.String |
getObjectNameFromRecordData(com.ibm.json.java.JSONObject recordData) |
com.ibm.json.java.JSONArray |
getParamsAsJsonArray(java.lang.String jsonAsString)
Gets the params as json array.
|
com.ibm.json.java.JSONObject |
getParamsAsJsonObject(java.lang.String jsonAsString)
Gets the params as json object.
|
boolean |
hasIfAnyGISInfo(com.ibm.json.java.JSONObject recordData) |
void |
setGisableAttributes(MboRemote mbo,
com.ibm.json.java.JSONObject recordData,
com.ibm.json.java.JSONObject gisData) |
java.lang.Boolean |
setJSONAutoLocateAttributes(MboRemote mbo,
com.ibm.json.java.JSONObject recordData)
Sets the auto locate attributes into the Json Object passed as a parameter.
|
public static final java.lang.String MXDATA
public static final java.lang.String LNG_PROPERTY
public static final java.lang.String LAT_PROPERTY
public static final java.lang.String AUTOLOCATEDATA
public static final java.lang.String GISDATA
public com.ibm.json.java.JSONObject getGISData(MboRemote currentMbo) throws java.rmi.RemoteException, MXException
currentMbo
- the current mbojava.rmi.RemoteException
- the remote exceptionMXException
- the mX exceptionpublic com.ibm.json.java.JSONObject getGISDataFromGisable(GISable gisMbo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public com.ibm.json.java.JSONObject getLBSData(MboRemote currentMbo) throws MXException, java.rmi.RemoteException
currentMbo
- the current mboMXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionpublic com.ibm.json.java.JSONObject getMXData(MboRemote currentMbo) throws java.rmi.RemoteException, MXException
currentMbo
- the current mbojava.rmi.RemoteException
- the remote exceptionMXException
- the mX exceptionpublic com.ibm.json.java.JSONObject getParamsAsJsonObject(java.lang.String jsonAsString)
jsonAsString
- the json as stringpublic com.ibm.json.java.JSONArray getParamsAsJsonArray(java.lang.String jsonAsString)
jsonAsString
- the json as stringpublic com.ibm.json.java.JSONArray getMboSetAsJSONArray(MboSetRemote mboSet) throws java.rmi.RemoteException, MXException
mboSet
- the Gisable mbosetjava.rmi.RemoteException
- the remote exceptionMXException
- the mX exceptionpublic com.ibm.json.java.JSONObject getMboAsJSONObject(MboRemote mbo) throws java.rmi.RemoteException, MXException
mbo
- the Gisable mbojava.rmi.RemoteException
- the remote exceptionMXException
- the mX exceptionpublic void setGisableAttributes(MboRemote mbo, com.ibm.json.java.JSONObject recordData, com.ibm.json.java.JSONObject gisData) throws java.rmi.RemoteException, MXException
the
- Gisable mboJson
- object recordDatagisData
- java.rmi.RemoteException
MXException
public java.lang.Boolean setJSONAutoLocateAttributes(MboRemote mbo, com.ibm.json.java.JSONObject recordData) throws MXException, java.rmi.RemoteException
mbo
- the Gisable mborecordData
- th Json objectMXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionpublic boolean hasIfAnyGISInfo(com.ibm.json.java.JSONObject recordData)
public static java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getAllSymbologyAttributes() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String getObjectNameFromRecordData(com.ibm.json.java.JSONObject recordData)
public java.lang.Long getObjectIdFromRecordData(com.ibm.json.java.JSONObject recordData)
public java.lang.String getMapTipData(MboRemote mbo, java.lang.String mboName, java.lang.String templateField, UserInfo userInfo, com.ibm.json.java.JSONArray mapTipOverrides) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.util.Date getMinimumLastUpdateTimestamp() throws java.rmi.RemoteException
java.rmi.RemoteException
- the remote exceptionpublic MboRemote getMapManager(UserInfo user) throws MXException, java.rmi.RemoteException
user
- MXException
java.rmi.RemoteException
public java.lang.String getMapProvider(MboRemote mapManager) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void clearMapTipTemplateCache()
public com.ibm.json.java.JSONArray getLBSAuditData(MboRemote currentMbo, java.util.Date startDate, java.util.Date endDate) throws MXException, java.rmi.RemoteException
currentMbo
- the current mboMXException
- the mX exceptionjava.rmi.RemoteException
- the remote exception