|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.container.strategy.ExecutionContextRetrieverStrategy
public class ExecutionContextRetrieverStrategy
TO BE USED ONLY INSIDE EXTERNAL ENGINES BASED ON SPAGO FRAMEWORK, NOT INSIDE SPAGOBI CORE. This strategy create/retrieve/destroy the context using the "SBI_EXECUTION_ID" attribute contained into the Spago request SourceBean object. The context is put on ISessionContainer object with a key that has a fix part "SPAGOBI_SESSION_ATTRIBUTE" and a dynamic part, the "SBI_EXECUTION_ID" request attribute; if this attribute is missing, the key used to put context on session is the static string "SPAGOBI_SESSION_ATTRIBUTE".
Constructor Summary | |
---|---|
ExecutionContextRetrieverStrategy(it.eng.spago.base.SourceBean request)
Look for the "SBI_EXECUTION_ID" attribute on request to get the key for context storage on session. |
Method Summary | |
---|---|
Context |
createContext(ISessionContainer sessionContainer)
Creates a new context and puts it on the input ISessionContainer instance |
void |
destroyContextsOlderThan(ISessionContainer session,
int minutes)
Destroys all the contexts on the input ISessionContainer instance older than the number of minutes specified at input. |
void |
destroyCurrentContext(ISessionContainer sessionContainer)
Destroys the current context on the input ISessionContainer instance |
Context |
getContext(ISessionContainer sessionContainer)
Retrieves the context from the input ISessionContainer instance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExecutionContextRetrieverStrategy(it.eng.spago.base.SourceBean request)
request
- The Spago SourceBean service request objectMethod Detail |
---|
public Context getContext(ISessionContainer sessionContainer)
getContext
in interface IContextRetrieverStrategy
public Context createContext(ISessionContainer sessionContainer)
createContext
in interface IContextRetrieverStrategy
public void destroyCurrentContext(ISessionContainer sessionContainer)
destroyCurrentContext
in interface IContextRetrieverStrategy
public void destroyContextsOlderThan(ISessionContainer session, int minutes)
destroyContextsOlderThan
in interface IContextRetrieverStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |