add some LOGs
This commit is contained in:
parent
e2034659f2
commit
8034248799
68
pom.xml
68
pom.xml
|
@ -49,31 +49,31 @@
|
|||
</developer>
|
||||
</developers>
|
||||
|
||||
<!-- <dependencyManagement> -->
|
||||
<!-- <dependencies> -->
|
||||
<!-- <dependency> -->
|
||||
<!-- <groupId>org.gcube.distribution</groupId> -->
|
||||
<!-- <artifactId>maven-portal-bom</artifactId> -->
|
||||
<!-- <version>3.6.0</version> -->
|
||||
<!-- <type>pom</type> -->
|
||||
<!-- <scope>import</scope> -->
|
||||
<!-- <exclusions> -->
|
||||
<!-- <exclusion> -->
|
||||
<!-- <groupId>com.google.gwt</groupId> -->
|
||||
<!-- <artifactId>gwt-user</artifactId> -->
|
||||
<!-- </exclusion> -->
|
||||
<!-- <exclusion> -->
|
||||
<!-- <groupId>com.google.gwt</groupId> -->
|
||||
<!-- <artifactId>gwt-servlet</artifactId> -->
|
||||
<!-- </exclusion> -->
|
||||
<!-- <exclusion> -->
|
||||
<!-- <groupId>com.google.gwt</groupId> -->
|
||||
<!-- <artifactId>gwt-dev</artifactId> -->
|
||||
<!-- </exclusion> -->
|
||||
<!-- </exclusions> -->
|
||||
<!-- </dependency> -->
|
||||
<!-- </dependencies> -->
|
||||
<!-- </dependencyManagement> -->
|
||||
<!-- <dependencyManagement> -->
|
||||
<!-- <dependencies> -->
|
||||
<!-- <dependency> -->
|
||||
<!-- <groupId>org.gcube.distribution</groupId> -->
|
||||
<!-- <artifactId>maven-portal-bom</artifactId> -->
|
||||
<!-- <version>3.6.0</version> -->
|
||||
<!-- <type>pom</type> -->
|
||||
<!-- <scope>import</scope> -->
|
||||
<!-- <exclusions> -->
|
||||
<!-- <exclusion> -->
|
||||
<!-- <groupId>com.google.gwt</groupId> -->
|
||||
<!-- <artifactId>gwt-user</artifactId> -->
|
||||
<!-- </exclusion> -->
|
||||
<!-- <exclusion> -->
|
||||
<!-- <groupId>com.google.gwt</groupId> -->
|
||||
<!-- <artifactId>gwt-servlet</artifactId> -->
|
||||
<!-- </exclusion> -->
|
||||
<!-- <exclusion> -->
|
||||
<!-- <groupId>com.google.gwt</groupId> -->
|
||||
<!-- <artifactId>gwt-dev</artifactId> -->
|
||||
<!-- </exclusion> -->
|
||||
<!-- </exclusions> -->
|
||||
<!-- </dependency> -->
|
||||
<!-- </dependencies> -->
|
||||
<!-- </dependencyManagement> -->
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
@ -116,12 +116,6 @@
|
|||
<version>[2.0.0, 3.0.0-SNAPSHOT)</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.resources.discovery</groupId>
|
||||
<artifactId>ic-client</artifactId>
|
||||
<version>[1.0.0, 2.0.0-SNAPSHOT)</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.core</groupId>
|
||||
<artifactId>common-scope-maps</artifactId>
|
||||
|
@ -151,12 +145,12 @@
|
|||
<artifactId>geoportal-client</artifactId>
|
||||
<version>[1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
||||
<scope>compile</scope>
|
||||
<!-- <exclusions> -->
|
||||
<!-- <exclusion> -->
|
||||
<!-- <groupId>javax.json</groupId> -->
|
||||
<!-- <artifactId>javax.json-api</artifactId> -->
|
||||
<!-- </exclusion> -->
|
||||
<!-- </exclusions> -->
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.gcube.resources.discovery</groupId>
|
||||
<artifactId>ic-client</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.liferay.portal</groupId>
|
||||
|
|
|
@ -53,7 +53,7 @@ public class GeoportalDataViewerConstants {
|
|||
* @param msg the msg
|
||||
*/
|
||||
public static native void print(String msg)/*-{
|
||||
console.log(msg);
|
||||
console.log("js console: "+msg);
|
||||
}-*/;
|
||||
|
||||
|
||||
|
|
|
@ -134,6 +134,7 @@ public class LayerManager {
|
|||
mapBBOX.setCrs(GeoportalDataViewerConstants.EPSG_4326);
|
||||
|
||||
GWT.log("Bounds is: "+mapBBOX);
|
||||
GWT.log("MAX_WFS_FEATURES is: "+GeoportalDataViewerConstants.MAX_WFS_FEATURES);
|
||||
|
||||
GeoportalDataViewerServiceAsync.Util.getInstance().getDataResult(layerObjects, olMap.getProjectionCode(), mapBBOX, GeoportalDataViewerConstants.MAX_WFS_FEATURES, olMap.getCurrentZoomLevel(), new AsyncCallback<List<GeoNaSpatialQueryResult>>() {
|
||||
|
||||
|
@ -184,8 +185,12 @@ public class LayerManager {
|
|||
}
|
||||
|
||||
//If recordId not passed, I'm using the first feature returned
|
||||
if(feature==null)
|
||||
if(feature==null && recordId==null) {
|
||||
feature = features.get(0);
|
||||
}else {
|
||||
//the recordId to show has been passed but not found into list of FeatureRow
|
||||
return;
|
||||
}
|
||||
|
||||
Map<String, List<String>> entries = feature.getMapProperties();
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@ import org.gcube.portlets.user.geoportaldataviewer.shared.gis.wms.GeoInformation
|
|||
import org.gcube.portlets.user.geoportaldataviewer.shared.gis.wms.Styles;
|
||||
import org.gcube.portlets.user.geoportaldataviewer.shared.gis.wms.ZAxis;
|
||||
import org.gcube.portlets.user.geoportaldataviewer.shared.products.ConcessioneDV;
|
||||
import org.gcube.portlets.user.geoportaldataviewer.shared.products.content.WorkspaceContentDV;
|
||||
import org.gcube.portlets.user.geoportaldataviewer.shared.products.model.UploadedImageDV;
|
||||
import org.gcube.portlets.user.urlshortener.UrlShortener;
|
||||
import org.gcube.spatial.data.geoutility.GeoNcWMSMetadataUtility;
|
||||
|
@ -173,7 +172,7 @@ public class GeoportalDataViewerServiceImpl extends RemoteServiceServlet impleme
|
|||
*/
|
||||
@Override
|
||||
public List<UploadedImageDV> getUploadedImagesForId(String itemType, Long id, int maxImages) throws Exception{
|
||||
LOG.info("getUploadedImagesForId "+id+ " called");
|
||||
LOG.info("getUploadedImagesForId [id: "+id+", itemType: "+itemType+"] called");
|
||||
|
||||
if(itemType==null)
|
||||
throw new Exception("Invalid parameter. The itemType is null");
|
||||
|
@ -209,25 +208,25 @@ public class GeoportalDataViewerServiceImpl extends RemoteServiceServlet impleme
|
|||
throw new Exception("Concessione with id: "+id +" not available");
|
||||
}
|
||||
|
||||
|
||||
return listUI;
|
||||
|
||||
}catch (Exception e) {
|
||||
String erroMsg = UploadedImage.class.getSimpleName() +" not available for "+Concessione.class.getSimpleName() +" with id "+id;
|
||||
LOG.error(erroMsg,e);
|
||||
throw new Exception(erroMsg);
|
||||
//TODO REMOTE THIS
|
||||
listUI = new ArrayList<UploadedImageDV>(1);
|
||||
UploadedImageDV img = new UploadedImageDV();
|
||||
List<WorkspaceContentDV> listWsContent = new ArrayList<WorkspaceContentDV>();
|
||||
WorkspaceContentDV wcDV = new WorkspaceContentDV();
|
||||
wcDV.setLink("https://upload.wikimedia.org/wikipedia/commons/thumb/b/b4/Tempio_di_Giove_2.jpg/1280px-Tempio_di_Giove_2.jpg");
|
||||
listWsContent.add(wcDV);
|
||||
img.setListWsContent(listWsContent);
|
||||
listUI.add(img);
|
||||
LOG.warn("DUMMY UploadedImageDVs: "+listUI);
|
||||
return listUI;
|
||||
// listUI = new ArrayList<UploadedImageDV>(1);
|
||||
// UploadedImageDV img = new UploadedImageDV();
|
||||
// List<WorkspaceContentDV> listWsContent = new ArrayList<WorkspaceContentDV>();
|
||||
// WorkspaceContentDV wcDV = new WorkspaceContentDV();
|
||||
// wcDV.setLink("https://upload.wikimedia.org/wikipedia/commons/thumb/b/b4/Tempio_di_Giove_2.jpg/1280px-Tempio_di_Giove_2.jpg");
|
||||
// listWsContent.add(wcDV);
|
||||
// img.setListWsContent(listWsContent);
|
||||
// listUI.add(img);
|
||||
// LOG.warn("DUMMY UploadedImageDVs: "+listUI);
|
||||
// return listUI;
|
||||
|
||||
|
||||
//throw new Exception(erroMsg);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -260,6 +259,7 @@ public class GeoportalDataViewerServiceImpl extends RemoteServiceServlet impleme
|
|||
if(concessionDV==null)
|
||||
throw new Exception("Concessione with id: "+id +" not available");
|
||||
|
||||
LOG.debug("For id "+id+" returning "+ConcessioneDV.class.getSimpleName()+": "+concessionDV);
|
||||
return concessionDV;
|
||||
|
||||
}catch (Exception e) {
|
||||
|
|
|
@ -73,7 +73,7 @@ public class FeatureParser {
|
|||
@SuppressWarnings("unchecked")
|
||||
private static List<FeatureRow> getWFSFeatureProperties(LayerItem layerItem, String mapSrsName, BoundsMap selectBBOX, int maxWFSFeature) {
|
||||
|
||||
LOG.info("getWFSFeatureProperties for layerItem: "+layerItem.getName() +" in the "+selectBBOX);
|
||||
LOG.info("getWFSFeatureProperties for layerItem: "+layerItem.getName() +" in the "+selectBBOX +" and maxWFSFeature: "+maxWFSFeature);
|
||||
InputStream is = null;
|
||||
List<FeatureRow> listFeaturesRow = new ArrayList<FeatureRow>();
|
||||
try {
|
||||
|
|
|
@ -60,6 +60,7 @@ public class GisMakers {
|
|||
String link = layerItem.getMapServerHost();
|
||||
LOG.debug("Map server host URL: " + link);
|
||||
LOG.debug("CQL filter is: " + layerItem.getCqlFilter());
|
||||
LOG.debug("MAX FEATURES: " + maxFeatures);
|
||||
|
||||
String outputformat = null;
|
||||
String boundingBox = "";
|
||||
|
|
|
@ -13,10 +13,10 @@ public class GetConcessione {
|
|||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(GetConcessione.class);
|
||||
|
||||
private static final String YOUR_TOKEN = "8e74a17c-92f1-405a-b591-3a6090066248-98187548";
|
||||
private static final String YOUR_TOKEN = "";
|
||||
|
||||
public static String SCOPE = "/gcube/devsec/devVRE";
|
||||
public static long concessioneId = 67;
|
||||
public static long concessioneId = 8;
|
||||
|
||||
public static ConcessioneDV getConcessioneForId(Long id) throws Exception{
|
||||
LOG.info("getConcessioneForId "+id+ "called");
|
||||
|
|
Loading…
Reference in New Issue