Interface CharacteristicService
- 
- All Superinterfaces:
- BaseImmutableService<Characteristic>,- BaseReadOnlyService<Characteristic>,- BaseService<Characteristic>,- BaseVoEnabledService<Characteristic,CharacteristicValueObject>
 - All Known Implementing Classes:
- CharacteristicServiceImpl
 
 public interface CharacteristicService extends BaseService<Characteristic>, BaseVoEnabledService<Characteristic,CharacteristicValueObject> - Author:
- paul
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method 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)Characteristiccreate(Characteristic c)Creates the given entity in the persistent storage.CharacteristicfindBestByUri(String uri)Find the best possible characteristic for a given URI.Collection<? extends Characteristic>findByCategory(String queryPrefix)Collection<Characteristic>findByUri(String searchString)Looks for an exact match of the give string to a valueUri in the characteristic databaseCollection<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 collectionCollection<Characteristic>findByValueLike(String search)Returns a collection of characteristics that have a value matching the given SQLLIKEpattern.Collection<Characteristic>findByValueStartingWith(String search)Returns a collection of characteristics that have a value starting with the given string.Map<String,Characteristic>findCharacteristicsByValueUriOrValueLike(String search)Map<Class<? extends Identifiable>,Map<String,Set<ExpressionExperiment>>>findExperimentsByUris(Collection<String> uris, Taxon taxon, int limit, boolean loadEEs, boolean rankByLevel)FiltergetFilter(String property, Filter.Operator operator, String value)FiltergetFilter(String property, Filter.Operator operator, Collection<String> values)Set<String>getFilterableProperties()StringgetFilterablePropertyDescription(String property)Class<?>getFilterablePropertyType(String property)Map<Characteristic,Identifiable>getParents(Collection<Characteristic> characteristics, Collection<Class<?>> parentClasses, int maxResults)SortgetSort(String property, Sort.Direction direction)voidremove(Long id)Removes the entity with given ID from the persistent storage.voidremove(Characteristic c)Removes the given entity from the persistent storage.- 
Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableServicecreate, findOrCreate, remove
 - 
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyServicecountAll, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail
 - 
Methods inherited from interface ubic.gemma.persistence.service.BaseServicesave, save, update, update
 - 
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledServiceloadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
 
- 
 
- 
- 
- 
Method Detail- 
browseList<Characteristic> browse(int start, int limit) Browse through the characteristics, excluding GO annotations.- Parameters:
- start- How far into the list to start
- limit- Maximum records to retrieve
- Returns:
- characteristics
 
 - 
browseList<Characteristic> browse(int start, int limit, String sortField, boolean descending) Browse through the characteristics, excluding GO annotations.- Parameters:
- start- How far into the list to start
- limit- Maximum records to retrieve
- sortField- sort field
- descending- sor order
- Returns:
- characteristics
 
 - 
findExperimentsByUrisMap<Class<? extends Identifiable>,Map<String,Set<ExpressionExperiment>>> findExperimentsByUris(Collection<String> uris, @Nullable Taxon taxon, int limit, boolean loadEEs, boolean rankByLevel) 
 - 
findByUriCollection<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- Parameters:
- uris- uris
- Returns:
- characteristics
 
 - 
findByUriCollection<Characteristic> findByUri(String searchString) Looks for an exact match of the give string to a valueUri in the characteristic database- Parameters:
- searchString- search string
- Returns:
- characteristics
 
 - 
findBestByUri@Nullable Characteristic findBestByUri(String uri) Find the best possible characteristic for a given URI.
 - 
findByValueStartingWithCollection<Characteristic> findByValueStartingWith(String search) Returns a collection of characteristics that have a value starting with the given string.The value is usually a human-readable form of the termURI. SQL LIKEpatterns are escaped. UsefindByValueLike(String)to do wildcard searches instead.
 - 
findByValueLikeCollection<Characteristic> findByValueLike(String search) Returns a collection of characteristics that have a value matching the given SQLLIKEpattern.
 - 
findCharacteristicsByValueUriOrValueLikeMap<String,Characteristic> findCharacteristicsByValueUriOrValueLike(String search) 
 - 
countCharacteristicsByValueUriMap<String,Long> countCharacteristicsByValueUri(Collection<String> uris) 
 - 
getParents@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_MAP_VALUES_READ"}) Map<Characteristic,Identifiable> getParents(Collection<Characteristic> characteristics, @Nullable Collection<Class<?>> parentClasses, int maxResults)- Parameters:
- characteristics- characteristics
- Returns:
- a map of the specified characteristics to their annotated objects.
 
 - 
findByCategoryCollection<? extends Characteristic> findByCategory(String queryPrefix) 
 - 
create@Secured("GROUP_USER") Characteristic create(Characteristic c)Description copied from interface:BaseImmutableServiceCreates the given entity in the persistent storage.- Specified by:
- createin interface- BaseImmutableService<Characteristic>
- Parameters:
- c- the entity to be created.
- Returns:
- object referencing the persistent instance of the given entity.
 
 - 
remove@Secured("GROUP_ADMIN") void remove(Long id)Description copied from interface:BaseImmutableServiceRemoves the entity with given ID from the persistent storage.- Specified by:
- removein interface- BaseImmutableService<Characteristic>
- Parameters:
- id- the ID of entity to be removed.
 
 - 
remove@Secured("GROUP_USER") void remove(Characteristic c)Description copied from interface:BaseImmutableServiceRemoves the given entity from the persistent storage.- Specified by:
- removein interface- BaseImmutableService<Characteristic>
- Parameters:
- c- the entity to be removed.
 
 - 
getFilterablePropertiesSet<String> getFilterableProperties() - See Also:
- FilteringDao.getFilterableProperties()
 
 - 
getFilterablePropertyDescription@Nullable String getFilterablePropertyDescription(String property) 
 - 
getFilterFilter getFilter(String property, Filter.Operator operator, String value) throws IllegalArgumentException - Throws:
- IllegalArgumentException
- See Also:
- FilteringDao.getFilterableProperties()
 
 - 
getFilterFilter getFilter(String property, Filter.Operator operator, Collection<String> values) throws IllegalArgumentException 
 - 
getSortSort getSort(String property, @Nullable Sort.Direction direction) throws IllegalArgumentException - Throws:
- IllegalArgumentException
- See Also:
- FilteringDao.getSort(String, Sort.Direction)
 
 
- 
 
-