Class PreferredSearchLayoutService
java.lang.Object
com.atlassian.jira.plugin.issuenav.util.PreferredSearchLayoutService
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPreferredSearchLayoutService(ActionUtilsService actionUtilsService, JiraAuthenticationContext jiraAuthenticationContext, UserPreferencesManager userPreferencesManager, VelocityRequestContextFactory velocityRequestContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the current user's preferred search layout.voidsetPreferredSearchLayout(String layoutKey) Set the current user's preferred search layout.
-
Field Details
-
LIST_VIEW_LAYOUT
- See Also:
-
PREFERRED_SEARCH_LAYOUT_KEY
- See Also:
-
SPLIT_VIEW_LAYOUT
- See Also:
-
-
Constructor Details
-
PreferredSearchLayoutService
@Inject public PreferredSearchLayoutService(ActionUtilsService actionUtilsService, JiraAuthenticationContext jiraAuthenticationContext, UserPreferencesManager userPreferencesManager, VelocityRequestContextFactory velocityRequestContextFactory)
-
-
Method Details
-
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
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.
-