public class DefaultConfiguration extends Object implements Configuration
| 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() |
protected org.gcube.common.resources.gcore.ServiceEndpoint |
getIsInformation() |
Set<ScopeConfiguration> |
getParentScopesConfiguration() |
ScopeConfiguration |
getScopeConfiguration() |
protected static org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint |
getTheRightAccessPoint(org.gcube.common.resources.gcore.ServiceEndpoint resource)
look for the access point compliant with configured endpointName and masterProperty = true
|
protected Set<ScopeConfiguration> |
loadExisting(org.gcube.common.resources.gcore.ServiceEndpoint toUseEndpoint)
Parse endpoint to load all configurations
|
protected void |
loadFromIs()
loads configuration from Is
|
protected void |
storeAndReload(ScopeConfiguration toStore)
UPDATE existing values and store new ones
|
protected static org.gcube.common.resources.gcore.ServiceEndpoint |
update(org.gcube.common.resources.gcore.ServiceEndpoint toStore) |
public DefaultConfiguration()
throws EncryptionException,
MissingConfigurationException
public 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 Set<ScopeConfiguration> loadExisting(org.gcube.common.resources.gcore.ServiceEndpoint toUseEndpoint) throws MissingServiceEndpointException
toUseEndpoint - MissingServiceEndpointExceptionprotected org.gcube.common.resources.gcore.ServiceEndpoint getIsInformation()
throws MissingServiceEndpointException
MissingServiceEndpointExceptionprotected static final org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint getTheRightAccessPoint(org.gcube.common.resources.gcore.ServiceEndpoint resource)
protected List<org.gcube.common.resources.gcore.ServiceEndpoint> doTheQuery(String geonetworkCategory, String geonetworkPlatformName)
protected void storeAndReload(ScopeConfiguration toStore) throws MissingServiceEndpointException
updatedMap - MissingServiceEndpointExceptionMissingConfigurationExceptionEncryptionExceptionprotected static org.gcube.common.resources.gcore.ServiceEndpoint update(org.gcube.common.resources.gcore.ServiceEndpoint toStore)
Copyright © 2016. All Rights Reserved.