Package ubic.gemma.rest.util.args
Class TaxonArgService
- java.lang.Object
-
- ubic.gemma.rest.util.args.AbstractEntityArgService<ubic.gemma.model.genome.Taxon,ubic.gemma.persistence.service.genome.taxon.TaxonService>
-
- ubic.gemma.rest.util.args.TaxonArgService
-
- All Implemented Interfaces:
EntityArgService<ubic.gemma.model.genome.Taxon,ubic.gemma.persistence.service.genome.taxon.TaxonService>
@Service public class TaxonArgService extends AbstractEntityArgService<ubic.gemma.model.genome.Taxon,ubic.gemma.persistence.service.genome.taxon.TaxonService>
-
-
Field Summary
-
Fields inherited from class ubic.gemma.rest.util.args.AbstractEntityArgService
service
-
-
Constructor Summary
Constructors Constructor Description TaxonArgService(ubic.gemma.persistence.service.genome.taxon.TaxonService service, ubic.gemma.persistence.service.genome.ChromosomeService chromosomeService, ubic.gemma.core.genome.gene.service.GeneService geneService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,List<String>>
getArgsByPropertyName(AbstractEntityArrayArg<ubic.gemma.model.genome.Taxon,ubic.gemma.persistence.service.genome.taxon.TaxonService> entitiesArg)
Given aAbstractEntityArrayArg
, construct a mapping of properties it refers to values those properties are allowed to take in a filter.<A> ubic.gemma.persistence.util.Filters
getFilters(AbstractEntityArg<A,ubic.gemma.model.genome.Taxon,ubic.gemma.persistence.service.genome.taxon.TaxonService> entityArg)
List<ubic.gemma.model.genome.gene.GeneValueObject>
getGenesOnChromosome(TaxonArg<?> arg, String chromosomeName, String strand, long start, int size)
Lists Genes overlapping a location on a specific chromosome on a taxon that this TaxonArg represents.-
Methods inherited from class ubic.gemma.rest.util.args.AbstractEntityArgService
checkEntity, entityArgValueOf, getElementClass, getEntities, getEntities, getEntity, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getFilters, getFilters, getSort
-
-
-
-
Constructor Detail
-
TaxonArgService
@Autowired public TaxonArgService(ubic.gemma.persistence.service.genome.taxon.TaxonService service, ubic.gemma.persistence.service.genome.ChromosomeService chromosomeService, ubic.gemma.core.genome.gene.service.GeneService geneService)
-
-
Method Detail
-
getFilters
public <A> ubic.gemma.persistence.util.Filters getFilters(AbstractEntityArg<A,ubic.gemma.model.genome.Taxon,ubic.gemma.persistence.service.genome.taxon.TaxonService> entityArg) throws javax.ws.rs.BadRequestException
- Specified by:
getFilters
in interfaceEntityArgService<ubic.gemma.model.genome.Taxon,ubic.gemma.persistence.service.genome.taxon.TaxonService>
- Overrides:
getFilters
in classAbstractEntityArgService<ubic.gemma.model.genome.Taxon,ubic.gemma.persistence.service.genome.taxon.TaxonService>
- Throws:
javax.ws.rs.BadRequestException
-
getArgsByPropertyName
protected Map<String,List<String>> getArgsByPropertyName(AbstractEntityArrayArg<ubic.gemma.model.genome.Taxon,ubic.gemma.persistence.service.genome.taxon.TaxonService> entitiesArg)
Description copied from class:AbstractEntityArgService
Given aAbstractEntityArrayArg
, construct a mapping of properties it refers to values those properties are allowed to take in a filter.- Overrides:
getArgsByPropertyName
in classAbstractEntityArgService<ubic.gemma.model.genome.Taxon,ubic.gemma.persistence.service.genome.taxon.TaxonService>
-
getGenesOnChromosome
public List<ubic.gemma.model.genome.gene.GeneValueObject> getGenesOnChromosome(TaxonArg<?> arg, String chromosomeName, @Nullable String strand, long start, int size) throws javax.ws.rs.NotFoundException
Lists Genes overlapping a location on a specific chromosome on a taxon that this TaxonArg represents.- Parameters:
chromosomeName
- name of the chromosome to look onstrand
- the strand that the gene has to have which is either '+' or '-', or null to ignorestart
- the start nucleotide denoting the location to look for genes at.size
- the size (in nucleotides) of the location from the 'start' nucleotide.- Returns:
- collection of Gene VOs overlapping the location defined by the 'start' and 'size' parameters.
- Throws:
javax.ws.rs.NotFoundException
- if the taxon cannot retrieved
-
-