com.atlassian.jira.functest.framework.backdoor
Class SearchRequestControl
java.lang.Object
com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient<T>
com.atlassian.jira.functest.framework.backdoor.BackdoorControl<SearchRequestControl>
com.atlassian.jira.functest.framework.backdoor.SearchRequestControl
- All Implemented Interfaces:
- FuncTestLogger
public class SearchRequestControl
- extends BackdoorControl<SearchRequestControl>
Use this class from func/selenium/page-object tests that need to manipulate SearchRequests.
See SearchRequestBackdoor for the code this plugs into at the back-end.
- Since:
- v5.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchRequestControl
public SearchRequestControl(JIRAEnvironmentData environmentData)
createFilter
public String createFilter(String username,
String searchJql,
String searchName,
String searchDescription)
- Creates a SearchRequest with the specified query and returns the id of the object created. The share level of
the filter will be Private.
- Parameters:
username
- the user to save the search forsearchJql
- the JQL of the searchsearchName
- the name of the searchsearchDescription
- the description of the search
- Returns:
- String id of the SearchRequest created
createFilter
public String createFilter(String username,
String searchJql,
String searchName,
String searchDescription,
String jsonShareString)
- Creates a SearchRequest with the specified query and returns the id of the object created. The share level of
the filter will be determined by the JSON share string. See SharePermissionUtils for how the JSON is handled.
- Parameters:
username
- the user to save the search forsearchJql
- the JQL of the searchsearchName
- the name of the searchsearchDescription
- the description of the searchjsonShareString
- a JSON array of permissions to apply to the saved search
- Returns:
- String id of the SearchRequest created
getOwnedFilters
public List<SearchRequestControl.SearchBean> getOwnedFilters(String username)
Copyright © 2002-2012 Atlassian. All Rights Reserved.