Package com.atlassian.jira.jql.resolver
Class ComponentResolver
java.lang.Object
com.atlassian.jira.jql.resolver.ComponentResolver
- All Implemented Interfaces:
NameResolver<ProjectComponent>
Resolves Component objects and ids from their names.
- Since:
- v4.0
-
Constructor Summary
-
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 of T objects that have the given name.boolean
Returns true if the id would resolve to a domain object.boolean
nameExists
(String name) Returns true if the name would resolve to a domain object.
-
Constructor Details
-
ComponentResolver
-
-
Method Details
-
getIdsFromName
Description copied from interface:NameResolver
Returns 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:
getIdsFromName
in interfaceNameResolver<ProjectComponent>
- 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:NameResolver
Returns true if the name would resolve to a domain object.- Specified by:
nameExists
in interfaceNameResolver<ProjectComponent>
- Parameters:
name
- the addressable name.- Returns:
- true only if the name resolves to a domain object in the database.
-
idExists
Description copied from interface:NameResolver
Returns true if the id would resolve to a domain object.- Specified by:
idExists
in interfaceNameResolver<ProjectComponent>
- Parameters:
id
- the primary key.- Returns:
- true only if the id resolves to a domain object in the database.
-
get
Description copied from interface:NameResolver
Get by id.- Specified by:
get
in interfaceNameResolver<ProjectComponent>
- Parameters:
id
- the id.- Returns:
- the domain object or null on lookup failure.
-
getAll
Description copied from interface:NameResolver
Gets 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:
getAll
in interfaceNameResolver<ProjectComponent>
- Returns:
- all objects of the configured type in the database (possibly empty, never null).
-