git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngineGeoSpatialExtension@76711 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
e377a35adb
commit
872d1260b2
|
@ -294,7 +294,11 @@ public class NetCDFMetadata {
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void insertMetaData() throws Exception {
|
public void insertMetaData() throws Exception{
|
||||||
|
insertMetaData("3", "datasets", "_none_", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void insertMetaData(String group, String category, String stylesheet, boolean validate) throws Exception {
|
||||||
|
|
||||||
// layer uri: wms, wfs wcs
|
// layer uri: wms, wfs wcs
|
||||||
List<String> layerUris = new ArrayList<String>();
|
List<String> layerUris = new ArrayList<String>();
|
||||||
|
@ -470,7 +474,7 @@ public class NetCDFMetadata {
|
||||||
GNClient client = new GNClient(geonetworkUrl);
|
GNClient client = new GNClient(geonetworkUrl);
|
||||||
client.login(geonetworkUser, geonetworkPwd);
|
client.login(geonetworkUser, geonetworkPwd);
|
||||||
File tmetafile = meta2File(meta);
|
File tmetafile = meta2File(meta);
|
||||||
client.insertMetadata(new GNInsertConfiguration("3", "datasets", "_none_", true), tmetafile);
|
client.insertMetadata(new GNInsertConfiguration(group, category, stylesheet,validate), tmetafile);
|
||||||
tmetafile.delete();
|
tmetafile.delete();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue