Project

General

Profile

« Previous | Next » 

Revision 892efc69

Added by Andreas Kohlbecker almost 14 years ago

merging /branches/cdmlib/SPRINT-Chichorieae1/ to trunk

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/cache/name/BotanicNameDefaultCacheStrategy.java
11 11
import java.util.UUID;
12 12

  
13 13
import org.apache.log4j.Logger;
14

  
15
import eu.etaxonomy.cdm.common.CdmUtils;
16
import eu.etaxonomy.cdm.model.agent.INomenclaturalAuthor;
14 17
import eu.etaxonomy.cdm.model.name.BotanicalName;
15 18

  
16 19
/**
......
33 36
		return new BotanicNameDefaultCacheStrategy();
34 37
	}
35 38
	
39
	/**
40
	 * Returns the AuthorCache part for a combination of an author and an ex author. This applies on combination authors
41
	 * as well as on basionym/orginal combination authors.
42
	 * @param author the author
43
	 * @param exAuthor the ex-author
44
	 * @return
45
	 */
46
	protected String getAuthorAndExAuthor(INomenclaturalAuthor author, INomenclaturalAuthor exAuthor){
47
		String result = "";
48
		String authorString = "";
49
		String exAuthorString = "";
50
		if (author != null){
51
			authorString = CdmUtils.Nz(author.getNomenclaturalTitle());
52
		}
53
		if (exAuthor != null){
54
			authorString += ExAuthorSeperator;
55
			exAuthorString = CdmUtils.Nz(exAuthor.getNomenclaturalTitle());
56
		}
57
		
58
		result = authorString + exAuthorString;
59
		return result;
60
 
61
	}
62
	
36 63
}

Also available in: Unified diff