com.atlassian.jira.functest.framework
Class FilterPickerPopupNavigation

java.lang.Object
  extended by com.atlassian.jira.functest.framework.FilterPickerPopupNavigation
All Implemented Interfaces:
FilterNavigation

public class FilterPickerPopupNavigation
extends Object
implements FilterNavigation

An implementation of the FilterNavigation interface that works with the FilterPicker action. Does not support all the methods because that view permits no operations (edit, delete, set-as-favourite etc.) because it is supposed to be solely for picking a filter. Unsupported operations throw UnsupportedOperationException.

Since:
v3.13

Constructor Summary
FilterPickerPopupNavigation(net.sourceforge.jwebunit.WebTester tester)
           
 
Method Summary
 void addFavourite(int id)
          Add filter as favourite to the current logged in user.
 void allFilters()
          Navigate to manage all filters
 long createFilter(String filterName, String filterDesc)
          Creates a filter with the specified name and description
 void deleteFilter(int id)
          Delete the specified filter.
 void favouriteFilters()
          Navigate to favourite filters.
 void findFilters(String filterName, String authorUsername)
          Does a filter search from a filter search form page with the given search criteria.
 String getActionBaseUrl()
          Return the basic URL of the action.
 void goToDefault()
          Navigate to the default filters page for this FilterNavigation.
 void manageSubscriptions(int filterId)
          Navigate to manage subscriptions for a given filter
 void myFilters()
          Navigate to manage my filters
 void popularFilters()
          Navigate to manage popular filters
 FilterNavigation projects()
          Goes to the project tab of the filterpicker popup (only visible with showProjects param).
 void removeFavourite(int id)
          Remove filter as favourite from the current logged in user.
 List<FilterItem> sanitiseFavouriteFilterItems(List<FilterItem> expectedItems)
          Return a new list containing new expected items based on the given ones which are stripped of any field expectations that are not designed to be met by this FilterNavigation implementation's favourite view.
 List<FilterItem> sanitiseSearchFilterItems(List<FilterItem> expectedItems)
          Return a new list containing new expected items based on the given ones which are stripped of any field expectations that are not designed to be met by this FilterNavigation implementation's search results view (including popular filters).
 void searchFilters()
          Navigate to search filters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterPickerPopupNavigation

public FilterPickerPopupNavigation(net.sourceforge.jwebunit.WebTester tester)
Method Detail

addFavourite

public void addFavourite(int id)
Description copied from interface: FilterNavigation
Add filter as favourite to the current logged in user.

Specified by:
addFavourite in interface FilterNavigation
Parameters:
id - The id of the filter

removeFavourite

public void removeFavourite(int id)
Description copied from interface: FilterNavigation
Remove filter as favourite from the current logged in user.

Specified by:
removeFavourite in interface FilterNavigation
Parameters:
id - The id of the filter

goToDefault

public void goToDefault()
Description copied from interface: FilterNavigation
Navigate to the default filters page for this FilterNavigation.

Specified by:
goToDefault in interface FilterNavigation

manageSubscriptions

public void manageSubscriptions(int filterId)
Description copied from interface: FilterNavigation
Navigate to manage subscriptions for a given filter

Specified by:
manageSubscriptions in interface FilterNavigation
Parameters:
filterId - id of the filter

favouriteFilters

public void favouriteFilters()
Description copied from interface: FilterNavigation
Navigate to favourite filters.

Specified by:
favouriteFilters in interface FilterNavigation

myFilters

public void myFilters()
Description copied from interface: FilterNavigation
Navigate to manage my filters

Specified by:
myFilters in interface FilterNavigation

allFilters

public void allFilters()
Description copied from interface: FilterNavigation
Navigate to manage all filters

Specified by:
allFilters in interface FilterNavigation

popularFilters

public void popularFilters()
Description copied from interface: FilterNavigation
Navigate to manage popular filters

Specified by:
popularFilters in interface FilterNavigation

searchFilters

public void searchFilters()
Description copied from interface: FilterNavigation
Navigate to search filters

Specified by:
searchFilters in interface FilterNavigation

createFilter

public long createFilter(String filterName,
                         String filterDesc)
Description copied from interface: FilterNavigation
Creates a filter with the specified name and description

Specified by:
createFilter in interface FilterNavigation
Parameters:
filterName - the name of the filter.
filterDesc - the description of the filter.
Returns:
the id of the newly created filter

deleteFilter

public void deleteFilter(int id)
Description copied from interface: FilterNavigation
Delete the specified filter.

Specified by:
deleteFilter in interface FilterNavigation
Parameters:
id - the id of the filter to delete.

findFilters

public void findFilters(String filterName,
                        String authorUsername)
Description copied from interface: FilterNavigation
Does a filter search from a filter search form page with the given search criteria. Client is left on filter search results screen.

Specified by:
findFilters in interface FilterNavigation
Parameters:
filterName - the name of the filter, possibly "" but not null.
authorUsername - the name of the author or "" but not null.

sanitiseSearchFilterItems

public List<FilterItem> sanitiseSearchFilterItems(List<FilterItem> expectedItems)
Description copied from interface: FilterNavigation
Return a new list containing new expected items based on the given ones which are stripped of any field expectations that are not designed to be met by this FilterNavigation implementation's search results view (including popular filters).

Specified by:
sanitiseSearchFilterItems in interface FilterNavigation
Parameters:
expectedItems - the template items to expect.
Returns:
equivalent expected items for this search results view.

sanitiseFavouriteFilterItems

public List<FilterItem> sanitiseFavouriteFilterItems(List<FilterItem> expectedItems)
Description copied from interface: FilterNavigation
Return a new list containing new expected items based on the given ones which are stripped of any field expectations that are not designed to be met by this FilterNavigation implementation's favourite view.

Specified by:
sanitiseFavouriteFilterItems in interface FilterNavigation
Parameters:
expectedItems - the template items to expect.
Returns:
equivalent expected items for this favourite filters view.

getActionBaseUrl

public String getActionBaseUrl()
Description copied from interface: FilterNavigation
Return the basic URL of the action.

Specified by:
getActionBaseUrl in interface FilterNavigation
Returns:
this.

projects

public FilterNavigation projects()
Description copied from interface: FilterNavigation
Goes to the project tab of the filterpicker popup (only visible with showProjects param).

Specified by:
projects in interface FilterNavigation
Returns:
this.


Copyright © 2002-2012 Atlassian. All Rights Reserved.