it.eng.spagobi.container
Class CoreContextManager

java.lang.Object
  extended by it.eng.spagobi.container.AbstractContainer
      extended by it.eng.spagobi.container.ContextManager
          extended by it.eng.spagobi.container.CoreContextManager
All Implemented Interfaces:
it.eng.spagobi.container.IBeanContainer, it.eng.spagobi.container.IContainer

public class CoreContextManager
extends it.eng.spagobi.container.ContextManager

This class provides useful methods to manage context on a ISessionContainer

Author:
Zerbetto (davide.zerbetto@eng.it)

Field Summary
 
Fields inherited from class it.eng.spagobi.container.ContextManager
contextRetrieverStrategy, contextsContainer
 
Constructor Summary
CoreContextManager(it.eng.spagobi.container.IBeanContainer beanContainer, it.eng.spagobi.container.strategy.IContextRetrieverStrategy strategy)
           
 
Method Summary
 BIObject getBIObject(java.lang.String key)
          TO BE USED ONLY INSIDE SPAGOBI CORE, NOT INSIDE EXTERNAL ENGINES.
 ExecutionInstance getExecutionInstance(java.lang.String key)
          TO BE USED ONLY INSIDE SPAGOBI CORE, NOT INSIDE EXTERNAL ENGINES.
 java.util.Map<java.lang.Integer,ExecutionInstance> getExecutionInstancesAsMap(java.lang.String key)
          In case of massive Export a map of execution instances is returned, each associated with the biObjId referring
 java.lang.Boolean isExecutionInstanceAMap(java.lang.String key)
          used to know which function to be used to retrieve execution instance; could not change the original function because it is used everywhere
 
Methods inherited from class it.eng.spagobi.container.ContextManager
cleanOldContexts, destroyCurrentContext, get, getKeys, print, remove, set
 
Methods inherited from class it.eng.spagobi.container.AbstractContainer
getBoolean, getInteger, getList, getString, isBlankOrNull, isNull, toCsvList, toJSONArray, toJSONObject, toList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.eng.spagobi.container.IContainer
getBoolean, getInteger, getList, getString, isBlankOrNull, isNull, toCsvList, toJSONObject
 

Constructor Detail

CoreContextManager

public CoreContextManager(it.eng.spagobi.container.IBeanContainer beanContainer,
                          it.eng.spagobi.container.strategy.IContextRetrieverStrategy strategy)
Method Detail

getBIObject

public BIObject getBIObject(java.lang.String key)
TO BE USED ONLY INSIDE SPAGOBI CORE, NOT INSIDE EXTERNAL ENGINES. Return the BIObject associated with the input key. If the key is associated to an object that is not a BIObject instance, a ClassCastException is thrown.

Parameters:
key - The input key
Returns:
the BIObject associated with the input key.

getExecutionInstance

public ExecutionInstance getExecutionInstance(java.lang.String key)
TO BE USED ONLY INSIDE SPAGOBI CORE, NOT INSIDE EXTERNAL ENGINES. Return the ExecutionInstance associated with the input key. If the key is associated to an object that is not a ExecutionInstance instance, a ClassCastException is thrown.

Parameters:
key - The input key
Returns:
the ExecutionInstance associated with the input key.

getExecutionInstancesAsMap

public java.util.Map<java.lang.Integer,ExecutionInstance> getExecutionInstancesAsMap(java.lang.String key)
In case of massive Export a map of execution instances is returned, each associated with the biObjId referring

Parameters:
key -
Returns:

isExecutionInstanceAMap

public java.lang.Boolean isExecutionInstanceAMap(java.lang.String key)
used to know which function to be used to retrieve execution instance; could not change the original function because it is used everywhere

Parameters:
key -
Returns: