public class UserResolverImpl extends Object implements UserResolver
Constructor and Description |
---|
UserResolverImpl(UserKeyService userKeyService,
UserManager userManager,
UserSearchService userSearchService) |
Modifier and Type | Method and Description |
---|---|
ApplicationUser |
get(Long id)
Get a user from an ID
|
Collection<ApplicationUser> |
getAll()
Get all users
|
ApplicationUser |
getApplicationUser(Long id)
Gets an application user from an ID
|
List<String> |
getIdsFromName(String name)
Returns the list of ids of T objects that have the given name.
|
boolean |
idExists(Long id)
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.
|
public UserResolverImpl(UserKeyService userKeyService, UserManager userManager, UserSearchService userSearchService)
public List<String> getIdsFromName(String name)
NameResolver
getIdsFromName
in interface NameResolver<ApplicationUser>
getIdsFromName
in interface UserResolver
name
- the name of the T.public boolean nameExists(String name)
NameResolver
nameExists
in interface NameResolver<ApplicationUser>
nameExists
in interface UserResolver
name
- the addressable name.public boolean idExists(Long id)
NameResolver
idExists
in interface NameResolver<ApplicationUser>
idExists
in interface UserResolver
id
- the primary key.public ApplicationUser get(Long id)
UserResolver
get
in interface NameResolver<ApplicationUser>
get
in interface UserResolver
id
- the id.public ApplicationUser getApplicationUser(Long id)
UserResolver
getApplicationUser
in interface UserResolver
id
- the id.@Nonnull public Collection<ApplicationUser> getAll()
UserResolver
getAll
in interface NameResolver<ApplicationUser>
getAll
in interface UserResolver
Copyright © 2002-2021 Atlassian. All Rights Reserved.