public abstract class ConstantsNameResolver<T> extends Object implements NameResolver<T>
| Constructor and Description |
|---|
ConstantsNameResolver(ConstantsManager constantsManager,
String constantName) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllpublic ConstantsNameResolver(ConstantsManager constantsManager, String constantName)
public List<String> getIdsFromName(String name)
NameResolvergetIdsFromName in interface NameResolver<T>name - the name of the T.public boolean nameExists(String name)
NameResolvernameExists in interface NameResolver<T>name - the addressable name.public boolean idExists(Long id)
NameResolveridExists in interface NameResolver<T>id - the primary key.public T get(Long id)
NameResolverget in interface NameResolver<T>id - the id.Copyright © 2002-2024 Atlassian. All Rights Reserved.