Project

General

Profile

Download (2.33 KB) Statistics
| Branch: | Tag: | Revision:
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
import org.hibernate.search.annotations.Field;
22
import org.hibernate.search.annotations.Index;
23
import org.hibernate.search.annotations.Indexed;
24

    
25
import eu.etaxonomy.cdm.strategy.cache.agent.INomenclaturalAuthorCacheStrategy;
26

    
27

    
28
/**
29
 * The abstract class for such {@link AgentBase agents} ({@link Person persons} or {@link Team teams}) who might also be used
30
 * for authorship of {@link eu.etaxonomy.cdm.model.reference.ReferenceBase references} or of {@link eu.etaxonomy.cdm.model.name.TaxonNameBase taxon names}.
31
 * 
32
 * @author a.mueller
33
 * @version 1.0
34
 * @created 17-APR-2008
35
 */
36
@XmlAccessorType(XmlAccessType.FIELD)
37
@XmlType(name = "TeamOrPersonBase", propOrder = {
38
	"nomenclaturalTitle"
39
})
40
@Entity
41
@Indexed(index = "eu.etaxonomy.cdm.model.agent.AgentBase")
42
@Audited
43
public abstract class TeamOrPersonBase<T extends TeamOrPersonBase<?>> extends AgentBase<INomenclaturalAuthorCacheStrategy<T>> implements INomenclaturalAuthor {
44
	private static final long serialVersionUID = 5216821307314001961L;
45
	public static final Logger logger = Logger.getLogger(TeamOrPersonBase.class);
46

    
47
	@XmlElement(name="NomenclaturalTitle")
48
	@Field(index=Index.TOKENIZED)
49
	protected String nomenclaturalTitle;
50

    
51
	/**
52
	 * Returns the identification string (nomenclatural abbreviation) used in
53
	 * nomenclature for this {@link Person person} or this {@link Team team}.
54
	 * 
55
	 * @see  INomenclaturalAuthor#getNomenclaturalTitle()
56
	 */
57
	public String getNomenclaturalTitle() {
58
		return nomenclaturalTitle;
59
	}
60

    
61
	/** 
62
	 * @see     #getNomenclaturalTitle()
63
	 */
64
	public void setNomenclaturalTitle(String nomenclaturalTitle) {
65
		this.nomenclaturalTitle = nomenclaturalTitle;
66
	}
67
}
(10-10/12)