Project

General

Profile

« Previous | Next » 

Revision e4c8c2c8

Added by Andreas Müller almost 3 years ago

cleanup

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/Taxon.java
1707 1707
        result.setRelationsFromThisTaxon(new HashSet<>());
1708 1708

  
1709 1709
        for (TaxonRelationship fromRelationship : this.getRelationsFromThisTaxon()){
1710
            TaxonRelationship newRelationship = (TaxonRelationship)fromRelationship.clone();
1710
            TaxonRelationship newRelationship = fromRelationship.clone();
1711 1711
            newRelationship.setRelatedFrom(result);
1712 1712
            result.relationsFromThisTaxon.add(newRelationship);
1713 1713
        }
1714 1714

  
1715 1715
        result.setRelationsToThisTaxon(new HashSet<>());
1716 1716
        for (TaxonRelationship toRelationship : this.getRelationsToThisTaxon()){
1717
            TaxonRelationship newRelationship = (TaxonRelationship)toRelationship.clone();
1717
            TaxonRelationship newRelationship = toRelationship.clone();
1718 1718
            newRelationship.setRelatedTo(result);
1719 1719
            result.relationsToThisTaxon.add(newRelationship);
1720 1720
        }
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/TaxonRelationshipType.java
382 382
	public static final TaxonRelationshipType CONTRADICTION(){
383 383
		return getTermByUuid(uuidContradiction);
384 384
	}
385

  
385 386
	/**
386 387
	 * Returns the (concept) taxon relationship type "is congruent to".
387 388
	 * This is a concept relationship type which means that the circumscriptions
......
398 399
	public static final TaxonRelationshipType CONGRUENT_TO(){
399 400
		return getTermByUuid(uuidCongruentTo);
400 401
	}
402

  
401 403
	/**
402 404
	 * Returns the (concept) taxon relationship type "includes".
403 405
	 * This is a concept relationship type which means that the circumscriptions
......
416 418
	public static final TaxonRelationshipType INCLUDES(){
417 419
		return getTermByUuid(uuidIncludes);
418 420
	}
421

  
419 422
	/**
420 423
	 * Returns the (concept) taxon relationship type "overlaps".
421 424
	 * This is a concept relationship type which means that the circumscriptions
......
433 436
	public static final TaxonRelationshipType OVERLAPS(){
434 437
		return getTermByUuid(uuidOverlaps);
435 438
	}
439

  
436 440
	/**
437 441
	 * Returns the (concept) taxon relationship type "excludes".
438 442
	 * This is a concept relationship type which means that the circumscriptions
......
448 452
	public static final TaxonRelationshipType EXCLUDES(){
449 453
		return getTermByUuid(uuidExcludes);
450 454
	}
455

  
451 456
	/**
452 457
	 * Returns the (concept) taxon relationship type "does not exclude".
453 458
	 * This is a concept relationship type which means that the circumscriptions
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/config/TaxonDeletionConfigurator.java
42 42
 *
43 43
 */
44 44
public class TaxonDeletionConfigurator extends TaxonBaseDeletionConfigurator {
45

  
46
    private static final long serialVersionUID = -4932682946459109886L;
47

  
45 48
    @SuppressWarnings("unused")
46 49
    private static final Logger logger = Logger.getLogger(TaxonDeletionConfigurator.class);
47 50

  
48 51

  
49

  
50 52
    private boolean deleteSynonymsIfPossible = true;
51 53

  
52 54
    private boolean deleteMisappliedNames = true;

Also available in: Unified diff