com.atlassian.jira.jql.resolver
Interface ResolverManager

All Known Implementing Classes:
ResolverManagerImpl

@InjectableComponent
public interface ResolverManager

Link Fields to their (JQL) NameResolver

Since:
v4.2

Method Summary
 java.util.List<java.lang.String> getIdsFromName(java.lang.String name, java.lang.String field)
          Given a name and a field-name return the list of all possible values for it
 java.lang.String getSingleIdFromName(java.lang.String name, java.lang.String field)
          As above, but ensures that there is only a single value being returned.
 boolean handles(java.lang.String field)
           
 

Method Detail

handles

boolean handles(java.lang.String field)
Parameters:
field - the name of the field (from IssueFieldConstants)
Returns:
true if the Resolver Manager knows about the field in question

getIdsFromName

java.util.List<java.lang.String> getIdsFromName(java.lang.String name,
                                                java.lang.String field)
Given a name and a field-name return the list of all possible values for it

Parameters:
name - the "name" value (e.g. 'New Component 5')
field - which field the value belongs to; must match IssueFieldConstants (e.g. 'component')
Returns:
a list of Strings consisting of the IDs corresponding to the name.

getSingleIdFromName

java.lang.String getSingleIdFromName(java.lang.String name,
                                     java.lang.String field)
As above, but ensures that there is only a single value being returned. A warning will be issued -- but no exceptions thrown -- if there is more than one ID for the value.

Parameters:
name - the "name" value (e.g. 'New Component 5')
field - which field the value belongs to; must match IssueFieldConstants (e.g. 'component')
Returns:
the ID for the value provided


Copyright © 2002-2010 Atlassian. All Rights Reserved.