|
||||||||||
| 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.agent.InstitutionalMembership
@Entity public class InstitutionalMembership
This class allows to hold one institution to which a person
is affiliated. It includes time period of membership and role of
the person in this institution. In case one person belongs to several
institutions a corresponding number of instances of InstitutionalMembership
have to be created.
| Field Summary | |
|---|---|
static Logger |
logger
|
| Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
|---|
uuid |
| Constructor Summary | |
|---|---|
protected |
InstitutionalMembership()
|
|
InstitutionalMembership(Institution institute,
Person person,
TimePeriod period,
String department,
String role)
Class constructor using an institution, a person, a time period,
a department name string and a role string. |
| Method Summary | |
|---|---|
Object |
clone()
Clones this InstitutionalMembership. |
String |
getDepartment()
Returns the string representing the name of the department (within the institution involved in this institutional membership) to which
the person belongs. |
Institution |
getInstitute()
Returns the institution corresponding to this institutional membership. |
TimePeriod |
getPeriod()
Returns the time period during which
the person involved in this institutional membership belonged
to the institution also involved in it. |
Person |
getPerson()
Returns the person involved in this institutional membership. |
String |
getRole()
Returns the string representing the role played by the person within
the institution (or within the department) involved
in this institutional membership. |
static InstitutionalMembership |
NewInstance()
|
void |
setDepartment(String department)
|
void |
setInstitute(Institution newInstitute)
Assigns an new institution (replacing the actual one) to this institutional membership. |
void |
setPeriod(TimePeriod period)
|
protected void |
setPerson(Person person)
Assigns a new person (replacing the actual one) to this institutional membership. |
void |
setRole(String role)
|
| 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, toString |
| 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 |
| Field Detail |
|---|
public static final Logger logger
| Constructor Detail |
|---|
protected InstitutionalMembership()
public InstitutionalMembership(Institution institute,
Person person,
TimePeriod period,
String department,
String role)
institution, a person, a time period,
a department name string and a role string.
Adds this membership to the persons memberships.
institute - the institution in which the person is a memberperson - the person who is a member of the institutionperiod - the time period during which the person belonged
to the institutiondepartment - the name string of the department (within the institution)
this person is working inrole - the string which identifies the role played by the person
in the institution (or in the department)Person,
Institution| Method Detail |
|---|
public static InstitutionalMembership NewInstance()
public Person getPerson()
person involved in this institutional membership.
Person.institutionalMemberships,
Person.addInstitutionalMembership(Institution, TimePeriod, String, String)protected void setPerson(Person person)
person (replacing the actual one) to this institutional membership.
This method also updates both sets of institutions
the two persons (the new one and the substituted one) belong to.
newPerson - the new person to be included in this institutional membershipgetPerson(),
Person.removeInstitutionalMembership(InstitutionalMembership)public Institution getInstitute()
institution corresponding to this institutional membership.
public void setInstitute(Institution newInstitute)
newInstitute - the new institutiongetInstitute()public TimePeriod getPeriod()
time period during which
the person involved in this institutional membership belonged
to the institution also involved in it.
public void setPeriod(TimePeriod period)
getPeriod()public String getDepartment()
institution involved in this institutional membership) to which
the person belongs.
public void setDepartment(String department)
getDepartment()public String getRole()
person within
the institution (or within the department) involved
in this institutional membership.
public void setRole(String role)
getRole()public Object clone()
clone in class VersionableEntityVersionableEntity,
Object.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||