com.ibm.tivoli.maximo.map

Class OpenMapControl

    • Constructor Detail

      • OpenMapControl

        public OpenMapControl()
    • Method Detail

      • getWidth

        public java.lang.String getWidth()
      • isContextPersistent

        public java.lang.Boolean isContextPersistent()
      • getZoomLevel

        public java.lang.String getZoomLevel()
      • isMapViewOnly

        public java.lang.Boolean isMapViewOnly()
      • getInitialX

        public java.lang.Double getInitialX()
      • getInitialY

        public java.lang.Double getInitialY()
      • isMobile

        public boolean isMobile()
      • getHeight

        public java.lang.String getHeight()
      • getRefreshMapInterval

        public java.lang.String getRefreshMapInterval()
      • getMapConfiguration

        public com.ibm.json.java.JSONObject getMapConfiguration()
                                                         throws MXException,
                                                                java.io.IOException
        Creates the JSON object configuration based on data from FSM Map Manager app
        Returns:
        Throws:
        MXException
        java.io.IOException
      • isInMapManager

        protected boolean isInMapManager()
                                  throws java.rmi.RemoteException,
                                         MXException
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • loadGISMapConfiguration

        public void loadGISMapConfiguration()
                                     throws MXException,
                                            java.rmi.RemoteException
        Sets the GIS configuration Note: The method has some side effects such as call reset on the mboset before iterate on it. If there is a current record set, it MUST be restored by the application.
        Throws:
        MXException
        java.rmi.RemoteException
      • getCustomMapConfiguration

        protected com.ibm.json.java.JSONObject getCustomMapConfiguration(MboRemote mapManager)
                                                                  throws MXException,
                                                                         java.rmi.RemoteException
        Used to allow customizations
        Parameters:
        mapManager -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • storeUserLocation

        public int storeUserLocation()
                              throws java.rmi.RemoteException,
                                     MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • render

        public int render()
                   throws java.lang.NoSuchMethodException,
                          java.lang.IllegalAccessException,
                          java.lang.reflect.InvocationTargetException
        Note: The method has some side effects such as call reset on the mboset before iterate on it. If there is a current record set, it MUST be restored by the application.
        Overrides:
        render in class DatasrcInstance
        Throws:
        java.lang.NoSuchMethodException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
      • getCurrentState

        public com.ibm.json.java.JSONArray getCurrentState()
                                                    throws java.rmi.RemoteException,
                                                           MXException
        Return the next current state with all JSON data that must be handle by the map component.
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • getCurrentRecordData

        public com.ibm.json.java.JSONObject getCurrentRecordData()
                                                          throws java.rmi.RemoteException,
                                                                 MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • showMaxMessage

        public int showMaxMessage()
                           throws java.rmi.RemoteException,
                                  MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • showErrorsParamObject

        public int showErrorsParamObject()
                                  throws MXException,
                                         java.lang.NullPointerException,
                                         java.io.IOException
        Throws:
        MXException
        java.lang.NullPointerException
        java.io.IOException
      • showErrors

        public int showErrors()
                       throws java.rmi.RemoteException,
                              MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • isMainRecordChanged

        protected boolean isMainRecordChanged()
                                       throws java.rmi.RemoteException,
                                              MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • addRecordsToLayer

        public void addRecordsToLayer(java.lang.String layerName,
                                      MboSetRemote mboSet,
                                      boolean cleanOld)
                               throws java.rmi.RemoteException,
                                      MXException
        Description copied from interface: MapControlCallbacks
        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
        Specified by:
        addRecordsToLayer in interface MapControlCallbacks
        cleanOld - data before add new data?
        Throws:
        java.rmi.RemoteException
        MXException
      • addEventToMap

        public void addEventToMap(java.lang.String eventName,
                                  com.ibm.json.java.JSONObject action)
      • updateMapControlAccessorBounds

        protected void updateMapControlAccessorBounds(LatLngBounds mapBounds)
      • removeRecordsFromLayer

        public void removeRecordsFromLayer(java.lang.String layerName,
                                           MboSetRemote mboSet)
                                    throws java.rmi.RemoteException,
                                           MXException
        Description copied from interface: MapControlCallbacks
        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
        Specified by:
        removeRecordsFromLayer in interface MapControlCallbacks
        Throws:
        java.rmi.RemoteException
        MXException
      • removeCommentsFromJson

        public static java.lang.String removeCommentsFromJson(java.lang.String isStr)
      • clearNextEventData

        public void clearNextEventData()
        Clear the event buffer
      • getOpenMapReturnAttribute

        public java.lang.String getOpenMapReturnAttribute()
        Returns the attribute which called the Open Map component.
        Returns:
        String containing the attribute name.
      • getOriginalApp

        public java.lang.String getOriginalApp(java.lang.String app)
                                        throws java.rmi.RemoteException,
                                               MXException
        Throws:
        java.rmi.RemoteException
        MXException