org.gcube.spatial.data.geonetwork
Class GeoNetwork
java.lang.Object
org.gcube.spatial.data.geonetwork.GeoNetwork
- All Implemented Interfaces:
- GeoNetworkPublisher, GeoNetworkReader
public class GeoNetwork
- extends Object
- implements GeoNetworkPublisher
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
get
public static GeoNetworkPublisher get()
throws Exception
- Throws:
Exception
get
public static GeoNetworkPublisher get(Configuration config)
getConfiguration
public Configuration getConfiguration()
- Specified by:
getConfiguration in interface GeoNetworkReader
login
public void login(LoginLevel lvl)
throws AuthorizationException
- Specified by:
login in interface GeoNetworkReader
- Throws:
AuthorizationException
query
public it.geosolutions.geonetwork.util.GNSearchResponse query(it.geosolutions.geonetwork.util.GNSearchRequest request)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException
- Specified by:
query in interface GeoNetworkReader
- Throws:
it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerException
query
public it.geosolutions.geonetwork.util.GNSearchResponse query(File fileRequest)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException
- Specified by:
query in interface GeoNetworkReader
- Throws:
it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerException
getById
public org.opengis.metadata.Metadata getById(long id)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException,
JAXBException
- Specified by:
getById in interface GeoNetworkReader
- Throws:
it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerException
JAXBException
getById
public org.opengis.metadata.Metadata getById(String UUID)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException,
JAXBException
- Specified by:
getById in interface GeoNetworkReader
- Throws:
it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerException
JAXBException
getByIdAsRawString
public String getByIdAsRawString(String UUID)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException,
JAXBException
- Specified by:
getByIdAsRawString in interface GeoNetworkReader
- Throws:
it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerException
JAXBException
setPrivileges
public void setPrivileges(long metadataId,
it.geosolutions.geonetwork.util.GNPrivConfiguration cfg)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException
- Specified by:
setPrivileges in interface GeoNetworkPublisher
- Throws:
it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerException
insertMetadata
public long insertMetadata(it.geosolutions.geonetwork.util.GNInsertConfiguration configuration,
File metadataFile)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException
- Specified by:
insertMetadata in interface GeoNetworkPublisher
- Throws:
it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerException
insertMetadata
public long insertMetadata(it.geosolutions.geonetwork.util.GNInsertConfiguration configuration,
org.opengis.metadata.Metadata meta)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException,
IOException,
JAXBException
- Specified by:
insertMetadata in interface GeoNetworkPublisher
- Throws:
it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerException
IOException
JAXBException
insertMetadata
public long insertMetadata(File requestFile)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException
- Specified by:
insertMetadata in interface GeoNetworkPublisher
- Throws:
it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerException
insertMetadata
public long insertMetadata(org.opengis.metadata.Metadata meta)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException,
IOException,
JAXBException
- Specified by:
insertMetadata in interface GeoNetworkPublisher
- Throws:
it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerException
IOException
JAXBException
updateMetadata
public void updateMetadata(long id,
File metadataFile)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException
- Specified by:
updateMetadata in interface GeoNetworkPublisher
- Throws:
it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerException
updateMetadata
public void updateMetadata(long id,
org.opengis.metadata.Metadata meta)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException,
IOException,
JAXBException
- Specified by:
updateMetadata in interface GeoNetworkPublisher
- Throws:
it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerException
IOException
JAXBException
deleteMetadata
public void deleteMetadata(long id)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException
- Specified by:
deleteMetadata in interface GeoNetworkPublisher
- Throws:
it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerException
Copyright © 2013. All Rights Reserved.