Class EpicLinkResolver
java.lang.Object
com.atlassian.greenhopper.customfield.epiclink.EpicLinkResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkEpicIssueAccessible
(com.atlassian.jira.user.ApplicationUser user, Long id) Checks that the issue that has the supplied id is accessible for the specifiedUser
.findEpicIssueIdsByEpicKeyOrLabel
(com.atlassian.jira.user.ApplicationUser user, boolean overrideSecurity, String value) Returns the collection of epic issue ids for which the key or the label matches the supplied value.org.apache.lucene.search.Query
getQuery
(com.atlassian.jira.user.ApplicationUser user, boolean overrideSecurity, com.atlassian.jira.jql.operand.QueryLiteral rawValue) Returns a query that filters epic on id if the value is aLong
or label or key if the value is a string.
-
Constructor Details
-
EpicLinkResolver
public EpicLinkResolver(com.atlassian.jira.issue.fields.CustomField epicLinkField)
-
-
Method Details
-
getQuery
public org.apache.lucene.search.Query getQuery(com.atlassian.jira.user.ApplicationUser user, boolean overrideSecurity, com.atlassian.jira.jql.operand.QueryLiteral rawValue) Returns a query that filters epic on id if the value is aLong
or label or key if the value is a string.- Parameters:
user
- the user that execute the searchoverrideSecurity
- if true, bypass access rights checkingrawValue
- the value as available in the JQL query- Returns:
- the lucene query
-
findEpicIssueIdsByEpicKeyOrLabel
public Set<Long> findEpicIssueIdsByEpicKeyOrLabel(com.atlassian.jira.user.ApplicationUser user, boolean overrideSecurity, String value) Returns the collection of epic issue ids for which the key or the label matches the supplied value.- Parameters:
user
- the user that execute the searchoverrideSecurity
- if true, bypass access rights checkingvalue
- the value to look for- Returns:
- the epic issue ids that match the criteria and that are accessible to the user
-
checkEpicIssueAccessible
Checks that the issue that has the supplied id is accessible for the specifiedUser
.- Parameters:
user
- the user that execute the searchid
-Issue
id- Returns:
true
if accessible,false
otherwise
-