public class DefaultConfiguration extends Object implements Configuration
| Modifier and Type | Field and Description |
|---|---|
protected static Properties |
props |
| Constructor and Description |
|---|
DefaultConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ScopeConfiguration |
acquireConfiguration()
Assign an available configuration to the current scope and returns it
|
void |
createScopeConfiguration(ScopeConfiguration toCreate)
Store the passed configuration
|
protected List<org.gcube.common.resources.gcore.ServiceEndpoint> |
doTheQuery(String geonetworkCategory,
String geonetworkPlatformName) |
Account |
getAdminAccount() |
Set<ScopeConfiguration> |
getExistingConfigurations() |
String |
getGeoNetworkEndpoint() |
ServerAccess.Version |
getGeoNetworkVersion() |
protected org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint |
getIsAccessPoint() |
protected org.gcube.common.resources.gcore.ServiceEndpoint |
getISServiceEndpoint() |
Set<ScopeConfiguration> |
getParentScopesConfiguration() |
ScopeConfiguration |
getScopeConfiguration() |
protected static org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint |
getTheRightAccessPoint(org.gcube.common.resources.gcore.ServiceEndpoint... resources)
look for the access point compliant with configured endpointName and maxPriority (1)
|
protected static org.gcube.common.resources.gcore.ServiceEndpoint |
getTheRightServiceEndpoint(org.gcube.common.resources.gcore.ServiceEndpoint... resources)
look for the access point compliant with configured endpointName and maxPriority (1)
|
protected void |
loadFromIs()
loads configuration from Is
|
protected void |
storeAndReload(ScopeConfiguration toStore)
UPDATE existing values and store new ones
|
protected org.gcube.common.resources.gcore.ServiceEndpoint |
update(org.gcube.common.resources.gcore.ServiceEndpoint toStore) |
protected static Properties props
public DefaultConfiguration()
throws EncryptionException,
MissingConfigurationException
public ServerAccess.Version getGeoNetworkVersion() throws MissingServiceEndpointException
getGeoNetworkVersion in interface ConfigurationMissingServiceEndpointExceptionpublic Account getAdminAccount() throws MissingServiceEndpointException
getAdminAccount in interface ConfigurationMissingServiceEndpointExceptionpublic String getGeoNetworkEndpoint() throws MissingServiceEndpointException
getGeoNetworkEndpoint in interface ConfigurationMissingServiceEndpointExceptionpublic ScopeConfiguration getScopeConfiguration() throws MissingConfigurationException, MissingServiceEndpointException
getScopeConfiguration in interface ConfigurationMissingConfigurationExceptionMissingServiceEndpointExceptionpublic void createScopeConfiguration(ScopeConfiguration toCreate) throws MissingServiceEndpointException
ConfigurationcreateScopeConfiguration in interface ConfigurationMissingServiceEndpointExceptionpublic ScopeConfiguration acquireConfiguration() throws MissingServiceEndpointException, MissingConfigurationException
ConfigurationacquireConfiguration in interface ConfigurationMissingConfigurationException - if no available configuration is foundMissingServiceEndpointExceptionpublic Set<ScopeConfiguration> getExistingConfigurations() throws MissingServiceEndpointException
getExistingConfigurations in interface ConfigurationMissingServiceEndpointExceptionpublic Set<ScopeConfiguration> getParentScopesConfiguration() throws MissingServiceEndpointException
getParentScopesConfiguration in interface ConfigurationMissingServiceEndpointExceptionprotected void loadFromIs()
throws MissingServiceEndpointException
MissingServiceEndpointExceptionprotected org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint getIsAccessPoint()
throws MissingServiceEndpointException
MissingServiceEndpointExceptionprotected org.gcube.common.resources.gcore.ServiceEndpoint getISServiceEndpoint()
throws MissingServiceEndpointException
MissingServiceEndpointExceptionprotected static final org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint getTheRightAccessPoint(org.gcube.common.resources.gcore.ServiceEndpoint... resources)
protected static final org.gcube.common.resources.gcore.ServiceEndpoint getTheRightServiceEndpoint(org.gcube.common.resources.gcore.ServiceEndpoint... resources)
protected List<org.gcube.common.resources.gcore.ServiceEndpoint> doTheQuery(String geonetworkCategory, String geonetworkPlatformName)
protected void storeAndReload(ScopeConfiguration toStore) throws MissingServiceEndpointException
updatedMap - MissingServiceEndpointExceptionMissingConfigurationExceptionEncryptionExceptionprotected org.gcube.common.resources.gcore.ServiceEndpoint update(org.gcube.common.resources.gcore.ServiceEndpoint toStore)
Copyright © 2020. All Rights Reserved.