it.geosolutions.geonetwork.op
Class GNMetadataInsert
java.lang.Object
it.geosolutions.geonetwork.op.GNMetadataInsert
public class GNMetadataInsert
- extends Object
Insert metadata
The input file may be a pure metadata to be inserted into GN, or a full GN
insert metadata request. The full request requires some more meta-metadata.
If such further data are not provided in the input file, they may be specified
in the configuration, and the full request to be sent to GN will be automatically built.
- Author:
- ETj (etj at geo-solutions.it)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GNMetadataInsert
public GNMetadataInsert()
insertMetadata
public static long insertMetadata(HTTPUtils connection,
String gnServiceURL,
File inputFile,
GNInsertConfiguration cfg)
throws GNLibException,
GNServerException
- Insert a raw metadata document in GN.
The full GN request is built using GNInsertConfiguration.
- Returns:
- the id of the new metadata entry
- Throws:
GNLibException
GNServerException
insertRequest
public static long insertRequest(HTTPUtils connection,
String gnServiceURL,
File inputFile)
throws GNLibException,
GNServerException
- Insert a metadata using a request as required by geonetwork.
Required params should be already provided in inputfile.
- Returns:
- the id of the new metadata entry
- Throws:
GNLibException
GNServerException
Copyright © 2011-2012 GeoSolutions. All Rights Reserved.