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
 List<String> getIdsFromName(String name, String field)
          Given a name and a field-name return the list of all possible values for it
 String getSingleIdFromName(String name, String field)
          As above, but ensures that there is only a single value being returned.
 boolean handles(String field)
           
 

Method Detail

handles

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

getIdsFromName

List<String> getIdsFromName(String name,
                            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

String getSingleIdFromName(String name,
                           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-2012 Atlassian. All Rights Reserved.