Package com.atlassian.jira.jql.resolver
Class UserResolverImpl
java.lang.Object
com.atlassian.jira.jql.resolver.UserResolverImpl
- All Implemented Interfaces:
NameResolver<ApplicationUser>,UserResolver
Resolves User objects and their names.
- Since:
- v4.0
-
Constructor Summary
ConstructorsConstructorDescriptionUserResolverImpl(UserKeyService userKeyService, UserManager userManager, UserSearchService userSearchService) -
Method Summary
Modifier and TypeMethodDescriptionGet a user from an IDgetAll()Get all usersGets an application user from an IDgetIdsFromName(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.
-
Constructor Details
-
UserResolverImpl
public UserResolverImpl(UserKeyService userKeyService, UserManager userManager, UserSearchService userSearchService)
-
-
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<ApplicationUser>- Specified by:
getIdsFromNamein interfaceUserResolver- 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<ApplicationUser>- Specified by:
nameExistsin interfaceUserResolver- 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<ApplicationUser>- Specified by:
idExistsin interfaceUserResolver- Parameters:
id- the primary key.- Returns:
- true only if the id resolves to a domain object in the database.
-
get
Description copied from interface:UserResolverGet a user from an ID- Specified by:
getin interfaceNameResolver<ApplicationUser>- Specified by:
getin interfaceUserResolver- Parameters:
id- the id.- Returns:
- a User
-
getApplicationUser
Description copied from interface:UserResolverGets an application user from an ID- Specified by:
getApplicationUserin interfaceUserResolver- Parameters:
id- the id.- Returns:
- an ApplicationUser
-
getAll
Description copied from interface:UserResolverGet all users- Specified by:
getAllin interfaceNameResolver<ApplicationUser>- Specified by:
getAllin interfaceUserResolver- Returns:
- All users
-