public interface CharacteristicService extends BaseVoEnabledService<Characteristic,CharacteristicValueObject>, FilteringService<Characteristic>
Modifier and Type | Method and Description |
---|---|
List<Characteristic> |
browse(int start,
int limit)
Browse through the characteristics, excluding GO annotations.
|
List<Characteristic> |
browse(int start,
int limit,
String sortField,
boolean descending)
Browse through the characteristics, excluding GO annotations.
|
Map<String,Long> |
countCharacteristicsByValueUri(Collection<String> uris) |
Characteristic |
create(Characteristic c)
Creates the given entity in the persistent storage.
|
Collection<? extends Characteristic> |
findByCategory(String queryPrefix) |
Collection<Characteristic> |
findByUri(Collection<String> uris)
given a collection of strings that represent URI's will find all the characteristics that are used in the system
with URI's matching anyone in the given collection
|
Collection<Characteristic> |
findByUri(String searchString)
Looks for an exact match of the give string to a valueUri in the characteristic database
|
Collection<Characteristic> |
findByValue(String search)
Returns a collection of characteristics that have a Value that match the given search string.
|
Map<String,Characteristic> |
findCharacteristicsByValueUriOrValueLike(String search) |
Map<Class<? extends Identifiable>,Map<String,Set<ExpressionExperiment>>> |
findExperimentsByUris(Collection<String> uris,
Taxon taxon,
int limit) |
Map<Characteristic,Long> |
getParentIds(Class<?> parentClass,
Collection<Characteristic> characteristics)
Optimized version that only retrieves the IDs of the owning object.
|
Map<Characteristic,Object> |
getParents(Collection<Characteristic> characteristics) |
Map<Characteristic,Object> |
getParents(Collection<Class<?>> classes,
Collection<Characteristic> characteristics) |
void |
remove(Characteristic c)
Removes the given entity from the persistent storage.
|
void |
remove(Long id)
Removes the entity with given ID from the persistent storage.
|
void |
update(Characteristic c)
Updates the given entity in the persistent storage.
|
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
getObjectFilter, getObjectFilter, getSort
create, findOrCreate, remove, removeAllInBatch, save, save, update
countAll, find, findOrFail, load, load, loadAll, loadOrFail
List<Characteristic> browse(int start, int limit)
start
- How far into the list to startlimit
- Maximum records to retrieveList<Characteristic> browse(int start, int limit, String sortField, boolean descending)
start
- How far into the list to startlimit
- Maximum records to retrievesortField
- sort fielddescending
- sor orderMap<Class<? extends Identifiable>,Map<String,Set<ExpressionExperiment>>> findExperimentsByUris(Collection<String> uris, @Nullable Taxon taxon, int limit)
Collection<Characteristic> findByUri(Collection<String> uris)
uris
- urisCollection<Characteristic> findByUri(String searchString)
searchString
- search stringCollection<Characteristic> findByValue(String search)
search
- searchMap<String,Characteristic> findCharacteristicsByValueUriOrValueLike(String search)
Map<String,Long> countCharacteristicsByValueUri(Collection<String> uris)
@Secured(value={"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_MAP_VALUES_READ"}) Map<Characteristic,Object> getParents(Collection<Characteristic> characteristics)
characteristics
- characteristics@Secured(value={"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_MAP_VALUES_READ"}) Map<Characteristic,Object> getParents(Collection<Class<?>> classes, @Nullable Collection<Characteristic> characteristics)
characteristics
- characteristicsclasses
- classesCollection<? extends Characteristic> findByCategory(String queryPrefix)
@Secured(value="GROUP_USER") Characteristic create(Characteristic c)
BaseService
create
in interface BaseService<Characteristic>
c
- the entity to be created.@Secured(value="GROUP_USER") void remove(Long id)
BaseService
remove
in interface BaseService<Characteristic>
id
- the ID of entity to be removed.@Secured(value="GROUP_USER") void remove(Characteristic c)
BaseService
remove
in interface BaseService<Characteristic>
c
- the entity to be removed.@Secured(value="GROUP_USER") void update(Characteristic c)
BaseService
update
in interface BaseService<Characteristic>
c
- the entity to be updated.Map<Characteristic,Long> getParentIds(Class<?> parentClass, @Nullable Collection<Characteristic> characteristics)
parentClass
- the type of object sought associated with the characteristicCopyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.