Class ConvertToDataViewModel
- java.lang.Object
-
- org.gcube.application.geoportalcommon.ConvertToDataViewModel
-
public class ConvertToDataViewModel extends Object
The Class ConvertToGUIModel.- Author:
- Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Nov 2, 2020
-
-
Field Summary
Fields Modifier and Type Field Description static StringDATE_FORMATstatic StringHOURS_MINUTES_SEPARATORstatic StringTIME_FORMAT
-
Constructor Summary
Constructors Constructor Description ConvertToDataViewModel()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BoundsMaptoBoundMap(String wmsVersion, String bbox, String separator)To bound map.static BoundsMaptoBoundMap(org.gcube.application.geoportal.common.model.legacy.BBOX bbox)To bound map.static DoubletoDouble(String value)To double.static StringtoJSON(Object theObj)To JSON.static StringtoPolicy(org.gcube.application.geoportal.common.model.legacy.AccessPolicy policy)To policy.static StringtoUser(String username)To user.
-
-
-
Field Detail
-
DATE_FORMAT
public static final String DATE_FORMAT
- See Also:
- Constant Field Values
-
HOURS_MINUTES_SEPARATOR
public static final String HOURS_MINUTES_SEPARATOR
- See Also:
- Constant Field Values
-
TIME_FORMAT
public static final String TIME_FORMAT
- See Also:
- Constant Field Values
-
-
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 versionbbox- the bboxseparator- the separator- Returns:
- the bounds map
-
toDouble
public static Double toDouble(String value)
To double.- Parameters:
value- the value- Returns:
- the double
-
-