@NonInjectableComponent public abstract class AbstractSessionSearchObjectManager<T> extends Object implements SessionSearchObjectManager<T>
SessionSearchObjectManager which only allows a single object to be set session-wide.
Developers note: to see our failed attempt at providing an object-per-window implementation, consult the SVN history.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractSessionSearchObjectManager.Session
Simple interface for a wrapper of the various representations of Sessions we might use.
|
static class |
AbstractSessionSearchObjectManager.VelocityRequestSessionWrapper |
| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.http.HttpServletRequest |
request |
protected AbstractSessionSearchObjectManager.Session |
session |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSessionSearchObjectManager(javax.servlet.http.HttpServletRequest request,
AbstractSessionSearchObjectManager.Session session) |
| Modifier and Type | Method and Description |
|---|---|
T |
getCurrentObject() |
protected abstract String |
getLastViewedSessionKey() |
void |
setCurrentObject(T object)
Associates the specified object to the current user's session.
|
protected final javax.servlet.http.HttpServletRequest request
protected final AbstractSessionSearchObjectManager.Session session
protected AbstractSessionSearchObjectManager(javax.servlet.http.HttpServletRequest request,
AbstractSessionSearchObjectManager.Session session)
public T getCurrentObject()
getCurrentObject in interface SessionSearchObjectManager<T>public void setCurrentObject(T object)
SessionSearchObjectManagersetCurrentObject in interface SessionSearchObjectManager<T>object - the objectprotected abstract String getLastViewedSessionKey()
Copyright © 2002-2015 Atlassian. All Rights Reserved.