Project

General

Profile

« Previous | Next » 

Revision b83da0d9

Added by Andreas Müller over 2 years ago

ref #694 add DescriptionElementService and move some methods

View differences:

cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/TaxonServiceSearchTest.java
118 118
    @SpringBeanByType
119 119
    private IDescriptionService descriptionService;
120 120
    @SpringBeanByType
121
    private IDescriptionElementService descriptionElementService;
122
    @SpringBeanByType
121 123
    private INameService nameService;
122 124
    @SpringBeanByType
123 125
    private ITaxonNodeService nodeService;
......
557 559
        String[] descriptionElementUuidStr = indexDocument.getValues("uuid");
558 560
        String[] inDescriptionUuidStr = indexDocument.getValues("inDescription.uuid");
559 561
        // is only one uuid!
560
        DescriptionElementBase textData = descriptionService.getDescriptionElementByUuid(UUID.fromString(descriptionElementUuidStr[0]));
562
        DescriptionElementBase textData = descriptionElementService.find(UUID.fromString(descriptionElementUuidStr[0]));
561 563

  
562 564
        ((TextData)textData).removeText(Language.GERMAN());
563 565
        ((TextData)textData).putText(Language.SPANISH_CASTILIAN(), "abeto bals"+UTF8.SMALL_A_ACUTE+"mico");
564 566

  
565
        descriptionService.saveDescriptionElement(textData);
567
        descriptionElementService.save(textData);
566 568
        commitAndStartNewTransaction(null);
567 569
//        printDataSet(System.out, new String[] {
568 570
//                "DESCRIPTIONELEMENTBASE", "LANGUAGESTRING", "DESCRIPTIONELEMENTBASE_LANGUAGESTRING" }

Also available in: Unified diff