Class PreferredSearchLayoutService

java.lang.Object
com.atlassian.jira.plugin.issuenav.util.PreferredSearchLayoutService

@Named public class PreferredSearchLayoutService extends Object
Provides methods to get and set the current user's preferred search layout.

The user's preference is stored in their session and, if they're authenticated, as a user preference.

Since:
v6.0
  • Field Details

  • Constructor Details

  • Method Details

    • getPreferredSearchLayout

      public String getPreferredSearchLayout()
      Retrieve the current user's preferred search layout.

      For anonymous users, the default layout is returned.

      Returns:
      the current user's preferred search layout.
    • setPreferredSearchLayout

      public void setPreferredSearchLayout(String layoutKey)
      Set the current user's preferred search layout.

      If the current user is anonymous, this method does nothing.

      Parameters:
      layoutKey - The key of the user's preferred search layout.