com.ibm.tivoli.maximo.map

Class LBSMapHelper

  • java.lang.Object
    • com.ibm.tivoli.maximo.map.LBSMapHelper


  • public class LBSMapHelper
    extends java.lang.Object
    LBS Helper class This class helps to reduce the amount of code in the Map class.
    • Constructor Detail

      • LBSMapHelper

        public LBSMapHelper()
    • Method Detail

      • getLBSData

        public com.ibm.json.java.JSONObject getLBSData(LBS lbs)
                                                throws java.rmi.RemoteException,
                                                       MXException
        Parameters:
        an - LBS mbo
        Returns:
        the LBS mbo information in JSON format Example: { altitude_accuracy: double, altitude: double, heading: double, last_update: speed: double, location_accuracy: double, last_update_condition_state: EXCEEDED_TOLERANCE|INSIDE_TOLERANCE, max_accuracy_state: EXCEEDED_TOLERANCE|INSIDE_TOLERANCE }
        Throws:
        java.rmi.RemoteException
        MXException
      • getLBSAuditData

        public com.ibm.json.java.JSONArray getLBSAuditData(MboRemote lbs,
                                                           com.ibm.json.java.JSONObject recordData,
                                                           java.util.Date startDate,
                                                           java.util.Date endDate)
                                                    throws java.rmi.RemoteException,
                                                           MXException
        Gets the audit information about the main record (lbs) and appends it as lbsdata in recordData. The ideal solution would be to manipulate a mboSet based on the audit table but, unfortunately, this is not supported by the Maximo framework, so we need to make direct database queries to retrieve the data.
        Parameters:
        lbs - an LBS mbo (mbo based on the LBSLOCATION table)
        recordData - lbs in JSONObject format
        startDate - query parameter
        endDate - query parameter
        Returns:
        the audit data (JSONObject with an array of records containing the same current record data and specific audit lbs data)
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • getMaxTimeSinceLastUpdate

        public int getMaxTimeSinceLastUpdate()
                                      throws java.rmi.RemoteException
        Get value for the mxe.lbs.lastupdate.maxTime property
        Throws:
        java.rmi.RemoteException