com.atlassian.greenhopper.customfield.epiclink
Class EpicLinkResolver

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

public class EpicLinkResolver
extends java.lang.Object


Constructor Summary
EpicLinkResolver(com.atlassian.jira.issue.fields.CustomField epicLinkField)
           
 
Method Summary
 boolean checkEpicIssueAccessible(com.atlassian.crowd.embedded.api.User user, java.lang.Long id)
          Checks that the issue that has the supplied id is accessible for the specified User.
 java.util.Set<java.lang.Long> findEpicIssueIdsByEpicKeyOrLabel(com.atlassian.crowd.embedded.api.User user, boolean overrideSecurity, java.lang.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.crowd.embedded.api.User 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 Detail

EpicLinkResolver

public EpicLinkResolver(com.atlassian.jira.issue.fields.CustomField epicLinkField)
Method Detail

getQuery

public org.apache.lucene.search.Query getQuery(com.atlassian.crowd.embedded.api.User 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 java.util.Set<java.lang.Long> findEpicIssueIdsByEpicKeyOrLabel(com.atlassian.crowd.embedded.api.User user,
                                                                      boolean overrideSecurity,
                                                                      java.lang.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.crowd.embedded.api.User user,
                                        java.lang.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


Copyright © 2007-2013 Atlassian. All Rights Reserved.