Class EpicLinkResolver

java.lang.Object
com.atlassian.greenhopper.customfield.epiclink.EpicLinkResolver

public class EpicLinkResolver extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    EpicLinkResolver(com.atlassian.jira.issue.fields.CustomField epicLinkField)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    checkEpicIssueAccessible(com.atlassian.jira.user.ApplicationUser user, Long id)
    Checks that the issue that has the supplied id is accessible for the specified User.
    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 a Long or label or key if the value is a string.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 a Long or label or key if the value is a string.
      Parameters:
      user - the user that execute the search
      overrideSecurity - if true, bypass access rights checking
      rawValue - 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 search
      overrideSecurity - if true, bypass access rights checking
      value - the value to look for
      Returns:
      the epic issue ids that match the criteria and that are accessible to the user
    • checkEpicIssueAccessible

      public boolean checkEpicIssueAccessible(com.atlassian.jira.user.ApplicationUser user, Long id)
      Checks that the issue that has the supplied id is accessible for the specified User.
      Parameters:
      user - the user that execute the search
      id - Issue id
      Returns:
      true if accessible, false otherwise