public class StatusCategoryResolver extends Object implements NameResolver<StatusCategory>
Constructor and Description |
---|
StatusCategoryResolver(StatusCategoryManager statusCategoryManager) |
Modifier and Type | Method and Description |
---|---|
io.atlassian.fugue.Option<StatusCategory> |
forId(Long id) |
io.atlassian.fugue.Option<StatusCategory> |
forKey(String key) |
io.atlassian.fugue.Option<StatusCategory> |
forName(String name) |
StatusCategory |
get(Long id)
Get by id.
|
Collection<StatusCategory> |
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.
|
Set<StatusCategory> |
getStatusCategories(Collection<QueryLiteral> queryLiterals) |
io.atlassian.fugue.Option<StatusCategory> |
getStatusCategory(QueryLiteral rawValue) |
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 StatusCategoryResolver(StatusCategoryManager statusCategoryManager)
public Set<StatusCategory> getStatusCategories(Collection<QueryLiteral> queryLiterals)
public io.atlassian.fugue.Option<StatusCategory> getStatusCategory(QueryLiteral rawValue)
public io.atlassian.fugue.Option<StatusCategory> forId(Long id)
public io.atlassian.fugue.Option<StatusCategory> forKey(String key)
public io.atlassian.fugue.Option<StatusCategory> forName(String name)
public List<String> getIdsFromName(String name)
NameResolver
getIdsFromName
in interface NameResolver<StatusCategory>
name
- the name of the T.public boolean nameExists(String name)
NameResolver
nameExists
in interface NameResolver<StatusCategory>
name
- the addressable name.public boolean idExists(Long id)
NameResolver
idExists
in interface NameResolver<StatusCategory>
id
- the primary key.public StatusCategory get(Long id)
NameResolver
get
in interface NameResolver<StatusCategory>
id
- the id.@Nonnull public Collection<StatusCategory> getAll()
NameResolver
getAll
in interface NameResolver<StatusCategory>
Copyright © 2002-2021 Atlassian. All Rights Reserved.