git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/spatial-data/gis-interface@100759 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
41cd3446f0
commit
bc646e0607
2
pom.xml
2
pom.xml
|
@ -8,7 +8,7 @@
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.gcube.spatial.data</groupId>
|
<groupId>org.gcube.spatial.data</groupId>
|
||||||
<artifactId>gis-interface</artifactId>
|
<artifactId>gis-interface</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.6-SNAPSHOT</version>
|
||||||
<name>gis-interface</name>
|
<name>gis-interface</name>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
|
@ -14,6 +14,7 @@ import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
import java.util.NoSuchElementException;
|
import java.util.NoSuchElementException;
|
||||||
import java.util.SortedSet;
|
import java.util.SortedSet;
|
||||||
import java.util.concurrent.ConcurrentSkipListSet;
|
import java.util.concurrent.ConcurrentSkipListSet;
|
||||||
|
@ -23,6 +24,7 @@ import org.gcube.spatial.data.geonetwork.GeoNetwork;
|
||||||
import org.gcube.spatial.data.geonetwork.GeoNetworkPublisher;
|
import org.gcube.spatial.data.geonetwork.GeoNetworkPublisher;
|
||||||
import org.gcube.spatial.data.geonetwork.GeoNetworkReader;
|
import org.gcube.spatial.data.geonetwork.GeoNetworkReader;
|
||||||
import org.gcube.spatial.data.geonetwork.LoginLevel;
|
import org.gcube.spatial.data.geonetwork.LoginLevel;
|
||||||
|
import org.gcube.spatial.data.geonetwork.configuration.XMLAdapter;
|
||||||
import org.gcube.spatial.data.gis.is.GeoServerDescriptor;
|
import org.gcube.spatial.data.gis.is.GeoServerDescriptor;
|
||||||
import org.gcube.spatial.data.gis.is.InfrastructureCrawler;
|
import org.gcube.spatial.data.gis.is.InfrastructureCrawler;
|
||||||
import org.gcube.spatial.data.gis.meta.MetadataEnricher;
|
import org.gcube.spatial.data.gis.meta.MetadataEnricher;
|
||||||
|
@ -47,16 +49,19 @@ public class GISInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//************ INSTANCE
|
//************ INSTANCE
|
||||||
|
|
||||||
|
private List<XMLAdapter> toRegisterXMLAdapters=null;
|
||||||
|
|
||||||
|
|
||||||
private GISInterface() throws Exception{
|
private GISInterface() throws Exception{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
public void setToRegisterXMLAdapters(List<XMLAdapter> toRegisterXMLAdapters) {
|
||||||
|
this.toRegisterXMLAdapters = toRegisterXMLAdapters;
|
||||||
|
}
|
||||||
|
|
||||||
//*******************READER getter METHODS
|
//*******************READER getter METHODS
|
||||||
|
|
||||||
|
@ -394,7 +399,12 @@ public class GISInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
private synchronized GeoNetworkPublisher getGN() throws Exception{
|
private synchronized GeoNetworkPublisher getGN() throws Exception{
|
||||||
if(geoNetwork==null) geoNetwork=GeoNetwork.get();
|
if(geoNetwork==null) {
|
||||||
|
geoNetwork=GeoNetwork.get();
|
||||||
|
if(toRegisterXMLAdapters!=null)
|
||||||
|
for(XMLAdapter adapter:toRegisterXMLAdapters)
|
||||||
|
geoNetwork.registerXMLAdapter(adapter);
|
||||||
|
}
|
||||||
return geoNetwork;
|
return geoNetwork;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue