Class EnvironmentConfiguration
java.lang.Object
org.gcube.spatial.data.geonetwork.iso.EnvironmentConfiguration
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EnvironmentConfigurationGets the current environment configuration, loading from IS if needed.org.gcube.common.resources.gcore.GenericResourcepublish()Publishes this configuration as a gCube Generic Resource in the current scope.voidsetDefaultCRS(String defaultCRS) voidsetDistributorEMail(String distributorEMail) voidsetDistributorIndividualName(String distributorIndividualName) voidsetDistributorOrganisationName(String distributorOrganisationName) voidsetDistributorSite(String distributorSite) voidsetHttpProtocolDeclaration(String httpProtocolDeclaration) voidsetLicense(String license) voidsetProjectCitation(String projectCitation) voidsetProjectName(String projectName) voidsetProviderEMail(String providerEMail) voidsetProviderIndividualName(String providerIndividualName) voidsetProviderOrganisationName(String providerOrganisationName) voidsetProviderSite(String providerSite) voidsetThesauri(HashMap<String, Thesaurus> thesauri) voidsetWcsProtocolDeclaration(String wcsProtocolDeclaration) voidsetWfsProtocolDeclaration(String wfsProtocolDeclaration) voidsetWmsProtocolDeclaration(String wmsProtocolDeclaration) toString()toXML()Converts this configuration to XML format.
-
Constructor Details
-
EnvironmentConfiguration
public EnvironmentConfiguration()Constructs a new EnvironmentConfiguration.
-
-
Method Details
-
getConfiguration
Gets the current environment configuration, loading from IS if needed.- Returns:
- the environment configuration
- Throws:
Exception- if configuration cannot be loaded
-
getWmsProtocolDeclaration
- Returns:
- the wmsProtocolDeclaration
-
setWmsProtocolDeclaration
- Parameters:
wmsProtocolDeclaration- the wmsProtocolDeclaration to set
-
getWfsProtocolDeclaration
- Returns:
- the wfsProtocolDeclaration
-
setWfsProtocolDeclaration
- Parameters:
wfsProtocolDeclaration- the wfsProtocolDeclaration to set
-
getWcsProtocolDeclaration
- Returns:
- the wcsProtocolDeclaration
-
setWcsProtocolDeclaration
- Parameters:
wcsProtocolDeclaration- the wcsProtocolDeclaration to set
-
getHttpProtocolDeclaration
- Returns:
- the httpProtocolDeclaration
-
setHttpProtocolDeclaration
- Parameters:
httpProtocolDeclaration- the httpProtocolDeclaration to set
-
getDefaultCRS
- Returns:
- the defaultCRS
-
setDefaultCRS
- Parameters:
defaultCRS- the defaultCRS to set
-
getProjectName
- Returns:
- the projectName
-
setProjectName
- Parameters:
projectName- the projectName to set
-
getProjectCitation
- Returns:
- the projectCitation
-
setProjectCitation
- Parameters:
projectCitation- the projectCitation to set
-
getDistributorIndividualName
- Returns:
- the distributorIndividualName
-
setDistributorIndividualName
- Parameters:
distributorIndividualName- the distributorIndividualName to set
-
getDistributorOrganisationName
- Returns:
- the distributorOrganisationName
-
setDistributorOrganisationName
- Parameters:
distributorOrganisationName- the distributorOrganisationName to set
-
getDistributorEMail
- Returns:
- the distributorEMail
-
setDistributorEMail
- Parameters:
distributorEMail- the distributorEMail to set
-
getDistributorSite
- Returns:
- the distributorSite
-
setDistributorSite
- Parameters:
distributorSite- the distributorSite to set
-
getProviderIndividualName
- Returns:
- the providerIndividualName
-
setProviderIndividualName
- Parameters:
providerIndividualName- the providerIndividualName to set
-
getProviderOrganisationName
- Returns:
- the providerOrganisationName
-
setProviderOrganisationName
- Parameters:
providerOrganisationName- the providerOrganisationName to set
-
getProviderEMail
- Returns:
- the providerEMail
-
setProviderEMail
- Parameters:
providerEMail- the providerEMail to set
-
getProviderSite
- Returns:
- the providerSite
-
setProviderSite
- Parameters:
providerSite- the providerSite to set
-
getLicense
- Returns:
- the license
-
setLicense
- Parameters:
license- the license to set
-
getThesauri
- Returns:
- the thesauri
-
setThesauri
- Parameters:
thesauri- the thesauri to set
-
toString
-
toXML
Converts this configuration to XML format.- Returns:
- XML representation of this configuration
-
publish
public org.gcube.common.resources.gcore.GenericResource publish() throws SAXException, IOException, ParserConfigurationExceptionPublishes this configuration as a gCube Generic Resource in the current scope.- Returns:
- the published Generic Resource
- Throws:
SAXException- if XML parsing failsIOException- if I/O error occursParserConfigurationException- if parser configuration error occurs
-