1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.cdm.model.agent;
|
10
|
|
11
|
import javax.persistence.Entity;
|
12
|
import javax.persistence.Transient;
|
13
|
import javax.xml.bind.annotation.XmlAccessType;
|
14
|
import javax.xml.bind.annotation.XmlAccessorType;
|
15
|
import javax.xml.bind.annotation.XmlElement;
|
16
|
import javax.xml.bind.annotation.XmlTransient;
|
17
|
import javax.xml.bind.annotation.XmlType;
|
18
|
|
19
|
import org.apache.log4j.Logger;
|
20
|
import org.hibernate.envers.Audited;
|
21
|
|
22
|
import eu.etaxonomy.cdm.strategy.cache.agent.INomenclaturalAuthorCacheStrategy;
|
23
|
|
24
|
|
25
|
/**
|
26
|
* The abstract class for such {@link AgentBase agents} ({@link Person persons} or {@link Team teams}) who might also be used
|
27
|
* for authorship of {@link eu.etaxonomy.cdm.model.reference.ReferenceBase references} or of {@link eu.etaxonomy.cdm.model.name.TaxonNameBase taxon names}.
|
28
|
*
|
29
|
* @author a.mueller
|
30
|
* @version 1.0
|
31
|
* @created 17-APR-2008
|
32
|
*/
|
33
|
@XmlAccessorType(XmlAccessType.FIELD)
|
34
|
@XmlType(name = "TeamOrPersonBase", propOrder = {
|
35
|
"nomenclaturalTitle"
|
36
|
})
|
37
|
@Entity
|
38
|
@Audited
|
39
|
public abstract class TeamOrPersonBase<T extends TeamOrPersonBase<?>> extends AgentBase implements INomenclaturalAuthor {
|
40
|
private static final long serialVersionUID = 5216821307314001961L;
|
41
|
public static final Logger logger = Logger.getLogger(TeamOrPersonBase.class);
|
42
|
|
43
|
@XmlElement(name="NomenclaturalTitle")
|
44
|
protected String nomenclaturalTitle;
|
45
|
|
46
|
@XmlTransient
|
47
|
@Transient
|
48
|
protected INomenclaturalAuthorCacheStrategy<T> cacheStrategy;
|
49
|
|
50
|
/**
|
51
|
* Returns the identification string (nomenclatural abbreviation) used in
|
52
|
* nomenclature for this {@link Person person} or this {@link Team team}.
|
53
|
*
|
54
|
* @see INomenclaturalAuthor#getNomenclaturalTitle()
|
55
|
*/
|
56
|
public String getNomenclaturalTitle() {
|
57
|
return nomenclaturalTitle;
|
58
|
}
|
59
|
|
60
|
/**
|
61
|
* @see #getNomenclaturalTitle()
|
62
|
*/
|
63
|
public void setNomenclaturalTitle(String nomenclaturalTitle) {
|
64
|
this.nomenclaturalTitle = nomenclaturalTitle;
|
65
|
}
|
66
|
|
67
|
}
|