Project

General

Profile

Revision 721d9357

ID721d9357ad78bfe4016237e88395c006b41c683f
Parent d97ab2bf
Child 8311a989

Added by Andreas Müller almost 3 years ago

cleanup

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonNodeServiceImpl.java
59 59
/**
60 60
 * @author n.hoffmann
61 61
 * @created Apr 9, 2010
62
 * @version 1.0
63 62
 */
64 63
@Service
65 64
@Transactional(readOnly = true)
......
377 376
        return result;
378 377
    }
379 378

  
380
    /* (non-Javadoc)
381
     * @see eu.etaxonomy.cdm.api.service.ITaxonNodeService#deleteTaxonNodes(java.util.List)
382
     */
383 379
    @Override
384 380
    @Transactional(readOnly = false)
385 381
    public DeleteResult deleteTaxonNodes(List<TaxonNode> list, TaxonDeletionConfigurator config) {
......
495 491
             }
496 492
        }*/
497 493
        return result;
498

  
499 494
    }
500 495

  
501 496

  
......
510 505
    }
511 506

  
512 507

  
513

  
514 508
    @Override
515 509
    @Transactional(readOnly = false)
516 510
    public DeleteResult deleteTaxonNode(UUID nodeUUID, TaxonDeletionConfigurator config) {
......
542 536
    	}
543 537

  
544 538

  
545

  
546 539
    	if (config.getTaxonNodeConfig().getChildHandling().equals(ChildHandling.MOVE_TO_PARENT)){
547 540
    	   Object[] children = node.getChildNodes().toArray();
548 541
    	   TaxonNode childNode;
......
591 584
    		}
592 585
    		return result;
593 586
    	}
594

  
595

  
596

  
597 587
    }
598 588

  
599 589

  
600
    /* (non-Javadoc)
601
     * @see eu.etaxonomy.cdm.api.service.ITaxonNodeService#listAllNodesForClassification(eu.etaxonomy.cdm.model.taxon.Classification, int, int)
602
     */
603 590
    @Override
604 591
    public List<TaxonNode> listAllNodesForClassification(Classification classification, Integer start, Integer end) {
605 592
        return dao.getTaxonOfAcceptedTaxaByClassification(classification, start, end);
cdmlib-services/src/test/resources/eu/etaxonomy/cdm/api/service/TaxonNodeServiceImplTest.xml
1 1
<?xml version='1.0' encoding='UTF-8'?>
2
<dataset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../service/dataset.xsd">
2
<dataset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../database/schema/dataset.xsd">
3 3
    <REFERENCE ID="1" UUID="de7d1205-291f-45d9-9059-ca83fc7ade14" PROTECTEDTITLECACHE="false" REFTYPE="GEN" PROTECTEDABBREVTITLECACHE="false" ABBREVTITLECACHE="Sp. Pl." ABBREVTITLE="Sp. Pl." NOMENCLATURALLYRELEVANT="false" PARSINGPROBLEM="0" PROBLEMENDS="-1" PROBLEMSTARTS="-1" />
4 4
    <CLASSIFICATION ID="1" UUID="6c2bc8d9-ee62-4222-be89-4a8e31770878"  PROTECTEDTITLECACHE="true" ROOTNODE_ID = "1"/>
5 5
   <!-- <CLASSIFICATION_TAXONNODE CLASSIFICATION_ID="1" ROOTNODES_ID="1" SORTINDEX="0"/> --> 

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)