Project

General

Profile

Revision 1fc33b39

ID1fc33b395417e3cfd6aff5886ac277ac337ce842
Parent a089c5d4
Child 1e1d5695

Added by Andreas Müller about 2 years ago

ref #6682 add types and deduplicateMisapplications parameter to web service

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonServiceImpl.java
3214 3214
//
3215 3215
//        return new DefaultPagerImpl<>(pageNumber, numberOfResults, pageSize, results);;
3216 3216

  
3217
            //TODO type
3218
            TaxonRelationshipType type = null;
3219 3217
            //TODO languages
3220 3218
            List<Language> languages = null;
3221 3219
            if (doDirect){
3222 3220
                direction = Direction.relatedTo;
3223 3221
                //TODO order hints, property path
3224
                List<TaxonRelationship> relations = dao.getTaxonRelationships(taxon, type, includeUnpublished, pageSize, pageNumber, null, null, direction.invers());
3222
                List<TaxonRelationship> relations = dao.getTaxonRelationships(taxon, types, includeUnpublished, pageSize, pageNumber, null, null, direction.invers());
3225 3223
                for (TaxonRelationship relation : relations){
3226 3224
                    dto.addRelation(relation, direction, languages);
3227 3225
                }
......
3229 3227
            if (doInvers){
3230 3228
                direction = Direction.relatedFrom;
3231 3229
                //TODO order hints, property path
3232
                List<TaxonRelationship> relations = dao.getTaxonRelationships(taxon, type, includeUnpublished, pageSize, pageNumber, null, null, direction.invers());
3230
                List<TaxonRelationship> relations = dao.getTaxonRelationships(taxon, types, includeUnpublished, pageSize, pageNumber, null, null, direction.invers());
3233 3231
                for (TaxonRelationship relation : relations){
3234 3232
                    dto.addRelation(relation, direction, languages);
3235 3233
                }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)