@NonInjectableComponent public abstract class

AbstractSessionSearchObjectManager

extends Object
implements SessionSearchObjectManager<T>
java.lang.Object
   ↳ com.atlassian.jira.web.session.AbstractSessionSearchObjectManager<T>
Known Direct Subclasses

Class Overview

A very basic implementation of 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.

Summary

Nested Classes
interface AbstractSessionSearchObjectManager.Session Simple interface for a wrapper of the various representations of Sessions we might use. 
class AbstractSessionSearchObjectManager.VelocityRequestSessionWrapper  
Fields
protected final HttpServletRequest request
protected final AbstractSessionSearchObjectManager.Session session
Protected Constructors
AbstractSessionSearchObjectManager(HttpServletRequest request, AbstractSessionSearchObjectManager.Session session)
Public Methods
T getCurrentObject()
void setCurrentObject(T object)
Associates the specified object to the current user's session.
Protected Methods
abstract String getLastViewedSessionKey()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.web.session.SessionSearchObjectManager

Fields

protected final HttpServletRequest request

Protected Constructors

protected AbstractSessionSearchObjectManager (HttpServletRequest request, AbstractSessionSearchObjectManager.Session session)

Public Methods

public T getCurrentObject ()

public void setCurrentObject (T object)

Associates the specified object to the current user's session.

Parameters
object the object

Protected Methods

protected abstract String getLastViewedSessionKey ()

Returns
  • the key which will be used to store the last viewed object in the session.