Project

General

Profile

Revision d8f3c114

IDd8f3c114333e4b1d88832fcbee59b5a8ef9c968e
Parent c295928b
Child 9dd11918

Added by Katja Luther over 1 year ago

fix call of removed method getAllRelationships

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/SearchManager.java
30 30
import eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator;
31 31
import eu.etaxonomy.cdm.model.agent.AgentBase;
32 32
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase;
33
import eu.etaxonomy.cdm.model.permission.Group;
34 33
import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
35
import eu.etaxonomy.cdm.model.common.RelationshipBase;
36
import eu.etaxonomy.cdm.model.permission.User;
37 34
import eu.etaxonomy.cdm.model.location.NamedArea;
38 35
import eu.etaxonomy.cdm.model.media.Media;
39 36
import eu.etaxonomy.cdm.model.name.NameRelationship;
40 37
import eu.etaxonomy.cdm.model.name.TaxonName;
41 38
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
39
import eu.etaxonomy.cdm.model.permission.Group;
40
import eu.etaxonomy.cdm.model.permission.User;
42 41
import eu.etaxonomy.cdm.model.reference.Reference;
43 42
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
44 43
import eu.etaxonomy.cdm.model.term.TermVocabulary;
......
74 73
		}
75 74

  
76 75
		List<NameRelationship> relationships = new ArrayList<>();
77
		List<RelationshipBase> all = CdmStore.getService(INameService.class).getAllRelationships(0, 0);
78 76

  
79
		for (RelationshipBase<?,?,?> relationship : all){
80
			if(relationship instanceof NameRelationship){
81
				relationships.add((NameRelationship) relationship);
82
			}
83
		}
77
//		TODO: the method getAllRelationships does not exist anymore.
78
//		This method is not used anymore because there is no NameRelationship Bulkeditor
79

  
80
		//		List<RelationshipBase> all = CdmStore.getService(INameService.class).getAllRelationships(0, 0);
81
//
82
//		for (RelationshipBase<?,?,?> relationship : all){
83
//			if(relationship instanceof NameRelationship){
84
//				relationships.add((NameRelationship) relationship);
85
//			}
86
//		}
84 87
		return relationships;
85 88
	}
86 89

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)