Class GeoportalCommon
- java.lang.Object
-
- org.gcube.application.geoportalcommon.GeoportalCommon
-
public class GeoportalCommon extends Object
The Class GeoportalCommon.- Author:
- Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Aug 5, 2021
-
-
Constructor Summary
Constructors Constructor Description GeoportalCommon()Instantiates a new geoportal common.GeoportalCommon(GNADataViewerConfigProfile geonaDataProfile)Instantiates a new geoportal common.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GNADataViewerConfigProfilegetGeonaDataProfile()Gets the geona data profile.GeoportalItemReferencesgetPublicLinksFor(GeoportalItemReferences item, boolean createShortURL)Gets the public links for.StringgetShortUrl(String longUrl)Gets the short url.GNADataEntryConfigProfilereadGNADataEntryConfig()Gets the GNA data config read from ApplicationProfile stored into IS.GNADataViewerConfigProfilereadGNADataViewerConfig(String appID)Read GNA data viewer config.
-
-
-
Constructor Detail
-
GeoportalCommon
public GeoportalCommon()
Instantiates a new geoportal common.
-
GeoportalCommon
public GeoportalCommon(GNADataViewerConfigProfile geonaDataProfile)
Instantiates a new geoportal common.- Parameters:
geonaDataProfile- the geona data profile
-
-
Method Detail
-
getPublicLinksFor
public GeoportalItemReferences getPublicLinksFor(GeoportalItemReferences item, boolean createShortURL) throws Exception
Gets the public links for.- Parameters:
item- the itemcreateShortURL- creates and returns the short URL also.- Returns:
- the public links for
- Throws:
Exception- the exception
-
getShortUrl
public String getShortUrl(String longUrl) throws Exception
Gets the short url.- Parameters:
longUrl- the long url- Returns:
- the short url
- Throws:
Exception- the exception
-
getGeonaDataProfile
public GNADataViewerConfigProfile getGeonaDataProfile()
Gets the geona data profile.- Returns:
- the geona data profile
-
readGNADataViewerConfig
public GNADataViewerConfigProfile readGNADataViewerConfig(String appID) throws Exception
Read GNA data viewer config.- Parameters:
appID- the app ID. If null uses the defaultGeoportalCommonConstants.GEOPORTAL_DATA_VIEWER_APP- Returns:
- the GNA data viewer config profile
- Throws:
Exception- the exception
-
readGNADataEntryConfig
public GNADataEntryConfigProfile readGNADataEntryConfig() throws Exception
Gets the GNA data config read from ApplicationProfile stored into IS.- Returns:
- the GNA data config
- Throws:
Exception- the exception
-
-