Revision baace0b5
Added by Katja Luther almost 6 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/NameEditorInput.java | ||
---|---|---|
17 | 17 |
import eu.etaxonomy.cdm.api.service.config.DeleteConfiguratorBase; |
18 | 18 |
import eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator; |
19 | 19 |
import eu.etaxonomy.cdm.api.service.config.NameDeletionConfigurator; |
20 |
import eu.etaxonomy.cdm.model.name.HybridRelationship; |
|
20 | 21 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
21 | 22 |
import eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator; |
22 | 23 |
import eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorSortProvider; |
... | ... | |
145 | 146 |
List<String> propertyPaths = Arrays.asList(new String[]{}); |
146 | 147 |
return CdmStore.getService(INameService.class).load(entityUuid, getPropertyPaths()); |
147 | 148 |
} |
149 |
@Override |
|
150 |
public void addSaveCandidate(TaxonName name){ |
|
151 |
if (!name.getHybridChildRelations().isEmpty()){ |
|
152 |
for (HybridRelationship rel: name.getHybridChildRelations()){ |
|
153 |
if (!rel.getParentName().isPersited()){ |
|
154 |
super.addSaveCandidate(rel.getParentName()); |
|
155 |
} |
|
156 |
if (!rel.getHybridName().isPersited()){ |
|
157 |
super.addSaveCandidate(rel.getHybridName()); |
|
158 |
} |
|
159 |
} |
|
160 |
} |
|
161 |
|
|
162 |
super.addSaveCandidate(name); |
|
163 |
} |
|
148 | 164 |
|
149 | 165 |
|
150 | 166 |
private List<String> getPropertyPaths(){ |
Also available in: Unified diff
fix #7393: fix saving of new hybrid names in bulk editor