|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.jql.resolver.ConstantsNameResolver<T>
public abstract class ConstantsNameResolver<T>
Common base class for issue constants providing most of the resolution logic.
| Constructor Summary | |
|---|---|
ConstantsNameResolver(ConstantsManager constantsManager,
String constantName)
|
|
| Method Summary | |
|---|---|
T |
get(Long id)
Get by 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.jira.jql.resolver.NameResolver |
|---|
getAll |
| Constructor Detail |
|---|
public ConstantsNameResolver(ConstantsManager constantsManager,
String constantName)
| Method Detail |
|---|
public List<String> getIdsFromName(String name)
NameResolver
getIdsFromName in interface NameResolver<T>name - the name of the T.
public boolean nameExists(String name)
NameResolver
nameExists in interface NameResolver<T>name - the addressable name.
public boolean idExists(Long id)
NameResolver
idExists in interface NameResolver<T>id - the primary key.
public T get(Long id)
NameResolver
get in interface NameResolver<T>id - the id.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||