com.atlassian.jira.web.action.filter
Class FilterViewTabs

java.lang.Object
  extended by com.atlassian.jira.web.action.filter.FilterViewTabs

public final class FilterViewTabs
extends Object

Class that represents "tabs" displayed when looking through filters.

Since:
v3.13

Nested Class Summary
static class FilterViewTabs.Tab
          Class that represents a tab on a filter view.
 
Field Summary
 FilterViewTabs.Tab defaultTab
           
static FilterViewTabs.Tab FAVOURITES
           
static FilterViewTabs.Tab MY
           
static FilterViewTabs.Tab POPULAR
           
static FilterViewTabs.Tab PROJECT
           
static FilterViewTabs.Tab SEARCH
           
 Map tabs
           
 
Constructor Summary
FilterViewTabs(List tabs, FilterViewTabs.Tab defaultTab)
           
 
Method Summary
 FilterViewTabs.Tab getTab(String tabName)
           
 FilterViewTabs.Tab getTabSafely(String tabName)
          Works out which view (tab) the user should be on based on the requested tab.
 boolean isValid(String tabName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POPULAR

public static final FilterViewTabs.Tab POPULAR

SEARCH

public static final FilterViewTabs.Tab SEARCH

FAVOURITES

public static final FilterViewTabs.Tab FAVOURITES

MY

public static final FilterViewTabs.Tab MY

PROJECT

public static final FilterViewTabs.Tab PROJECT

tabs

public final Map tabs

defaultTab

public final FilterViewTabs.Tab defaultTab
Constructor Detail

FilterViewTabs

public FilterViewTabs(List tabs,
                      FilterViewTabs.Tab defaultTab)
Method Detail

isValid

public boolean isValid(String tabName)

getTab

public FilterViewTabs.Tab getTab(String tabName)

getTabSafely

public FilterViewTabs.Tab getTabSafely(String tabName)
Works out which view (tab) the user should be on based on the requested tab.

Parameters:
tabName - the tab the user has asked to be on, null is OK and results in a default.
Returns:
the tab the user should be put on, possibly different to the request based on permissions etc.


Copyright © 2002-2009 Atlassian. All Rights Reserved.