Package com.atlassian.jira.jql.util
Class JqlIssueSupportImpl
java.lang.Object
com.atlassian.jira.jql.util.JqlIssueSupportImpl
- All Implemented Interfaces:
JqlIssueSupport
Default implementation of
JqlIssueSupport.- Since:
- v4.0
-
Constructor Summary
ConstructorsConstructorDescriptionJqlIssueSupportImpl(IssueManager issueManager, PermissionManager permissionManager) -
Method Summary
Modifier and TypeMethodDescriptiongetIdsOfMissingIssues(Set<Long> issueIds) Check existence of issues for the given set of IDsgetIssue(long id) Get the issue given its id.getIssue(long id, ApplicationUser user) Get the issue given its id if the passed user can see it.Get the issue with the passed key.getIssue(String issueKey, ApplicationUser user) Get the issue with the passed key if the passed user can see it.getKeysOfMissingIssues(Set<String> issueKeys) Check existence of issues for the given set of keysgetProjectIssueTypePairsByIds(Set<Long> issueIds) Returns a set of project ID / issue type combinations that given issue IDs cover.getProjectIssueTypePairsByKeys(Set<String> issueKeys) Returns a set of project ID / issue type combinations that given issue keys cover.
-
Constructor Details
-
JqlIssueSupportImpl
-
-
Method Details
-
getIssue
Description copied from interface:JqlIssueSupportGet the issue given its id if the passed user can see it. A null will be returned if the issue key is not within JIRA or if the user does not have permission to see the issue.- Specified by:
getIssuein interfaceJqlIssueSupport- Parameters:
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.- Returns:
- the issue identified by the passed id if it can be seen by the passed user. A null value will be returned if the issue does not exist or the user cannot see the issue.
-
getIssue
Description copied from interface:JqlIssueSupportGet the issue given its id. A null will be returned if the issue is not within JIRA.- Specified by:
getIssuein interfaceJqlIssueSupport- Parameters:
id- the id of the issue to retrieve.- Returns:
- the issue identified by the passed id. A null value will be returned if the issue does not exist.
-
getIssue
Description copied from interface:JqlIssueSupportGet the issue with the passed key if the passed user can see it.- Specified by:
getIssuein interfaceJqlIssueSupport- Parameters:
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.- Returns:
- the issue identified by the passed key if it can be seen by the passed user. Null is returned if the issue key is not within JIRA or if the user does not have permission to see the issue.
- See Also:
-
getIssue
Description copied from interface:JqlIssueSupportGet the issue with the passed key.- Specified by:
getIssuein interfaceJqlIssueSupport- Parameters:
issueKey- they key of the issue to retrieve. A null key is assumed not to exist within JIRA.- Returns:
- the issue identified by the passed key. Null is returned if the issue key is not within JIRA.
- See Also:
-
getProjectIssueTypePairsByKeys
@Nonnull public Set<Pair<Long,String>> getProjectIssueTypePairsByKeys(@Nonnull Set<String> issueKeys) Description copied from interface:JqlIssueSupportReturns a set of project ID / issue type combinations that given issue keys cover.- Specified by:
getProjectIssueTypePairsByKeysin interfaceJqlIssueSupport- Parameters:
issueKeys- Set of issue keys- Returns:
- Project ID / issue type pairs
-
getProjectIssueTypePairsByIds
Description copied from interface:JqlIssueSupportReturns a set of project ID / issue type combinations that given issue IDs cover.- Specified by:
getProjectIssueTypePairsByIdsin interfaceJqlIssueSupport- Parameters:
issueIds- Set of issue IDs- Returns:
- Project ID / issue type pairs
-
getKeysOfMissingIssues
Description copied from interface:JqlIssueSupportCheck existence of issues for the given set of keys- Specified by:
getKeysOfMissingIssuesin interfaceJqlIssueSupport- Parameters:
issueKeys- Set of issue keys- Returns:
- Set of invalid keys or the ones that don't represent an issue
-
getIdsOfMissingIssues
Description copied from interface:JqlIssueSupportCheck existence of issues for the given set of IDs- Specified by:
getIdsOfMissingIssuesin interfaceJqlIssueSupport- Parameters:
issueIds- Set of issue IDs- Returns:
- Set of IDs that don't represent an issue
-