|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.etaxonomy.cdm.model.common.CdmBase
eu.etaxonomy.cdm.model.common.VersionableEntity
eu.etaxonomy.cdm.model.common.AnnotatableEntity
eu.etaxonomy.cdm.model.common.IdentifiableEntity<S>
eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity<S>
eu.etaxonomy.cdm.model.agent.AgentBase<INomenclaturalAuthorCacheStrategy<T>>
eu.etaxonomy.cdm.model.agent.TeamOrPersonBase<Person>
eu.etaxonomy.cdm.model.agent.Person
@Entity @Indexed(index="eu.etaxonomy.cdm.model.agent.AgentBase") @Configurable public class Person
This class represents human beings, living or dead.
It includes name parts, contact details, institutional membership,
and other possible information such as life time period,
taxonomic and/or geographical specialization.
For a short abbreviated name the inherited attribute nomenclaturalTitle
is to be used.
For other alternative (string-)names OriginalSource instances must be created
and the inherited attribute originalNameString must be used.
This class corresponds to:
| Field Summary | |
|---|---|
protected Set<InstitutionalMembership> |
institutionalMemberships
|
static Logger |
logger
|
| Fields inherited from class eu.etaxonomy.cdm.model.agent.TeamOrPersonBase |
|---|
isGeneratingTitleCache, nomenclaturalTitle |
| Fields inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity |
|---|
cacheStrategy, NOT_PROTECTED, PROTECTED, protectedTitleCache, titleCache |
| Fields inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity |
|---|
annotations, markers |
| Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
|---|
uuid |
| Constructor Summary | |
|---|---|
protected |
Person()
Class constructor. |
|
Person(String firstname,
String lastname,
String nomenclaturalTitel)
Class constructor using a "forenames" string (including initials), a surname (family name) and an abbreviated name as used in nomenclature. |
| Method Summary | |
|---|---|
protected void |
addInstitutionalMembership(InstitutionalMembership ims)
|
InstitutionalMembership |
addInstitutionalMembership(Institution institution,
TimePeriod period,
String department,
String role)
Adds a new membership of this person in an institution
to the set of his institution memberships. |
Object |
clone()
Clones this Person. |
String |
getFirstname()
Returns the string representing the given name or forename (for instance "John") of this person. |
Set<InstitutionalMembership> |
getInstitutionalMemberships()
Returns the set of institution memberships corresponding to this person. |
String |
getLastname()
Returns the string representing the hereditary name (surname or family name) (for instance "Smith") of this person. |
TimePeriod |
getLifespan()
Returns the period of time
in which this person was alive (life span). |
String |
getPrefix()
Returns the string representing the prefix (for instance "Prof. Dr.") to this person's name. |
String |
getSuffix()
Returns the string representing the suffix (for instance "Junior") of this person's name. |
static Person |
NewInstance()
Creates a new empty instance for a person whose existence is all what is known. |
static Person |
NewTitledInstance(String titleCache)
Creates a new instance for a person for whom an "identification" string is all what is known. |
void |
removeInstitutionalMembership(InstitutionalMembership ims)
Removes one element from the set of institutional memberships of this person. |
void |
setFirstname(String firstname)
|
void |
setLastname(String lastname)
|
void |
setLifespan(TimePeriod lifespan)
|
void |
setPrefix(String prefix)
|
void |
setSuffix(String suffix)
|
| Methods inherited from class eu.etaxonomy.cdm.model.agent.TeamOrPersonBase |
|---|
getNomenclaturalTitle, getTitleCache, replaceEmptyTitleByNomTitle, setNomenclaturalTitle |
| Methods inherited from class eu.etaxonomy.cdm.model.agent.AgentBase |
|---|
addAddress, addAddress, addEmailAddress, addFaxNumber, addPhoneNumber, addUrl, getAddresses, getContact, getEmailAddresses, getFaxNumbers, getPhoneNumbers, getUrls, removeAddress, removeEmailAddress, removeFaxNumber, removePhoneNumber, removeUrl, setContact |
| Methods inherited from class eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity |
|---|
addMedia, getMedia, removeMedia |
| Methods inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity |
|---|
addCredit, addCredit, addExtension, addExtension, addRights, addSource, addSource, compareTo, generateTitle, getCacheStrategy, getCredits, getCredits, getData, getExtensions, getExtensions, getExtensions, getLsid, getRights, getSources, getTruncatedCache, initListener, isProtectedTitleCache, regenerateTitleCache, removeCredit, removeCredit, removeExtension, removeRights, removeSource, setCacheStrategy, setLsid, setProtectedTitleCache, setTitleCache, setTitleCache, toString |
| Methods inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity |
|---|
addAnnotation, addMarker, getAnnotations, getMarkers, hasMarker, hasMarker, removeAnnotation, removeMarker |
| Methods inherited from class eu.etaxonomy.cdm.model.common.VersionableEntity |
|---|
equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy |
| Methods inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
|---|
addPropertyChangeListener, addPropertyChangeListener, clone, deproxy, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUuid, hashCode, hasListeners, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isInstanceOf, removePropertyChangeListener, removePropertyChangeListener, setCreated, setCreatedBy, setId, setUuid |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.ICdmBase |
|---|
getCreated, getCreatedBy, getId, getUuid, setCreated, setCreatedBy, setId, setUuid |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.IAnnotatableEntity |
|---|
addAnnotation, addMarker, getAnnotations, getMarkers, hasMarker, hasMarker, removeAnnotation, removeMarker |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.IVersionableEntity |
|---|
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy |
| Field Detail |
|---|
public static final Logger logger
protected Set<InstitutionalMembership> institutionalMemberships
| Constructor Detail |
|---|
protected Person()
Person(String, String, String)
public Person(String firstname,
String lastname,
String nomenclaturalTitel)
nomenclaturalTitle
is used.
firstname - the given namelastname - the hereditary namenomenclaturalTitel - the abbreviated namePerson(),
NewInstance()| Method Detail |
|---|
public static Person NewInstance()
PersonDefaultCacheStrategy.
public static Person NewTitledInstance(String titleCache)
titleCache
attribute and should not be overwritten by the generateTitle method
the protectedTitleCache flag will be turned on.
public Set<InstitutionalMembership> getInstitutionalMemberships()
institution memberships corresponding to this person.
InstitutionalMembershipprotected void addInstitutionalMembership(InstitutionalMembership ims)
public InstitutionalMembership addInstitutionalMembership(Institution institution,
TimePeriod period,
String department,
String role)
membership of this person in an institution
to the set of his institution memberships.
This method also creates a new institutional membership instance.
institution - the institution this person belongs toperiod - the time period for which this person has been a member of the institutiondepartment - the string label for the department this person belongs to,
within the institutionrole - the string label for the persons's role within the department or institutiongetInstitutionalMemberships(),
InstitutionalMembership.InstitutionalMembership(Institution, Person, TimePeriod, String, String)public void removeInstitutionalMembership(InstitutionalMembership ims)
ims - the institutional membership of this person which should be deletedgetInstitutionalMemberships()public String getPrefix()
public void setPrefix(String prefix)
getPrefix()public String getFirstname()
public void setFirstname(String firstname)
getFirstname()public String getLastname()
public void setLastname(String lastname)
getLastname()public String getSuffix()
public void setSuffix(String suffix)
getSuffix()public TimePeriod getLifespan()
period of time
in which this person was alive (life span).
The general form is birth date - death date
(XXXX - YYYY; XXXX - or - YYYY as appropriate),
but a simple flourished date (fl. XXXX) is also possible
if that is all what is known.
TimePeriodpublic void setLifespan(TimePeriod lifespan)
getLifespan()public Object clone()
clone in class IdentifiableMediaEntity<INomenclaturalAuthorCacheStrategy<Person>>IdentifiableMediaEntity.clone(),
Object.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||