com.atlassian.jira.webtests.ztests.email
Class ShareClient
java.lang.Object
com.atlassian.jira.testkit.client.RestApiClient
com.atlassian.jira.webtests.ztests.email.ShareClient
public class ShareClient
- extends com.atlassian.jira.testkit.client.RestApiClient
A REST client used to talk to the share e-mail rest resource.
- Since:
- v5.0
Nested classes/interfaces inherited from class com.atlassian.jira.testkit.client.RestApiClient |
com.atlassian.jira.testkit.client.RestApiClient.Method |
Fields inherited from class com.atlassian.jira.testkit.client.RestApiClient |
REST_VERSION |
Method Summary |
com.atlassian.jira.testkit.client.restclient.Response |
shareIssue(String issueKey,
Set<String> usernames,
Set<String> emails,
String message)
Shares an issue with the given key with the users and email addresses specified. |
com.atlassian.jira.testkit.client.restclient.Response |
shareSavedSearch(String searchRequestId,
Set<String> usernames,
Set<String> emails,
String message)
Shares a saved search (filter) with the given id with the users and email addresses specified. |
com.atlassian.jira.testkit.client.restclient.Response |
shareSearchQuery(String jql,
Set<String> usernames,
Set<String> emails,
String message)
Shares a search query with the users and email addresses specified. |
Methods inherited from class com.atlassian.jira.testkit.client.RestApiClient |
anonymous, createResource, createResourceGadget, createResourceInternal, errorResponse, expanded, loginAs, loginAs, percentEncode, resourceRoot, setOf, toResponse, toResponse, toResponse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShareClient
public ShareClient(JIRAEnvironmentData environmentData)
shareIssue
public com.atlassian.jira.testkit.client.restclient.Response shareIssue(String issueKey,
Set<String> usernames,
@Nullable
Set<String> emails,
String message)
- Shares an issue with the given key with the users and email addresses specified.
- Parameters:
issueKey
- the issue key of the issue to shareusernames
- JIRA users to share withemails
- email addresses to share withmessage
- A message to send with the share email
- Returns:
- a Response
shareSavedSearch
public com.atlassian.jira.testkit.client.restclient.Response shareSavedSearch(String searchRequestId,
Set<String> usernames,
@Nullable
Set<String> emails,
String message)
- Shares a saved search (filter) with the given id with the users and email addresses specified.
- Parameters:
searchRequestId
- the id of the saved SearchRequest to shareusernames
- JIRA users to share withemails
- email addresses to share withmessage
- A message to send with the share email
- Returns:
- a Response
shareSearchQuery
public com.atlassian.jira.testkit.client.restclient.Response shareSearchQuery(String jql,
Set<String> usernames,
@Nullable
Set<String> emails,
String message)
- Shares a search query with the users and email addresses specified.
- Parameters:
jql
- the jql query to shareusernames
- JIRA users to share withemails
- email addresses to share withmessage
- A message to send with the share email
- Returns:
- a Response
Copyright © 2002-2013 Atlassian. All Rights Reserved.