com.atlassian.jira.jql.resolver
Interface UserResolver

All Superinterfaces:
NameResolver<com.atlassian.crowd.embedded.api.User>
All Known Implementing Classes:
UserResolverImpl

public interface UserResolver
extends NameResolver<com.atlassian.crowd.embedded.api.User>

We need a non-generified interface here to make this work with PICO+OSGi in plugins2

Since:
v4.0

Method Summary
 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
 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.
 

Method Detail

getIdsFromName

List<String> getIdsFromName(String name)
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 interface NameResolver<com.atlassian.crowd.embedded.api.User>
Parameters:
name - the name of the T.
Returns:
all IDs of objects matching the name or the empty list on name lookup failure.

nameExists

boolean nameExists(String name)
Description copied from interface: NameResolver
Returns true if the name would resolve to a domain object.

Specified by:
nameExists in interface NameResolver<com.atlassian.crowd.embedded.api.User>
Parameters:
name - the addressable name.
Returns:
true only if the name resolves to a domain object in the database.

idExists

boolean idExists(Long id)
Description copied from interface: NameResolver
Returns true if the id would resolve to a domain object.

Specified by:
idExists in interface NameResolver<com.atlassian.crowd.embedded.api.User>
Parameters:
id - the primary key.
Returns:
true only if the id resolves to a domain object in the database.

get

com.atlassian.crowd.embedded.api.User get(Long id)
Get a user from an ID

Specified by:
get in interface NameResolver<com.atlassian.crowd.embedded.api.User>
Parameters:
id - the id.
Returns:
a User

getAll

Collection<com.atlassian.crowd.embedded.api.User> getAll()
Get all users

Specified by:
getAll in interface NameResolver<com.atlassian.crowd.embedded.api.User>
Returns:
All users


Copyright © 2002-2012 Atlassian. All Rights Reserved.