Interface Configuration
-
- All Known Implementing Classes:
DefaultConfiguration,LocalResourceConfiguration
public interface ConfigurationInterface for managing GeoNetwork configurations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScopeConfigurationacquireConfiguration()Assigns an available configuration to the current scope and returns it.voidcreateScopeConfiguration(ScopeConfiguration toCreate)Store the passed configurationAccountgetAdminAccount()Gets the admin account.Set<ScopeConfiguration>getExistingConfigurations()Gets all existing configurations.StringgetGeoNetworkEndpoint()Gets the GeoNetwork endpoint URL.ServerAccess.VersiongetGeoNetworkVersion()Gets the GeoNetwork version.Set<ScopeConfiguration>getParentScopesConfiguration()Gets configurations from parent scopes.ScopeConfigurationgetScopeConfiguration()Gets the current scope configuration.
-
-
-
Method Detail
-
getGeoNetworkEndpoint
String getGeoNetworkEndpoint() throws MissingServiceEndpointException
Gets the GeoNetwork endpoint URL.- Returns:
- the GeoNetwork endpoint URL
- Throws:
MissingServiceEndpointException- if the service endpoint cannot be found
-
getGeoNetworkVersion
ServerAccess.Version getGeoNetworkVersion() throws MissingServiceEndpointException
Gets the GeoNetwork version.- Returns:
- the GeoNetwork version
- Throws:
MissingServiceEndpointException- if the service endpoint cannot be found
-
getScopeConfiguration
ScopeConfiguration getScopeConfiguration() throws MissingServiceEndpointException, MissingConfigurationException
Gets 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, MissingConfigurationException
Assigns 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
Account getAdminAccount() throws MissingServiceEndpointException
Gets the admin account.- Returns:
- the admin account
- Throws:
MissingServiceEndpointException- if the service endpoint cannot be found
-
getExistingConfigurations
Set<ScopeConfiguration> getExistingConfigurations() throws MissingServiceEndpointException
Gets all existing configurations.- Returns:
- set of existing scope configurations
- Throws:
MissingServiceEndpointException- if the service endpoint cannot be found
-
getParentScopesConfiguration
Set<ScopeConfiguration> getParentScopesConfiguration() throws MissingServiceEndpointException
Gets configurations from parent scopes.- Returns:
- set of parent scope configurations
- Throws:
MissingServiceEndpointException- if the service endpoint cannot be found
-
createScopeConfiguration
void createScopeConfiguration(ScopeConfiguration toCreate) throws MissingServiceEndpointException
Store the passed configuration- Parameters:
toCreate- the configuration to create and store- Throws:
MissingServiceEndpointException- if the service endpoint cannot be found
-
-