Class ConvertToDataViewModel


  • public class ConvertToDataViewModel
    extends Object
    The Class ConvertToGUIModel.
    Author:
    Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Nov 2, 2020
    • Constructor Detail

      • ConvertToDataViewModel

        public ConvertToDataViewModel()
    • Method Detail

      • toUser

        public static String toUser​(String username)
        To user.
        Parameters:
        username - the username
        Returns:
        the string
      • toPolicy

        public static String toPolicy​(org.gcube.application.geoportal.common.model.legacy.AccessPolicy policy)
        To policy.
        Parameters:
        policy - the policy
        Returns:
        the string
      • toBoundMap

        public static BoundsMap toBoundMap​(org.gcube.application.geoportal.common.model.legacy.BBOX bbox)
        To bound map.
        Parameters:
        bbox - the bbox
        Returns:
        the bounds map
      • toBoundMap

        public static BoundsMap toBoundMap​(String wmsVersion,
                                           String bbox,
                                           String separator)
        To bound map.
        Parameters:
        wmsVersion - the wms version
        bbox - the bbox
        separator - the separator
        Returns:
        the bounds map
      • toDouble

        public static Double toDouble​(String value)
        To double.
        Parameters:
        value - the value
        Returns:
        the double
      • toJSON

        public static String toJSON​(Object theObj)
        To JSON.
        Parameters:
        theObj - the the obj
        Returns:
        the string