Package com.atlassian.jira.jql.resolver
Interface ResolverManager
- All Known Implementing Classes:
ResolverManagerImpl
Link Fields to their (JQL) NameResolver
- Since:
- v4.2
-
Method Summary
Modifier and TypeMethodDescriptiongetIdsFromName(String name, String field) Given a name and a field-name return the list of all possible values for itgetSingleIdFromName(String name, String field) As above, but ensures that there is only a single value being returned.boolean
-
Method Details
-
handles
- Parameters:
field- the name of the field (from IssueFieldConstants)- Returns:
- true if the Resolver Manager knows about the field in question
-
getIdsFromName
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
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
-