Package com.atlassian.jira.jql.resolver
Interface UserResolver
- All Superinterfaces:
NameResolver<ApplicationUser>
- All Known Implementing Classes:
UserResolverImpl
We need a non-generified interface here to make this work with PICO+OSGi in plugins2
- Since:
- v4.0
-
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.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.
-
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<ApplicationUser>
- 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<ApplicationUser>
- 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<ApplicationUser>
- Parameters:
id
- the primary key.- Returns:
- true only if the id resolves to a domain object in the database.
-
get
Get a user from an ID- Specified by:
get
in interfaceNameResolver<ApplicationUser>
- Parameters:
id
- the id.- Returns:
- a User
-
getApplicationUser
Gets an application user from an ID- Parameters:
id
- the id.- Returns:
- an ApplicationUser
-
getAll
Collection<ApplicationUser> getAll()Get all users- Specified by:
getAll
in interfaceNameResolver<ApplicationUser>
- Returns:
- All users
-