@Entity public class InstitutionalMembership extends VersionableEntity implements java.lang.Cloneable
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.Modifier and Type | Field and Description |
---|---|
static Logger |
logger |
CLOB_LENGTH, uuid
Modifier | Constructor and Description |
---|---|
protected |
InstitutionalMembership() |
|
InstitutionalMembership(Institution institute,
Person person,
TimePeriod period,
java.lang.String department,
java.lang.String role)
Class constructor using an
institution , a person , a time period ,
a department name string and a role string. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones this InstitutionalMembership.
|
java.lang.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. |
java.lang.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(java.lang.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(java.lang.String role) |
cloneLanguageString, equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
addPropertyChangeListener, addPropertyChangeListener, addToSetWithChangeEvent, deproxy, deproxy, fireOnCreateEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUserFriendlyDescription, getUserFriendlyFieldName, getUserFriendlyTypeName, getUuid, hashCode, hasListeners, initListener, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isBlank, isInstanceOf, isNotBlank, isPersited, removeFromSetWithChangeEvent, removePropertyChangeListener, removePropertyChangeListener, replaceInList, setCreated, setCreatedBy, setId, setNewEntityListener, setUuid, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getCreated, getCreatedBy, getId, getUuid, isInstanceOf, isPersited, setCreated, setCreatedBy, setId, setUuid
public static final Logger logger
protected InstitutionalMembership()
public InstitutionalMembership(Institution institute, Person person, TimePeriod period, java.lang.String department, java.lang.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
public static InstitutionalMembership NewInstance()
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 java.lang.String getDepartment()
institution
involved in this institutional membership) to which
the person
belongs.public void setDepartment(java.lang.String department)
getDepartment()
public java.lang.String getRole()
person
within
the institution
(or within the department) involved
in this institutional membership.public void setRole(java.lang.String role)
getRole()
public java.lang.Object clone()
clone
in class VersionableEntity
VersionableEntity
,
Object.clone()
Copyright © 2007-2020 EDIT. All Rights Reserved.