public class UserResolverImpl extends Object implements UserResolver
| Constructor and Description |
|---|
UserResolverImpl(UserKeyService userKeyService,
UserManager userManager) |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.crowd.embedded.api.User |
get(Long id)
Get a user from an ID
|
Collection<com.atlassian.crowd.embedded.api.User> |
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)
public List<String> getIdsFromName(String name)
NameResolvergetIdsFromName in interface NameResolver<com.atlassian.crowd.embedded.api.User>getIdsFromName in interface UserResolvername - the name of the T.public boolean nameExists(String name)
NameResolvernameExists in interface NameResolver<com.atlassian.crowd.embedded.api.User>nameExists in interface UserResolvername - the addressable name.public boolean idExists(Long id)
NameResolveridExists in interface NameResolver<com.atlassian.crowd.embedded.api.User>idExists in interface UserResolverid - the primary key.public com.atlassian.crowd.embedded.api.User get(Long id)
UserResolverget in interface NameResolver<com.atlassian.crowd.embedded.api.User>get in interface UserResolverid - the id.public ApplicationUser getApplicationUser(Long id)
UserResolvergetApplicationUser in interface UserResolverid - the id.@Nonnull public Collection<com.atlassian.crowd.embedded.api.User> getAll()
UserResolvergetAll in interface NameResolver<com.atlassian.crowd.embedded.api.User>getAll in interface UserResolverCopyright © 2002-2015 Atlassian. All Rights Reserved.