public class CustomFieldOptionResolver extends Object implements NameResolver<Option>
Constructor and Description |
---|
CustomFieldOptionResolver(OptionsManager optionsManager) |
Modifier and Type | Method and Description |
---|---|
Option |
get(Long id)
Get by id.
|
Collection<Option> |
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.
|
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 CustomFieldOptionResolver(OptionsManager optionsManager)
public List<String> getIdsFromName(String name)
NameResolver
getIdsFromName
in interface NameResolver<Option>
name
- the name of the T.public boolean nameExists(String name)
NameResolver
nameExists
in interface NameResolver<Option>
name
- the addressable name.public boolean idExists(Long id)
NameResolver
idExists
in interface NameResolver<Option>
id
- the primary key.public Option get(Long id)
NameResolver
get
in interface NameResolver<Option>
id
- the id.public Collection<Option> getAll()
NameResolver
getAll
in interface NameResolver<Option>
Copyright © 2002-2019 Atlassian. All Rights Reserved.