|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.jql.resolver.ProjectResolver
@InjectableComponent public class ProjectResolver
Resolves Project objects and ids from their names.
| Constructor Summary | |
|---|---|
ProjectResolver(ProjectManager projectManager)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectResolver(ProjectManager projectManager)
| Method Detail |
|---|
public List<String> getIdsFromName(String name)
NameResolver
getIdsFromName in interface NameResolver<Project>name - the name of the T.
public boolean nameExists(String name)
NameResolver
nameExists in interface NameResolver<Project>name - the addressable name.
public boolean idExists(Long id)
NameResolver
idExists in interface NameResolver<Project>id - the primary key.
public Project get(Long id)
NameResolver
get in interface NameResolver<Project>id - the id.
public Collection<Project> getAll()
NameResolver
getAll in interface NameResolver<Project>public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||