|
|
|
@ -1,12 +1,12 @@
|
|
|
|
|
package org.gcube.application;
|
|
|
|
|
package org.gcube.application.geoportalcommon;
|
|
|
|
|
|
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
|
|
import java.net.URLEncoder;
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
|
|
|
|
|
import org.gcube.application.shared.GeoNaDataViewerProfile;
|
|
|
|
|
import org.gcube.application.shared.GeoNaItemRef;
|
|
|
|
|
import org.gcube.application.shared.PublicLink;
|
|
|
|
|
import org.gcube.application.geoportalcommon.shared.GeoNaDataViewerProfile;
|
|
|
|
|
import org.gcube.application.geoportalcommon.shared.GeoNaItemRef;
|
|
|
|
|
import org.gcube.application.geoportalcommon.shared.PublicLink;
|
|
|
|
|
import org.gcube.portlets.user.urlshortener.UrlShortener;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
@ -82,11 +82,12 @@ public class GeoportalCommon {
|
|
|
|
|
* @throws Exception the exception
|
|
|
|
|
*/
|
|
|
|
|
public GeoNaDataViewerProfile getGeoNaDataViewProfile(String appID) throws Exception {
|
|
|
|
|
LOG.info("getGeoNaDataViewProfile called");
|
|
|
|
|
LOG.info("getGeoNaDataViewProfile called for: "+appID);
|
|
|
|
|
|
|
|
|
|
if(appID==null || appID.isEmpty())
|
|
|
|
|
appID = GeoportalCommonConstants.GEOPORTAL_DATA_VIEWER_APP;
|
|
|
|
|
|
|
|
|
|
LOG.info("using AppId: "+appID);
|
|
|
|
|
GeoNaDataViewerProfileReader gdvp = new GeoNaDataViewerProfileReader(appID);
|
|
|
|
|
GeoNaDataViewerProfile profile = gdvp.readProfileFromInfrastrucure();
|
|
|
|
|
LOG.info("Returning profile: " + profile);
|