public class GeonetworkCaller extends Object
| Constructor and Description |
|---|
GeonetworkCaller(String geonetworkUrl,
String geonetworkUser,
String geonetworkPassword,
String geoserverUser,
String geoserverPwd)
This Constructor use only Geonetwork
|
public void loadGeoserverDiscovery()
public GeonetworkGetMethods getGeonetworkGetMethods()
public GeonetworkPutMethods getGeonetworkPutMethods()
public String logoutGeonetwork()
public String getUsername()
public String getPassword()
public Boolean getIsLogged()
public ArrayList<String> getOrderedListOfGeoserver(GeonetworkCommonResourceInterface.GeoserverMethodResearch method, GeonetworkCommonResourceInterface.GeoserverType serverType)
method - (mandatory) type enum GeoserverMethodResearchserverType - (mandatory) type enum GeoserverTypepublic String getMetadataByFileIdentifier(String uuid) throws Exception
Exceptionpublic String searchLayerByTitleIsLike(String title) throws Exception
Exceptionpublic String searchLayerByAnyText(String anyText, int maxRecords) throws Exception
anyText - maxRecords - = 0 return all records also return max record as specified in inputExceptionpublic ArrayList<CswRecord> getCswRecordsBySearch(String anyText, int maxRecords) throws Exception
anyText - maxRecords - = 0 return all records also return max record as specified in inputExceptionpublic String searchLayerByTitleIsEqualTo(String title) throws Exception
Exceptionpublic String getGeonetInfoBySearchService(String title, GeonetworkCommonResourceInterface.GeonetworkCategory category, Boolean similarity) throws Exception
title - - (mandatory) string or nullcategory - - (mandatory) string or nullsimilarity - - (mandatory) true is precise - false is impreciseExceptionpublic String insertMetadata(String fileIdentifier, String workspace, String layerTitle, String layerName, String description, GeonetworkCommonResourceInterface.GeonetworkCategory category, String geoServerWmsUrl) throws Exception
fileIdentifier - - (mandatory) string or nulllayerTitle - - (mandatory) stringdescription - - stringcategory - - (mandatory) A element of GeonetworkCategory EnumgeoServerWmsUrl - - (mandatory) stringExceptionpublic String insertMetadata(MetadataInfo metadataInfo) throws Exception
metadataInfo - type MetadataInfoExceptionpublic String insertMetadataByFeatureType(FeatureTypeRest featureTypeRest, GeonetworkCommonResourceInterface.GeonetworkCategory category, String geoServerWmsUrl) throws Exception
featureTypeRest - category - geoServerWmsUrl - Exceptionpublic String insertMetadataByCswTransaction(String fileIdentifier, String workspace, String layerTitle, String layerName, String description, String geoServerWmsUrl) throws Exception
fileIdentifier - - (mandatory) string or nulllayerTitle - - (mandatory) stringdescription - - stringgeoServerWmsUrl - - (mandatory) stringExceptionpublic String updateHarvesting(String id) throws Exception
id - - (mandatory) stringExceptionpublic String deleteMetadataById(String id) throws Exception
id - - (mandatory) stringExceptionpublic CswLayersResult getLayersFromCsw(String referredWorkspace, int startPosition, int maxRecords, boolean sortByTitle, boolean sortAscendent, GeoCaller.FILTER_TYPE filter, String textToSearch)
referredWorkspace - startPosition - maxRecords - sortByTiyle - sortAscendent - filter - textToSearch - public String getLayersUrlInformation(GeoCaller.FILTER_TYPE filter, String textToSearch)
public LayerCsw getLayersInformation(GeoCaller.FILTER_TYPE filter, String textToSearch)
Copyright © 2018. All Rights Reserved.