Package com.atlassian.jira.jql.resolver
Class ConstantsNameResolver<T>
java.lang.Object
com.atlassian.jira.jql.resolver.ConstantsNameResolver<T>
- All Implemented Interfaces:
NameResolver<T>
- Direct Known Subclasses:
IssueTypeResolver,PriorityResolver,ResolutionResolver,StatusResolver
Common base class for issue constants providing most of the resolution logic.
- Since:
- v4.0
-
Constructor Summary
ConstructorsConstructorDescriptionConstantsNameResolver(ConstantsManager constantsManager, String constantName) -
Method Summary
Modifier and TypeMethodDescriptionGet by id.getIdsFromName(String name) Returns the list of ids of T objects 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, getAll, getIdsFromNames
-
Constructor Details
-
ConstantsNameResolver
-
-
Method Details
-
getIdsFromName
Description copied from interface:NameResolverReturns the list of ids of T objects that have the given name. Names may be unique but often are not, hence the List return type.- Specified by:
getIdsFromNamein interfaceNameResolver<T>- Parameters:
name- the name of the T.- Returns:
- all IDs of objects matching the name or the empty list on name lookup failure.
-
nameExists
Description copied from interface:NameResolverReturns true if the name would resolve to a domain object.- Specified by:
nameExistsin interfaceNameResolver<T>- 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<T>- 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<T>- Parameters:
id- the id.- Returns:
- the domain object or null on lookup failure.
-