Package com.atlassian.jira.jql.resolver
Class CustomFieldOptionResolver
java.lang.Object
com.atlassian.jira.jql.resolver.CustomFieldOptionResolver
- All Implemented Interfaces:
NameResolver<Option>
Looks up custom field option objects from the database.
- Since:
- v5.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet by id.getAll()Gets all domain objects of this type in the underlying database.getIdsFromName(String name) Returns the list of ids ofOptionobjects that have the given name.booleanReturns true if the id would resolve to a domain object.booleannameExists(String name) Returns true if the name would resolve to a domain object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.jql.resolver.NameResolver
findNonExistentIds, findNonExistentNames, getIdsFromNames
-
Constructor Details
-
CustomFieldOptionResolver
-
-
Method Details
-
getIdsFromName
Returns the list of ids ofOptionobjects that have the given name. The name is case-insensitive.- Specified by:
getIdsFromNamein interfaceNameResolver<Option>- Parameters:
name- the name of the option.- Returns:
- all IDs of objects matching the name
-
nameExists
Description copied from interface:NameResolverReturns true if the name would resolve to a domain object.- Specified by:
nameExistsin interfaceNameResolver<Option>- Parameters:
name- the addressable name.- Returns:
- true only if the name resolves to a domain object in the database.
-
idExists
Description copied from interface:NameResolverReturns true if the id would resolve to a domain object.- Specified by:
idExistsin interfaceNameResolver<Option>- Parameters:
id- the primary key.- Returns:
- true only if the id resolves to a domain object in the database.
-
get
Description copied from interface:NameResolverGet by id.- Specified by:
getin interfaceNameResolver<Option>- Parameters:
id- the id.- Returns:
- the domain object or null on lookup failure.
-
getAll
Description copied from interface:NameResolverGets all domain objects of this type in the underlying database. Note that calling this may not be a good idea for some domain object types.- Specified by:
getAllin interfaceNameResolver<Option>- Returns:
- all objects of the configured type in the database (possibly empty, never null).
-