|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.container.AbstractContainer
it.eng.spagobi.container.ContextManager
public class ContextManager
This class provides useful methods to manage context on a ISessionContainer
Field Summary | |
---|---|
protected ISessionContainer |
_session
|
protected IContextRetrieverStrategy |
_strategy
|
Constructor Summary | |
---|---|
ContextManager(ISessionContainer session,
IContextRetrieverStrategy strategy)
|
Method Summary | |
---|---|
void |
cleanOldContexts(int minutes)
Destroys all contexts older than the number of minutes specified at input. |
void |
destroyCurrentContext()
Destroys current context. |
java.lang.Object |
get(java.lang.String key)
Retrieves a generic object from context using the given key. |
java.util.List |
getKeys()
Returns a List of all the String keys of the objects stored on context. |
void |
print()
Print all the contexts with all personal objects |
void |
remove(java.lang.String key)
Removes an object (given its key at input) from context. |
void |
set(java.lang.String key,
java.lang.Object object)
Sets a generic object into context using the given key. |
Methods inherited from class it.eng.spagobi.container.AbstractContainer |
---|
getBIObject, getBoolean, getExecutionInstance, getInteger, getList, getString, isBlankOrNull, isNull |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ISessionContainer _session
protected IContextRetrieverStrategy _strategy
Constructor Detail |
---|
public ContextManager(ISessionContainer session, IContextRetrieverStrategy strategy)
Method Detail |
---|
public java.lang.Object get(java.lang.String key)
key
- The key of the object in context
public void set(java.lang.String key, java.lang.Object object)
key
- The key to be used to store object in contextpublic void remove(java.lang.String key)
key
- The key of the object on context.public void destroyCurrentContext()
public void cleanOldContexts(int minutes)
public java.util.List getKeys()
public void print()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |