@InjectableComponent public class ProjectResolver extends Object implements NameResolver<Project>
| Constructor and Description |
|---|
ProjectResolver(ProjectManager projectManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Project |
get(Long id)
Get by id.
|
Collection<Project> |
getAll()
Gets all domain objects of this type in the underlying database.
|
List<String> |
getIdsFromName(String name)
Returns the list of ids of T objects that have the given name.
|
int |
hashCode() |
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 ProjectResolver(ProjectManager projectManager)
public List<String> getIdsFromName(String name)
NameResolvergetIdsFromName in interface NameResolver<Project>name - the name of the T.public boolean nameExists(String name)
NameResolvernameExists in interface NameResolver<Project>name - the addressable name.public boolean idExists(Long id)
NameResolveridExists in interface NameResolver<Project>id - the primary key.public Project get(Long id)
NameResolverget in interface NameResolver<Project>id - the id.public Collection<Project> getAll()
NameResolvergetAll in interface NameResolver<Project>Copyright © 2002-2018 Atlassian. All Rights Reserved.