org.gcube.application.aquamaps.enabling.Impl
Class ConfigurationImpl

java.lang.Object
  extended by org.gcube.application.aquamaps.enabling.Impl.ConfigurationImpl
All Implemented Interfaces:
Configuration

public class ConfigurationImpl
extends Object
implements Configuration


Field Summary
protected static org.gcube.common.core.utils.logging.GCUBELog logger
           
 
Method Summary
static Configuration get(CrawlerMode mode)
          Returns specified implementation
 org.gcube.application.aquamaps.aquamapsservice.stubs.wrapper.AquaMapsServiceInterface getAMInterface(org.gcube.common.core.scope.GCUBEScope scope)
           
 List<org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.environments.ComputationalInfrastructure> getAvailableInfrastructures(org.gcube.common.core.scope.GCUBEScope scope)
           
 Set<String> getAvailableScopeNames()
           
 Set<org.gcube.common.core.scope.GCUBEScope> getAvailableScopes()
           
 String getBackendUrl(org.gcube.common.core.scope.GCUBEScope scope, String backend)
           
 org.gcube.application.aquamaps.aquamapsservice.stubs.wrapper.DataManagementInterface getDMInterface(org.gcube.common.core.scope.GCUBEScope scope)
           
 DataSourceDescriptor getGeoNetwork(org.gcube.common.core.scope.GCUBEScope scope)
           
 GeoServerDescriptor getGeoServerByEntryPoint(org.gcube.common.core.scope.GCUBEScope scope, String entryPoint)
           
 DBDescriptor getGeoServerDb(org.gcube.common.core.scope.GCUBEScope scope)
           
 List<GeoServerDescriptor> getGeoServers(org.gcube.common.core.scope.GCUBEScope scope)
           
 DBDescriptor getInternalDB(org.gcube.common.core.scope.GCUBEScope scope)
           
 DBDescriptor getPublisherDataBase(org.gcube.common.core.scope.GCUBEScope scope)
           
 org.gcube.application.aquamaps.aquamapsservice.stubs.wrapper.PublisherInterface getPublisherInterface(org.gcube.common.core.scope.GCUBEScope scope)
           
 String getServiceConfigurationParameter(org.gcube.common.core.scope.GCUBEScope scope, String parameter)
           
static Configuration getSingle(org.gcube.common.core.scope.GCUBEScope defaultScope)
          Returns SingleScope implementation, meant for testing purposes
protected  VODescriptor getVO(org.gcube.common.core.scope.GCUBEScope scope)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.gcube.common.core.utils.logging.GCUBELog logger
Method Detail

getSingle

public static Configuration getSingle(org.gcube.common.core.scope.GCUBEScope defaultScope)
                               throws Exception
Returns SingleScope implementation, meant for testing purposes

Parameters:
defaultScope -
Returns:
Throws:
Exception

get

public static Configuration get(CrawlerMode mode)
                         throws Exception
Returns specified implementation

Parameters:
mode -
Returns:
Throws:
Exception

getVO

protected VODescriptor getVO(org.gcube.common.core.scope.GCUBEScope scope)
                      throws ScopeNotFoundException
Throws:
ScopeNotFoundException

getDMInterface

public org.gcube.application.aquamaps.aquamapsservice.stubs.wrapper.DataManagementInterface getDMInterface(org.gcube.common.core.scope.GCUBEScope scope)
                                                                                                    throws ParameterNotFoundException,
                                                                                                           ScopeNotFoundException,
                                                                                                           Exception
Specified by:
getDMInterface in interface Configuration
Throws:
ParameterNotFoundException
ScopeNotFoundException
Exception

getAMInterface

public org.gcube.application.aquamaps.aquamapsservice.stubs.wrapper.AquaMapsServiceInterface getAMInterface(org.gcube.common.core.scope.GCUBEScope scope)
                                                                                                     throws ParameterNotFoundException,
                                                                                                            ScopeNotFoundException,
                                                                                                            Exception
Specified by:
getAMInterface in interface Configuration
Throws:
ParameterNotFoundException
ScopeNotFoundException
Exception

getGeoServers

public List<GeoServerDescriptor> getGeoServers(org.gcube.common.core.scope.GCUBEScope scope)
                                        throws ParameterNotFoundException,
                                               ScopeNotFoundException
Specified by:
getGeoServers in interface Configuration
Throws:
ParameterNotFoundException
ScopeNotFoundException

getServiceConfigurationParameter

public String getServiceConfigurationParameter(org.gcube.common.core.scope.GCUBEScope scope,
                                               String parameter)
                                        throws ParameterNotFoundException,
                                               ScopeNotFoundException
Specified by:
getServiceConfigurationParameter in interface Configuration
Throws:
ParameterNotFoundException
ScopeNotFoundException

getAvailableInfrastructures

public List<org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.environments.ComputationalInfrastructure> getAvailableInfrastructures(org.gcube.common.core.scope.GCUBEScope scope)
                                                                                                                                          throws ParameterNotFoundException,
                                                                                                                                                 ScopeNotFoundException
Specified by:
getAvailableInfrastructures in interface Configuration
Throws:
ParameterNotFoundException
ScopeNotFoundException

getAvailableScopes

public Set<org.gcube.common.core.scope.GCUBEScope> getAvailableScopes()
                                                               throws Exception
Specified by:
getAvailableScopes in interface Configuration
Throws:
Exception

getBackendUrl

public String getBackendUrl(org.gcube.common.core.scope.GCUBEScope scope,
                            String backend)
                     throws ParameterNotFoundException,
                            ScopeNotFoundException
Specified by:
getBackendUrl in interface Configuration
Throws:
ParameterNotFoundException
ScopeNotFoundException

getGeoServerDb

public DBDescriptor getGeoServerDb(org.gcube.common.core.scope.GCUBEScope scope)
                            throws ParameterNotFoundException,
                                   ScopeNotFoundException
Specified by:
getGeoServerDb in interface Configuration
Throws:
ParameterNotFoundException
ScopeNotFoundException

getInternalDB

public DBDescriptor getInternalDB(org.gcube.common.core.scope.GCUBEScope scope)
                           throws ParameterNotFoundException,
                                  ScopeNotFoundException
Specified by:
getInternalDB in interface Configuration
Throws:
ParameterNotFoundException
ScopeNotFoundException

getGeoNetwork

public DataSourceDescriptor getGeoNetwork(org.gcube.common.core.scope.GCUBEScope scope)
                                   throws ParameterNotFoundException,
                                          ScopeNotFoundException
Specified by:
getGeoNetwork in interface Configuration
Throws:
ParameterNotFoundException
ScopeNotFoundException

getGeoServerByEntryPoint

public GeoServerDescriptor getGeoServerByEntryPoint(org.gcube.common.core.scope.GCUBEScope scope,
                                                    String entryPoint)
                                             throws ParameterNotFoundException,
                                                    ScopeNotFoundException
Specified by:
getGeoServerByEntryPoint in interface Configuration
Throws:
ParameterNotFoundException
ScopeNotFoundException

getPublisherDataBase

public DBDescriptor getPublisherDataBase(org.gcube.common.core.scope.GCUBEScope scope)
                                  throws ParameterNotFoundException,
                                         ScopeNotFoundException
Specified by:
getPublisherDataBase in interface Configuration
Throws:
ParameterNotFoundException
ScopeNotFoundException

getPublisherInterface

public org.gcube.application.aquamaps.aquamapsservice.stubs.wrapper.PublisherInterface getPublisherInterface(org.gcube.common.core.scope.GCUBEScope scope)
                                                                                                      throws ParameterNotFoundException,
                                                                                                             ScopeNotFoundException,
                                                                                                             Exception
Specified by:
getPublisherInterface in interface Configuration
Throws:
ParameterNotFoundException
ScopeNotFoundException
Exception

getAvailableScopeNames

public Set<String> getAvailableScopeNames()
                                   throws Exception
Specified by:
getAvailableScopeNames in interface Configuration
Throws:
Exception


Copyright © 2013. All Rights Reserved.