Class AbstractSessionSearchObjectManager<T>

java.lang.Object
com.atlassian.jira.web.session.AbstractSessionSearchObjectManager<T>
All Implemented Interfaces:
SessionSearchObjectManager<T>
Direct Known Subclasses:
DefaultSessionNextPreviousPagerManager, DefaultSessionPagerFilterManager, DefaultSessionSearchRequestManager, DefaultSessionSelectedIssueManager

@Deprecated @NonInjectableComponent public abstract class AbstractSessionSearchObjectManager<T> extends Object implements SessionSearchObjectManager<T>
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.
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.

Since:
v4.2
  • Field Details

  • Constructor Details

  • Method Details

    • getCurrentObject

      public T getCurrentObject()
      Deprecated.
      Specified by:
      getCurrentObject in interface SessionSearchObjectManager<T>
      Returns:
      the current object for the current user session-wide. Null signifies that there is no current object.
    • setCurrentObject

      public void setCurrentObject(T object)
      Deprecated.
      Description copied from interface: SessionSearchObjectManager
      Associates the specified object to the current user's session.
      Specified by:
      setCurrentObject in interface SessionSearchObjectManager<T>
      Parameters:
      object - the object
    • getLastViewedSessionKey

      protected abstract String getLastViewedSessionKey()
      Deprecated.
      Returns:
      the key which will be used to store the last viewed object in the session.