Project

General

Profile

« Previous | Next » 

Revision 6d1b9336

Added by Niels Hoffmann about 14 years ago

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/IReferenceBase.java
11 11

  
12 12
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase;
13 13
import eu.etaxonomy.cdm.model.common.IIdentifiableEntity;
14

  
15 14
import eu.etaxonomy.cdm.model.common.IParsable;
16 15
import eu.etaxonomy.cdm.model.common.TimePeriod;
17
import eu.etaxonomy.cdm.strategy.cache.reference.ReferenceBaseDefaultCacheStrategy;
16
import eu.etaxonomy.cdm.strategy.cache.reference.IReferenceBaseCacheStrategy;
18 17
import eu.etaxonomy.cdm.strategy.match.IMatchable;
19 18
import eu.etaxonomy.cdm.strategy.merge.IMergable;
20 19

  
......
42 41
	
43 42
	public TeamOrPersonBase getAuthorTeam();
44 43
	
45
	void setCacheStrategy(ReferenceBaseDefaultCacheStrategy cacheStrategy);
44
	void setCacheStrategy(IReferenceBaseCacheStrategy cacheStrategy);
46 45
	
47 46
	/**
48 47
	 * Returns the Uniform Resource Identifier (URI) corresponding to <i>this</i>
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/ReferenceBase.java
457 457
	public void setTitle(String title){
458 458
		this.title = title;
459 459
	}
460
    
461 460

  
462 461
	/**
463 462
	 * Returns the date (mostly only the year) of publication / creation of
cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/cache/name/NonViralNameDefaultCacheStrategy.java
28 28
import eu.etaxonomy.cdm.model.name.Rank;
29 29
import eu.etaxonomy.cdm.model.reference.INomenclaturalReference;
30 30
import eu.etaxonomy.cdm.model.reference.ReferenceBase;
31
import eu.etaxonomy.cdm.strategy.cache.reference.ReferenceBaseDefaultCacheStrategy;
31 32
import eu.etaxonomy.cdm.strategy.exceptions.UnknownCdmTypeException;
32 33

  
33 34

  
......
237 238
		INomenclaturalReference ref = nonViralName.getNomenclaturalReference();
238 239
		String referenceBaseCache = null;
239 240
		if (ref != null){
240
			INomenclaturalReference nomRef = HibernateProxyHelper.deproxy(ref, INomenclaturalReference.class);
241
			referenceBaseCache = nomRef.getNomenclaturalCitation(microReference);
241
			INomenclaturalReference nomenclaturalReference = HibernateProxyHelper.deproxy(ref, INomenclaturalReference.class);
242
			nomenclaturalReference.setCacheStrategy(nomenclaturalReference.getType().getCacheStrategy());
243
			referenceBaseCache = nomenclaturalReference.getNomenclaturalCitation(microReference);
242 244
		}
243 245
		
244 246
		//make nomenclatural status
cdmlib-model/src/test/java/eu/etaxonomy/cdm/strategy/match/DefaultMatchStrategyTest.java
441 441
	
442 442
	}
443 443
	
444
	@Test
445
	public void testInvokeTeamOrPersonBase(){
446
	
447
	}
448
	
444 449
}

Also available in: Unified diff