public class JqlIssueSupportImpl extends Object implements JqlIssueSupport
JqlIssueSupport
.Constructor and Description |
---|
JqlIssueSupportImpl(IssueManager issueManager,
PermissionManager permissionManager) |
Modifier and Type | Method and Description |
---|---|
Set<Long> |
getIdsOfMissingIssues(Set<Long> issueIds)
Check existence of issues for the given set of IDs
|
Issue |
getIssue(long id)
Get the issue given its id.
|
Issue |
getIssue(long id,
ApplicationUser user)
Get the issue given its id if the passed user can see it.
|
Issue |
getIssue(String issueKey)
Get the issue with the passed key.
|
Issue |
getIssue(String issueKey,
ApplicationUser user)
Get the issue with the passed key if the passed user can see it.
|
List<Issue> |
getIssues(String issueKey)
Get the issues with the passed key.
|
List<Issue> |
getIssues(String issueKey,
ApplicationUser user)
Get the issues with the passed key if the passed user can see it.
|
Set<String> |
getKeysOfMissingIssues(Set<String> issueKeys)
Check existence of issues for the given set of keys
|
Set<Pair<Long,String>> |
getProjectIssueTypePairsByIds(Set<Long> issueIds)
Returns a set of project ID / issue type combinations that given issue IDs cover.
|
Set<Pair<Long,String>> |
getProjectIssueTypePairsByKeys(Set<String> issueKeys)
Returns a set of project ID / issue type combinations that given issue keys cover.
|
public JqlIssueSupportImpl(IssueManager issueManager, PermissionManager permissionManager)
public Issue getIssue(long id, ApplicationUser user)
JqlIssueSupport
getIssue
in interface JqlIssueSupport
id
- the id of the issue to retreieve. A null key is assumed not to exist within JIRA.user
- the user who must have permission to see the issue.public Issue getIssue(long id)
JqlIssueSupport
getIssue
in interface JqlIssueSupport
id
- the id of the issue to retrieve.public List<Issue> getIssues(String issueKey, ApplicationUser user)
JqlIssueSupport
getIssues
in interface JqlIssueSupport
issueKey
- they key of the issue to retrieve. A null key is assumed not to exist within JIRA.user
- the user who must have permission to see the issue.for a version with no permission check
public List<Issue> getIssues(String issueKey)
JqlIssueSupport
getIssues
in interface JqlIssueSupport
issueKey
- they key of the issue to retreieve. A null key is assumed not to exist within JIRA.for a version with permission checks
public Issue getIssue(String issueKey, ApplicationUser user)
JqlIssueSupport
getIssue
in interface JqlIssueSupport
issueKey
- they key of the issue to retrieve. A null key is assumed not to exist within JIRA.user
- the user who must have permission to see the issue.for a version with no permission check
public Issue getIssue(String issueKey)
JqlIssueSupport
getIssue
in interface JqlIssueSupport
issueKey
- they key of the issue to retrieve. A null key is assumed not to exist within JIRA.for a version with permission checks
@Nonnull public Set<Pair<Long,String>> getProjectIssueTypePairsByKeys(@Nonnull Set<String> issueKeys)
JqlIssueSupport
getProjectIssueTypePairsByKeys
in interface JqlIssueSupport
issueKeys
- Set of issue keys@Nonnull public Set<Pair<Long,String>> getProjectIssueTypePairsByIds(@Nonnull Set<Long> issueIds)
JqlIssueSupport
getProjectIssueTypePairsByIds
in interface JqlIssueSupport
issueIds
- Set of issue IDs@Nonnull public Set<String> getKeysOfMissingIssues(@Nonnull Set<String> issueKeys)
JqlIssueSupport
getKeysOfMissingIssues
in interface JqlIssueSupport
issueKeys
- Set of issue keys@Nonnull public Set<Long> getIdsOfMissingIssues(@Nonnull Set<Long> issueIds)
JqlIssueSupport
getIdsOfMissingIssues
in interface JqlIssueSupport
issueIds
- Set of issue IDsCopyright © 2002-2021 Atlassian. All Rights Reserved.