org.gcube.application.aquamaps.aquamapsservice.impl.util.isconfig
Class ConfigurationManager

java.lang.Object
  extended by org.gcube.application.aquamaps.aquamapsservice.impl.util.isconfig.ConfigurationManager

public class ConfigurationManager
extends Object


Constructor Summary
ConfigurationManager()
           
 
Method Summary
protected static ArrayList<org.gcube.common.core.scope.GCUBEScope> findAvailableScopes(org.gcube.common.core.scope.GCUBEScope Infrastructure)
          Finds accessible scopes from current ghn context
protected static ArrayList<org.gcube.common.core.scope.GCUBEScope> getChildren(org.gcube.common.core.scope.GCUBEScope scope)
          Queries IS for generic resources describing children of the given scope
protected static List<DataSourceDescriptor> getGeoNetwork()
          Query passed scope for RuntimeResources describing valid geoNetworks AtomicConditions : //Profile/Category = Constants.get().getGeoNetworkCategoryName() //Profile/Platform/Name = Constants.get().getGeoNetworkPlatformName() Valid Access Points : EntryName = Constants.get().getGeoNetworkEntryName()
protected static List<GeoServerDescriptor> getGeoServers()
          Query passed scope for RuntimeResources describing valid geoServers AtomicConditions : //Profile/Category = Constants.get().getGeoServerCategoryName() //Profile/Platform/Name = Constants.get().getGeoServerPlatformName() Valid Access Points : EntryName = Constants.get().getGeoServerEntryName() Mandatory properties : Constants.get().getGeoServerAquaMapsWorkspace() Constants.get().getGeoServerAquaMapsDataStore() Constants.get().getGeoServerAquaMapsDefaultDistributionStyle()
protected static List<DBDescriptor> getGISDBDescriptor()
          Query passed scope for RuntimeResources describing valid GIS Database AtomicConditions : //Profile/Category = Constants.get().getGeoServerDBCategory() //Profile/Platform/Name = Constants.get().getGeoServerDBPlatformName() Valid Access Points : EntryName = Constants.get().getGeoServerDBEntryName() Mandatory properties: Constants.get().getGeoServerDBAquaMapsDataStore() : boolean = true Constants.get().getDBMaxConnection() : integer DBDescriptor.AQUAMAPS_WORLD_TABLE
protected static List<DBDescriptor> getInternalDB()
          Query passed scope for RuntimeResources describing valid Internal Database AtomicConditions : //Profile/Category = Constants.get().getInternalDBCategoryName() //Profile/Platform/Name = Constants.get().getInternalDBPlatformName() Valid Access Points : EntryName = Constants.get().getInternalDBEntryName() Mandatory properties: Constants.get().getInternalDBSchemaName() : boolean = true Constants.get().getDBMaxConnection() : integer DBDescriptor.TABLESPACE_PREFIX DBDescriptor.TABLESPACE_COUNT
protected static ArrayList<DBDescriptor> getPublisherDB()
          Query passed scope for RuntimeResources describing valid Publisher Database AtomicConditions : //Profile/Category = Constants.get().getPublisherDBCategoryName() //Profile/Platform/Name = Constants.get().getPublisherDBPlatformName() Valid Access Points : EntryName = Constants.get().getPublisherDBEntryName() Mandatory properties: Constants.get().getPublisherDBSchemaName() : boolean = true Constants.get().getDBMaxConnection() : integer
static VODescriptor getVODescriptor()
           
static String init(org.gcube.common.core.scope.GCUBEScope infrastructureScope)
          Finds suitable scopes among available ones
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationManager

public ConfigurationManager()
Method Detail

getVODescriptor

public static VODescriptor getVODescriptor()
                                    throws Exception
Throws:
Exception

init

public static String init(org.gcube.common.core.scope.GCUBEScope infrastructureScope)
                   throws Exception
Finds suitable scopes among available ones

Throws:
Exception

findAvailableScopes

protected static ArrayList<org.gcube.common.core.scope.GCUBEScope> findAvailableScopes(org.gcube.common.core.scope.GCUBEScope Infrastructure)
                                                                                throws Exception
Finds accessible scopes from current ghn context

Throws:
Exception

getChildren

protected static ArrayList<org.gcube.common.core.scope.GCUBEScope> getChildren(org.gcube.common.core.scope.GCUBEScope scope)
                                                                        throws Exception
Queries IS for generic resources describing children of the given scope

Parameters:
scope -
Returns:
Throws:
Exception

getGISDBDescriptor

protected static List<DBDescriptor> getGISDBDescriptor()
                                                throws NumberFormatException,
                                                       Exception
Query passed scope for RuntimeResources describing valid GIS Database AtomicConditions : //Profile/Category = Constants.get().getGeoServerDBCategory() //Profile/Platform/Name = Constants.get().getGeoServerDBPlatformName() Valid Access Points : EntryName = Constants.get().getGeoServerDBEntryName() Mandatory properties: Constants.get().getGeoServerDBAquaMapsDataStore() : boolean = true Constants.get().getDBMaxConnection() : integer DBDescriptor.AQUAMAPS_WORLD_TABLE

Parameters:
scope -
Returns:
Throws:
NumberFormatException
Exception

getInternalDB

protected static List<DBDescriptor> getInternalDB()
                                           throws NumberFormatException,
                                                  Exception
Query passed scope for RuntimeResources describing valid Internal Database AtomicConditions : //Profile/Category = Constants.get().getInternalDBCategoryName() //Profile/Platform/Name = Constants.get().getInternalDBPlatformName() Valid Access Points : EntryName = Constants.get().getInternalDBEntryName() Mandatory properties: Constants.get().getInternalDBSchemaName() : boolean = true Constants.get().getDBMaxConnection() : integer DBDescriptor.TABLESPACE_PREFIX DBDescriptor.TABLESPACE_COUNT

Parameters:
scope -
Returns:
Throws:
NumberFormatException
Exception

getGeoServers

protected static List<GeoServerDescriptor> getGeoServers()
                                                  throws Exception
Query passed scope for RuntimeResources describing valid geoServers AtomicConditions : //Profile/Category = Constants.get().getGeoServerCategoryName() //Profile/Platform/Name = Constants.get().getGeoServerPlatformName() Valid Access Points : EntryName = Constants.get().getGeoServerEntryName() Mandatory properties : Constants.get().getGeoServerAquaMapsWorkspace() Constants.get().getGeoServerAquaMapsDataStore() Constants.get().getGeoServerAquaMapsDefaultDistributionStyle()

Parameters:
scope -
Returns:
Throws:
Exception

getGeoNetwork

protected static List<DataSourceDescriptor> getGeoNetwork()
                                                   throws Exception
Query passed scope for RuntimeResources describing valid geoNetworks AtomicConditions : //Profile/Category = Constants.get().getGeoNetworkCategoryName() //Profile/Platform/Name = Constants.get().getGeoNetworkPlatformName() Valid Access Points : EntryName = Constants.get().getGeoNetworkEntryName()

Parameters:
scope -
Returns:
Throws:
Exception

getPublisherDB

protected static ArrayList<DBDescriptor> getPublisherDB()
                                                 throws Exception
Query passed scope for RuntimeResources describing valid Publisher Database AtomicConditions : //Profile/Category = Constants.get().getPublisherDBCategoryName() //Profile/Platform/Name = Constants.get().getPublisherDBPlatformName() Valid Access Points : EntryName = Constants.get().getPublisherDBEntryName() Mandatory properties: Constants.get().getPublisherDBSchemaName() : boolean = true Constants.get().getDBMaxConnection() : integer

Parameters:
scope -
Returns:
Throws:
Exception


Copyright © 2013. All Rights Reserved.