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 May 2, 2023
-
-
Constructor Summary
Constructors Constructor Description GeoportalCommon()Instantiates a new geoportal common.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoportalItemReferencesgetPublicLinksFor(String gcubeScope, 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.
-
-
-
Method Detail
-
getPublicLinksFor
public GeoportalItemReferences getPublicLinksFor(String gcubeScope, GeoportalItemReferences item, boolean createShortURL) throws Exception
Gets the public links for.- Parameters:
gcubeScope- the gcube scopeitem- 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
-
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
-
-