psdi.webclient.beans.linear

Class LinearVCUtils

  • java.lang.Object
    • psdi.webclient.beans.linear.LinearVCUtils


  • public class LinearVCUtils
    extends java.lang.Object
    Util class for Map Linear Layers
    • Constructor Summary

      Constructors 
      Constructor and Description
      LinearVCUtils() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double convertMeasure(double measure, java.lang.String unitSource, java.lang.String unitDestiny)
      This method converts a measure in a unit to another unit.
      java.util.List 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.util.Map getLinearLayerGraphicInfo(MboSetRemote mboRelSet, java.lang.String objectname, java.lang.String relationship, java.util.Map msgTemplates, java.lang.String orgId, UserInfo userinfo, java.util.Map attributes, MboRemote linearLayer)
      Method to return the HTML string for the Graphic attributes (Used in the Identify tool)
      java.util.Map loadAttributesFromTemplate(java.lang.String template, java.lang.String objectName, MboRemote appMbo, UserInfo userInfo)
      Method to get all the attributes from the template.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LinearVCUtils

        public LinearVCUtils()
    • Method Detail

      • getLinearLayerGraphicInfo

        public java.util.Map getLinearLayerGraphicInfo(MboSetRemote mboRelSet,
                                                       java.lang.String objectname,
                                                       java.lang.String relationship,
                                                       java.util.Map msgTemplates,
                                                       java.lang.String orgId,
                                                       UserInfo userinfo,
                                                       java.util.Map attributes,
                                                       MboRemote linearLayer)
                                                throws java.rmi.RemoteException,
                                                       MXException
        Method to return the HTML string for the Graphic attributes (Used in the Identify tool)
        Parameters:
        objectname -
        orgid -
        userinfo -
        attributes -
        Returns:
        String
        Throws:
        java.rmi.RemoteException
        MXException
      • loadAttributesFromTemplate

        public java.util.Map loadAttributesFromTemplate(java.lang.String template,
                                                        java.lang.String objectName,
                                                        MboRemote appMbo,
                                                        UserInfo userInfo)
                                                 throws MXException,
                                                        java.rmi.RemoteException
        Method to get all the attributes from the template. The template is configured inside the Linear tab (Map manager)
        Parameters:
        template -
        objectName -
        appMbo -
        userInfo -
        Returns:
        Map containing the attribute name and the attribute type (integer, double, float, and so on)
        Throws:
        MXException
        java.rmi.RemoteException
      • getLinearGraphicsbyWhereClause

        public java.util.List getLinearGraphicsbyWhereClause(java.lang.String whereClause,
                                                             java.lang.String objectName,
                                                             MboRemote appMbo,
                                                             UserInfo userInfo)
                                                      throws MXException,
                                                             java.rmi.RemoteException,
                                                             javax.script.ScriptException
        Method to return a list of Graphics IDs for a particular object that matches the where clause. This method get the where clause and replace all the attributes with the mbo's values, and then evaluate the string to return true or false.
        Parameters:
        whereClause -
        objectName -
        appMbo -
        userInfo -
        Returns:
        List of graphic ids
        Throws:
        MXException
        java.rmi.RemoteException
        javax.script.ScriptException
      • convertMeasure

        public double convertMeasure(double measure,
                                     java.lang.String unitSource,
                                     java.lang.String unitDestiny)
        This method converts a measure in a unit to another unit. The default measure used for conversion is meter, so first the method converts the measure to meter, and then converts to the final unit.
        Parameters:
        measure -
        unitSource -
        unitDestiny -
        Returns: