Project

General

Profile

Download (2.38 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
import eu.etaxonomy.cdm.strategy.match.IMatchable;
27

    
28

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

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

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

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