it.geosolutions.geonetwork.op
Class GNMetadataGetVersion

java.lang.Object
  extended by it.geosolutions.geonetwork.op.GNMetadataGetVersion

public class GNMetadataGetVersion
extends Object

Get the version number for a given Metadata.

GN does not provide the version seq number in an XML format, so this implementation it's quite a hack: it calls metadata.edit service in debug mode, and parses the version number from there.
2 drawbacks here: - debug mode should be enabled, - the resulting document is about 1MB

Author:
ETj (etj at geo-solutions.it)

Field Summary
static Namespace NS_GEONET
           
static Namespace NS_GMD
           
 
Constructor Summary
GNMetadataGetVersion()
           
 
Method Summary
static String get(HTTPUtils connection, String gnServiceURL, Long id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NS_GEONET

public static final Namespace NS_GEONET

NS_GMD

public static final Namespace NS_GMD
Constructor Detail

GNMetadataGetVersion

public GNMetadataGetVersion()
Method Detail

get

public static String get(HTTPUtils connection,
                         String gnServiceURL,
                         Long id)
                  throws GNLibException,
                         GNServerException
Throws:
GNLibException
GNServerException


Copyright © 2011-2012 GeoSolutions. All Rights Reserved.