org.gcube.application.aquamaps.aquamapsservice.impl
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.application.aquamaps.aquamapsservice.impl.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.FOLDERS
           
 
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.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.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
CONFIG_DIR_JNDI_NAME, PERSISTENCE_MANAGER_JNDI_NAME, PLUGIN_MANAGER_JNDI_NAME, PROFILE_FILE_NAME, PUBLISHED_HOST_JNDI_NAME, PUBLISHED_PORT_JNDI_NAME, RIPROFILE_FILENAME, SECURITY_MANAGER_JNDI_NAME, START_SCOPES_JNDI_NAME
 
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
 java.io.File getEcoligicalConfigDir()
           
 java.lang.String getFolderPath(ServiceContext.FOLDERS folderName)
           
 java.lang.String getProperty(java.lang.String paramName)
           
 java.lang.Boolean getPropertyAsBoolean(java.lang.String propertyName)
           
 java.lang.Double getPropertyAsDouble(java.lang.String propertyName)
           
 java.lang.Integer getPropertyAsInteger(java.lang.String propertyName)
           
 Publisher getPublisher()
           
 void onInitialisation()
          
 
Methods inherited from class org.gcube.common.core.contexts.GCUBEServiceContext
addScope, authoriseCall, getCallerCredentials, getCredentials, getDefaultException, getDefaultException, getFile, getID, getInstance, getLogger, getManagementBean, getName, getPersistenceRoot, getPersistentFile, getPluginManager, getPolicy, getProperty, getScope, getScopeManager, getService, getServiceClass, getServiceCredentials, getStartScopes, getStatus, initialise, isSecurityEnabled, needServiceCredentials, notifyStateChange, prepareCall, removeScope, setScope, setScope, setScope, setSecurity, setStatus, subscribe, subscribeLifetTime, unsubscribe, unsubscribeLifetTime, useCallerCredentials, useCredentials, useCredentials, useServiceCredentials
 
Methods inherited from class org.gcube.common.core.contexts.GCUBEContext
debugContext, getResource, getTiming, printContext, resetTimer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContext

public static ServiceContext getContext()
Returns cached instance


onInitialisation

public void onInitialisation()

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

getProperty

public java.lang.String getProperty(java.lang.String paramName)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getPropertyAsBoolean

public java.lang.Boolean getPropertyAsBoolean(java.lang.String propertyName)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getPropertyAsInteger

public java.lang.Integer getPropertyAsInteger(java.lang.String propertyName)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getPropertyAsDouble

public java.lang.Double getPropertyAsDouble(java.lang.String propertyName)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getPublisher

public Publisher getPublisher()

getEcoligicalConfigDir

public java.io.File getEcoligicalConfigDir()

getFolderPath

public java.lang.String getFolderPath(ServiceContext.FOLDERS folderName)