public class GeoCaller extends GeoCallerConfigurationInterface
| Modifier and Type | Class and Description |
|---|---|
static class |
GeoCaller.FILTER_TYPE |
DEFAULTMETHODRESEARCH, MAXTRY, TRYSLEEPTIME| Constructor and Description |
|---|
GeoCaller(String geoserverWmsUrl,
String geoserverUsername,
String geoserverPassword)
This constructor instance only GeoserverCaller
|
GeoCaller(String geonetworkUrl,
String geonetworkUser,
String geonetworkPwd,
String geoserverWmsUrl,
String geoserverUser,
String geoserverPwd,
GeonetworkCommonResourceInterface.GeoserverMethodResearch geoserverResearchMethod)
This constructor instance Geonetwork and load (with sorting criteria passed in input) the lists of Geoserver from Geonetwork (or specific GeoserverCaller with params in input)
|
public GeoCaller(String geonetworkUrl, String geonetworkUser, String geonetworkPwd, String geoserverWmsUrl, String geoserverUser, String geoserverPwd, GeonetworkCommonResourceInterface.GeoserverMethodResearch geoserverResearchMethod) throws Exception
geonetworkUrl - (mandatory) - if null instance only GeoserverCaller (with params in input) if availablegeonetworkUser - (mandatory)geonetworkPwd - (mandatory)geoserverWmsUrl - (mandatory) - if null instance only GeonetworkCaller if availablegeoserverUser - (mandatory)geoserverPwd - (mandatory)geoserverResearchMethod - Exceptionpublic void setWmsGeoserver(String geoserverUrl, String geoserverUsername, String geoserverPassword) throws Exception
Exceptionpublic void setWfsGeoserver(String geoserverUrl, String geoserverUsername, String geoserverPassword) throws Exception
Exceptionpublic String getCurrentWmsGeoserver()
public String getCurrentWfsGeoserver()
public void setWmsGeoserverResearchStrategy(GeonetworkCommonResourceInterface.GeoserverMethodResearch strategy, String user, String pwd) throws Exception
Exceptionpublic void setWfsGeoserverResearchStrategy(GeonetworkCommonResourceInterface.GeoserverMethodResearch strategy, String user, String pwd) throws Exception
Exceptionpublic String getMetadataByFileIdentifier(String uuid) throws Exception
Exceptionpublic String searchLayerByTitleIsLike(String title) throws Exception
Exceptionpublic String searchLayerByTitleIsEqualTo(String title) throws Exception
Exceptionpublic String getGeonetworkLayerInfoBySearchService(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 ArrayList<CswRecord> getGeonetworkCswRecordsBySearch(String anyText, int maxRecords) throws Exception
anyText - maxRecords - = 0 return all records also return max record as specified in inputExceptionpublic String insertMetadata(String fileIdentifier, String workspace, String layerTitle, String layerName, String description, GeonetworkCommonResourceInterface.GeonetworkCategory category, String geoServerWmsUrl) throws Exception
fileIdentifier - workspace - layerTitle - layerName - description - category - geoServerWmsUrl - Exceptionpublic String insertMetadata(MetadataInfo metadataInfo) throws Exception
metadataInfo - type MetadataInfoExceptionpublic String insertMetadataByCswTransaction(String fileIdentifier, String workspace, String layerTitle, String layerName, String description, String geoServerWmsUrl) throws Exception
fileIdentifier - workspace - layerTitle - layerName - description - geoServerWmsUrl - Exceptionpublic String updateHarvesting(String id) throws Exception
id - - (mandatory) stringExceptionpublic String deleteMetadataById(String id) throws Exception
id - - (mandatory) stringExceptionpublic WorkspaceRest getWorkspace(String wokspaceName) throws Exception
Exceptionpublic List<String> listDataStores(String wokspaceName) throws Exception
Exceptionpublic DataStoreRest getDataStore(String wokspaceName, String dataStore) throws Exception
Exceptionpublic ArrayList<String> listFeaturetypes(String wokspaceName, String dataStore) throws Exception
Exceptionpublic FeatureTypeRest getFeatureType(String wokspaceName, String dataStore, String featureType) throws Exception
Exceptionpublic CoverageTypeRest getCoverageType(String wokspaceName, String coveragestore, String coverageType) throws Exception
Exceptionpublic InputStream getStyle(String styleName) throws Exception
Exceptionpublic List<String> listCoverageStores(String wokspaceName) throws Exception
Exceptionpublic CoverageStoreRest getCoverageStore(String wokspaceName, String coverageStore) throws Exception
Exceptionpublic ArrayList<String> listCoverages(String wokspaceName, String coverageStore) throws Exception
Exceptionpublic boolean addLayersGroup(GroupRest group, GeonetworkCommonResourceInterface.GeonetworkCategory category) throws Exception
Exceptionpublic boolean addGeoLayer(String fileUrl, String layerName, String layerTitle, String workspace, GeonetworkCommonResourceInterface.GeonetworkCategory category, String description, String abstr, String scope) throws Exception
Exceptionpublic boolean addGeoTiff(String geoTiffUrl, String layerName, String layerTitle, String workspace, GeonetworkCommonResourceInterface.GeonetworkCategory category, String description, String abstr, String scope) throws Exception
Exceptionpublic boolean addPreExistentGeoTiff(String fileName, String layerName, String layerTitle, String workspace, GeonetworkCommonResourceInterface.GeonetworkCategory category, String description, String abstr) throws Exception
Exceptionpublic boolean addFeatureType(FeatureTypeRest featureTypeRest, GeonetworkCommonResourceInterface.GeonetworkCategory category, String description, String abstr) throws Exception
Exceptionpublic boolean addFeatureType(FeatureTypeRest featureTypeRest, GeonetworkCommonResourceInterface.GeonetworkCategory category) throws Exception
Exceptionpublic boolean layerExists(String layerName, int maxtries) throws Exception
Exceptionpublic boolean groupExists(String groupName, int maxtries) throws Exception
Exceptionpublic boolean setLayer(FeatureTypeRest featureTypeRest, String defaultStyle, ArrayList<String> styles) throws Exception
Exceptionpublic boolean addStyleToLayer(String layer, String style) throws Exception
Exceptionpublic boolean modifyLayersGroup(GroupRest group) throws Exception
Exceptionpublic boolean modifyStyleSDL(String schemaName, String xmlSdl) throws Exception
Exceptionpublic boolean deleteStyleSDL(String schemaName, boolean purge) throws Exception
Exceptionpublic boolean deleteFeatureTypes(String wokspaceName, String dataStore, String featureTypes) throws Exception
Exceptionpublic String getGeoServerForName(String name, boolean searchgroup) throws Exception
groupName - Exceptionpublic String getGeoServerForGroup(String groupName) throws Exception
Exceptionpublic String getGeoServerForLayer(String layerName) throws Exception
Exceptionpublic List<String> getLayerTitlesByWms(List<String> workspaces, List<String> layerNames) throws Exception
Exceptionpublic CswLayersResult getLayersFromCsw() throws Exception
Exceptionpublic CswLayersResult getLayersFromCsw(String referredWorkspace) throws Exception
Exceptionpublic CswLayersResult getLayersFromCsw(String referredWorkspace, int startPosition, int maxRecords) throws Exception
Exceptionpublic CswLayersResult getLayersFromCsw(String referredWorkspace, int startPosition, int maxRecords, boolean sortByTiyle, boolean sortAscendent) throws Exception
Exceptionpublic CswLayersResult getLayersFromCsw(String referredWorkspace, int startPosition, int maxRecords, boolean sortByTitle, boolean sortAscendent, GeoCaller.FILTER_TYPE filter, String textToSearch) throws Exception
Exceptionpublic void close()
public boolean addGeoLayer(String fileUrl, String layerName, String layerTitle, String workspace, GeonetworkCommonResourceInterface.GeonetworkCategory category, org.opengis.metadata.Metadata toPublishMeta, String scope, String defaultStyle) throws Exception
Exceptionpublic boolean addFeatureType(FeatureTypeRest featureTypeRest, String defaultStyle, GeonetworkCommonResourceInterface.GeonetworkCategory category, org.opengis.metadata.Metadata toPublishMeta) throws Exception
Exceptionpublic boolean addGeoTiff(String geoTiffUrl, String layerName, String layerTitle, String workspace, GeonetworkCommonResourceInterface.GeonetworkCategory category, org.opengis.metadata.Metadata toPublishMeta, String scope, String defaultStyle) throws Exception
ExceptionCopyright © 2018. All Rights Reserved.