Package com.atlassian.jira.jql.resolver
Class StatusCategoryResolver
java.lang.Object
com.atlassian.jira.jql.resolver.StatusCategoryResolver
- All Implemented Interfaces:
NameResolver<StatusCategory>
Resolves Status Category objects
- Since:
- v6.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.atlassian.fugue.Option<StatusCategory>io.atlassian.fugue.Option<StatusCategory>io.atlassian.fugue.Option<StatusCategory>Get 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.getStatusCategories(Collection<QueryLiteral> queryLiterals) io.atlassian.fugue.Option<StatusCategory>getStatusCategory(QueryLiteral rawValue) 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.
-
Constructor Details
-
StatusCategoryResolver
-
-
Method Details
-
getStatusCategories
-
getStatusCategory
-
forId
-
forKey
-
forName
-
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<StatusCategory>- 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<StatusCategory>- 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<StatusCategory>- 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<StatusCategory>- 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<StatusCategory>- Returns:
- all objects of the configured type in the database (possibly empty, never null).
-