org.gcube.contentmanagement.timeseriesservice.impl.context
Class ServiceContext

java.lang.Object
  extended by org.gcube.common.core.contexts.GCUBEContext
      extended by org.gcube.common.core.contexts.GCUBEServiceContext
          extended by org.gcube.contentmanagement.timeseriesservice.impl.context.ServiceContext
All Implemented Interfaces:
org.gcube.common.core.scope.GCUBEScopeManager, org.gcube.common.core.security.GCUBESecurityManager, org.gcube.common.core.security.GCUBEServiceSecurityManager

public class ServiceContext
extends org.gcube.common.core.contexts.GCUBEServiceContext


Nested Class Summary
static class ServiceContext.TSMode
           
 
Nested classes/interfaces inherited from class org.gcube.common.core.contexts.GCUBEServiceContext
org.gcube.common.core.contexts.GCUBEServiceContext.IllegalStateTransitionException, org.gcube.common.core.contexts.GCUBEServiceContext.RILifetimeEvent, org.gcube.common.core.contexts.GCUBEServiceContext.RILifetimeTopic, org.gcube.common.core.contexts.GCUBEServiceContext.ServiceSecurityStatus, org.gcube.common.core.contexts.GCUBEServiceContext.Stager, org.gcube.common.core.contexts.GCUBEServiceContext.StateTransitionException, org.gcube.common.core.contexts.GCUBEServiceContext.Status
 
Nested classes/interfaces inherited from interface org.gcube.common.core.security.GCUBEServiceSecurityManager
org.gcube.common.core.security.GCUBEServiceSecurityManager.LifetimeConsumer, org.gcube.common.core.security.GCUBEServiceSecurityManager.LifetimeEvent, org.gcube.common.core.security.GCUBEServiceSecurityManager.LifetimeTopic
 
Nested classes/interfaces inherited from interface org.gcube.common.core.security.GCUBESecurityManager
org.gcube.common.core.security.GCUBESecurityManager.AuthMethod, org.gcube.common.core.security.GCUBESecurityManager.AuthMode, org.gcube.common.core.security.GCUBESecurityManager.DelegationMode
 
Nested classes/interfaces inherited from interface org.gcube.common.core.scope.GCUBEScopeManager
org.gcube.common.core.scope.GCUBEScopeManager.IllegalScopeException
 
Field Summary
 
Fields inherited from class org.gcube.common.core.contexts.GCUBEServiceContext
AUTHENTICATION_MANAGER_JNDI_NAME, AUTHORISATION_MANAGER_JNDI_NAME, CONFIG_DIR_JNDI_NAME, LISTENER_UPDATE_INTERVAL, LTEventProducer, PERSISTENCE_MANAGER_JNDI_NAME, PLUGIN_MANAGER_JNDI_NAME, PROFILE_FILE_NAME, PROPAGATE_CALLER_CREDENTIALS_JNDI_NAME, PUBLISHED_HOST_JNDI_NAME, PUBLISHED_PORT_JNDI_NAME, RIPROFILE_FILENAME, SECURITY_MANAGER_JNDI_NAME, START_SCOPES_JNDI_NAME
 
Fields inherited from class org.gcube.common.core.contexts.GCUBEContext
logger, timers
 
Fields inherited from interface org.gcube.common.core.scope.GCUBEScopeManager
CLASS_HEADER_NAME, DEFAULT, NAME_HEADER_NAME, SCOPE_HEADER_NAME, SCOPE_NS
 
Method Summary
static ServiceContext getContext()
          Returns cached instance
 String getDbdialectforhibernate()
           
 String getDBPassword()
           
 String getDBUserName()
           
 org.gcube.contentmanagement.timeseries.geotools.gisconnectors.GISInformation getGISInformation()
           
 org.gcube.contentmanagement.lexicalmatcher.analysis.run.CategoryGuesser getGuesser()
           
protected  String getJNDIName()
           
 org.gcube.contentmanagement.lexicalmatcher.analysis.core.LexicalEngineConfiguration getPossibleValueRetrieverConfiguration()
           
 org.gcube.common.core.types.MapItemType[] getProperties()
           
 org.gcube.contentmanagement.graphtools.core.StatisticsGenerator getStatisticsGenerator()
           
 org.gcube.contentmanagement.timeseries.geotools.engine.TSGeoToolsConfiguration getTSGeotoolsConfiguration()
           
 ServiceContext.TSMode getTsMode()
           
 org.gcube.contentmanagement.timeseries.geotools.vti.VTIDataExtender getVtiDataExtender()
           
 void onInitialisation()
          
 void onShutdown()
           
 void parseAndSaveConfiguration(org.gcube.common.core.resources.GCUBEGenericResource configurationResource, org.gcube.common.core.scope.GCUBEScope scope)
           
 
Methods inherited from class org.gcube.common.core.contexts.GCUBEServiceContext
addScope, getAuthenticationManager, getAuthorizationManager, getCallerCredentials, getCredentials, getDefaultException, getDefaultException, getFile, getID, getInstance, getLogger, getManagementBean, getName, getPersistenceRoot, getPersistentFile, getPluginManager, getPolicy, getProperty, getScope, getScopeManager, getSecurityManager, getService, getServiceClass, getServiceCredentials, getServiceSecurityStatus, getStartScopes, getStatus, initialise, isSecurityEnabled, needServiceCredentials, notifyStateChange, onFailure, onReady, onStateChange, onUpdate, prepareCall, propagateCallerCredentials, removeScope, setAuthMethod, setScope, setScope, setScope, setSecurity, setStatus, subscribe, subscribeLifetTime, unsubscribe, unsubscribeLifetTime, useCallerCredentials, useCredentials, useCredentials, useCredentials, useServiceCredentials
 
Methods inherited from class org.gcube.common.core.contexts.GCUBEContext
debugContext, getJNDIContext, getResource, getTiming, printContext, resetTimer, setJNDIContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContext

public static ServiceContext getContext()
Returns cached instance


getJNDIName

protected String getJNDIName()
Specified by:
getJNDIName in class org.gcube.common.core.contexts.GCUBEServiceContext

getTsMode

public ServiceContext.TSMode getTsMode()
Returns:
the tsMode

getProperties

public org.gcube.common.core.types.MapItemType[] getProperties()
Returns:
the propsPerScope

getVtiDataExtender

public org.gcube.contentmanagement.timeseries.geotools.vti.VTIDataExtender getVtiDataExtender()
Returns:
the vtiDataExtender

onInitialisation

public void onInitialisation()

Overrides:
onInitialisation in class org.gcube.common.core.contexts.GCUBEServiceContext

onShutdown

public void onShutdown()
Overrides:
onShutdown in class org.gcube.common.core.contexts.GCUBEServiceContext

getDBUserName

public String getDBUserName()
Returns:

getDBPassword

public String getDBPassword()
Returns:

getDbdialectforhibernate

public String getDbdialectforhibernate()
Returns:

getGuesser

public org.gcube.contentmanagement.lexicalmatcher.analysis.run.CategoryGuesser getGuesser()
Returns:

getPossibleValueRetrieverConfiguration

public org.gcube.contentmanagement.lexicalmatcher.analysis.core.LexicalEngineConfiguration getPossibleValueRetrieverConfiguration()
Returns:
the possibleValueRetriever

getStatisticsGenerator

public org.gcube.contentmanagement.graphtools.core.StatisticsGenerator getStatisticsGenerator()
Returns:
the statisticsGenerator

parseAndSaveConfiguration

public void parseAndSaveConfiguration(org.gcube.common.core.resources.GCUBEGenericResource configurationResource,
                                      org.gcube.common.core.scope.GCUBEScope scope)
                               throws Exception
Throws:
Exception

getTSGeotoolsConfiguration

public org.gcube.contentmanagement.timeseries.geotools.engine.TSGeoToolsConfiguration getTSGeotoolsConfiguration()
                                                                                                          throws Exception
Throws:
Exception

getGISInformation

public org.gcube.contentmanagement.timeseries.geotools.gisconnectors.GISInformation getGISInformation()
                                                                                               throws Exception
Throws:
Exception


Copyright © 2012. All Rights Reserved.