@Deprecated @NonInjectableComponent public abstract class

AbstractSessionSearchObjectManager

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

This class is deprecated.
since 7.1 Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This class will be removed in 8.0.

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 This interface is deprecated. since 7.1 Storing information in server side HttpSession is not Vertigo aligned  
class AbstractSessionSearchObjectManager.VelocityRequestSessionWrapper This class is deprecated. since 7.1 Storing information in server side HttpSession is not Vertigo aligned  
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.