Interface Configuration
- All Known Implementing Classes:
DefaultConfiguration,LocalResourceConfiguration
public interface Configuration
Interface for managing GeoNetwork configurations.
-
Method Summary
Modifier and TypeMethodDescriptionAssigns an available configuration to the current scope and returns it.voidcreateScopeConfiguration(ScopeConfiguration toCreate) Store the passed configurationGets the admin account.Gets all existing configurations.Gets the GeoNetwork endpoint URL.Gets the GeoNetwork version.Gets configurations from parent scopes.Gets the current scope configuration.
-
Method Details
-
getGeoNetworkEndpoint
Gets the GeoNetwork endpoint URL.- Returns:
- the GeoNetwork endpoint URL
- Throws:
MissingServiceEndpointException- if the service endpoint cannot be found
-
getGeoNetworkVersion
Gets the GeoNetwork version.- Returns:
- the GeoNetwork version
- Throws:
MissingServiceEndpointException- if the service endpoint cannot be found
-
getScopeConfiguration
ScopeConfiguration getScopeConfiguration() throws MissingServiceEndpointException, MissingConfigurationExceptionGets the current scope configuration.- Returns:
- current scope configuration
- Throws:
MissingServiceEndpointException- if the service endpoint cannot be foundMissingConfigurationException- if the configuration is missing
-
acquireConfiguration
ScopeConfiguration acquireConfiguration() throws MissingServiceEndpointException, MissingConfigurationExceptionAssigns an available configuration to the current scope and returns it.- Returns:
- the acquired scope configuration
- Throws:
MissingServiceEndpointException- if the service endpoint cannot be foundMissingConfigurationException- if no available configuration is found
-
getAdminAccount
Gets the admin account.- Returns:
- the admin account
- Throws:
MissingServiceEndpointException- if the service endpoint cannot be found
-
getExistingConfigurations
Gets all existing configurations.- Returns:
- set of existing scope configurations
- Throws:
MissingServiceEndpointException- if the service endpoint cannot be found
-
getParentScopesConfiguration
Gets configurations from parent scopes.- Returns:
- set of parent scope configurations
- Throws:
MissingServiceEndpointException- if the service endpoint cannot be found
-
createScopeConfiguration
Store the passed configuration- Parameters:
toCreate- the configuration to create and store- Throws:
MissingServiceEndpointException- if the service endpoint cannot be found
-