Package ubic.gemma.persistence.service
Interface FilteringService<O extends Identifiable>
-
- All Superinterfaces:
BaseReadOnlyService<O>
- All Known Subinterfaces:
ArrayDesignService
,CompositeSequenceService
,CuratableService<C,VO>
,DatabaseEntryService
,ExpressionAnalysisResultSetService
,ExpressionExperimentService
,FactorValueService
,FilteringVoEnabledService<O,VO>
,GeneService
,QuantitationTypeService
,TaxonService
- All Known Implementing Classes:
AbstractFilteringVoEnabledService
,ArrayDesignServiceImpl
,BioAssayServiceImpl
,CharacteristicServiceImpl
,CompositeSequenceServiceImpl
,DatabaseEntryServiceImpl
,ExpressionAnalysisResultSetServiceImpl
,ExpressionExperimentServiceImpl
,FactorValueServiceImpl
,GeneServiceImpl
,QuantitationTypeServiceImpl
,TaxonServiceImpl
public interface FilteringService<O extends Identifiable> extends BaseReadOnlyService<O>
Interface for filtering-capable services.- See Also:
FilteringDao
-
-
Method Summary
-
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail
-
-
-
-
Method Detail
-
getIdentifierPropertyName
String getIdentifierPropertyName()
- See Also:
BaseDao.getIdentifierPropertyName()
-
getFilterableProperties
Set<String> getFilterableProperties()
- See Also:
FilteringDao.getFilterableProperties()
-
getFilterablePropertyDescription
@Nullable String getFilterablePropertyDescription(String property)
-
getFilterablePropertyAllowedValues
@Nullable List<Object> getFilterablePropertyAllowedValues(String property)
-
getFilterablePropertyResolvableAllowedValuesLabels
@Nullable List<MessageSourceResolvable> getFilterablePropertyResolvableAllowedValuesLabels(String property)
Obtain a list of resolvableMessageSourceResolvable
s to be used for user display purposes.Nullity and the number of elements is guaranteed to match
getFilterablePropertyAllowedValues(String)
(String)}, so the two methods can be used jointly.
-
getFilterablePropertyIsUsingSubquery
boolean getFilterablePropertyIsUsingSubquery(String property)
-
getFilterablePropertyConfigAttributes
@Nullable Collection<org.springframework.security.access.ConfigAttribute> getFilterablePropertyConfigAttributes(String property)
Obtain the Spring Security config attributes for a given property.- Returns:
- the config attributes, or null if no security check should be performed
-
getFilter
Filter getFilter(String property, Filter.Operator operator, String value) throws IllegalArgumentException
- Throws:
IllegalArgumentException
- See Also:
FilteringDao.getFilterableProperties()
-
getFilter
Filter getFilter(String property, Filter.Operator operator, Collection<String> values) throws IllegalArgumentException
-
getFilter
<T> Filter getFilter(String property, Class<T> propertyType, Filter.Operator operator, T value)
-
getFilter
<T> Filter getFilter(String property, Class<T> propertyType, Filter.Operator operator, Collection<T> parsedValues)
-
getSort
Sort getSort(String property, @Nullable Sort.Direction direction) throws IllegalArgumentException
- Throws:
IllegalArgumentException
- See Also:
FilteringDao.getSort(String, Sort.Direction)
-
loadIds
List<Long> loadIds(@Nullable Filters filters, @Nullable Sort sort)
- See Also:
FilteringDao.loadIds(Filters, Sort)
-
load
List<O> load(@Nullable Filters filters, @Nullable Sort sort)
- See Also:
FilteringDao.load(Filters, Sort)
-
count
long count(@Nullable Filters filters)
- See Also:
FilteringDao.count(Filters)
-
-