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 |
---|---|
com.ibm.json.java.JSONObject |
calculateLinearTargetSegment(MboRemote appMbo,
java.lang.String mapMeasureUnit,
com.ibm.json.java.JSONObject linearObjTarget) |
void |
clearMapTipTemplateCache()
Clears the maptip template cache
|
double |
convertMeasure(double measure,
java.lang.String unitSource,
java.lang.String unitDestiny) |
java.lang.String |
deleteLinearSegment(MboRemote appMbo,
java.lang.String objectName,
java.lang.String relationship,
java.util.Map<java.lang.String,java.lang.String> attributes,
UserInfo userinfo)
Method to delete Linear Graphic Segments.
|
static java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getAllSymbologyAttributes(UserInfo userInfo,
MboRemote mapManager) |
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.
|
java.util.List<java.lang.Long> |
getLinearGraphicsbyWhereClause(java.lang.String whereClause,
java.lang.String objectName,
MboRemote appMbo,
UserInfo userInfo)
Method to return a list of Graphics IDs for a particular object that matches the where clause
|
java.lang.String |
getLinearLayerGraphicInfo(MboRemote mbo,
java.lang.String objectname,
java.lang.String relationship,
java.lang.String msgTemplate,
java.lang.String mapName,
UserInfo userinfo,
java.util.Map<java.lang.String,java.lang.String> attributes)
Method to create the HTML code for the Linear Graphic attribute.
|
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.
|
static com.ibm.json.java.JSONObject |
getSymbologyConfigObject(UserInfo userInfo,
MboRemote mapManager) |
boolean |
hasIfAnyGISInfo(com.ibm.json.java.JSONObject recordData) |
static boolean |
isLinearInstalled()
Method to verify if Linear is installed
|
java.util.Map<java.lang.String,java.lang.Integer> |
loadAttributesFromTemplate(java.lang.String template,
java.lang.String objectName,
MboRemote appMbo,
UserInfo userInfo) |
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.
|
void |
setPopulateRelatedAttributes(boolean isPopulateRelatedAttributes) |
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 java.util.Map<java.lang.String,java.lang.Integer> loadAttributesFromTemplate(java.lang.String template, java.lang.String objectName, MboRemote appMbo, UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.List<java.lang.Long> getLinearGraphicsbyWhereClause(java.lang.String whereClause, java.lang.String objectName, MboRemote appMbo, UserInfo userInfo) throws java.rmi.RemoteException, MXException, javax.script.ScriptException
whereClause
- objectName
- appMbo
- userInfo
- java.rmi.RemoteException
MXException
javax.script.ScriptException
public java.lang.String getLinearLayerGraphicInfo(MboRemote mbo, java.lang.String objectname, java.lang.String relationship, java.lang.String msgTemplate, java.lang.String mapName, UserInfo userinfo, java.util.Map<java.lang.String,java.lang.String> attributes) throws java.rmi.RemoteException, MXException
objectname
- mapName
- userinfo
- attributes
- java.rmi.RemoteException
MXException
public java.lang.String deleteLinearSegment(MboRemote appMbo, java.lang.String objectName, java.lang.String relationship, java.util.Map<java.lang.String,java.lang.String> attributes, UserInfo userinfo) throws java.rmi.RemoteException, MXException
objectname
- userinfo
- attributes
- java.rmi.RemoteException
MXException
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(UserInfo userInfo, MboRemote mapManager) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static com.ibm.json.java.JSONObject getSymbologyConfigObject(UserInfo userInfo, MboRemote mapManager)
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 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 exceptionpublic double convertMeasure(double measure, java.lang.String unitSource, java.lang.String unitDestiny)
public void setPopulateRelatedAttributes(boolean isPopulateRelatedAttributes)
public static boolean isLinearInstalled() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public com.ibm.json.java.JSONObject calculateLinearTargetSegment(MboRemote appMbo, java.lang.String mapMeasureUnit, com.ibm.json.java.JSONObject linearObjTarget) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException