gov.nih.nci.caarray.domain.contact
Class Person

java.lang.Object
  extended by gov.nih.nci.caarray.domain.AbstractCaArrayObject
      extended by gov.nih.nci.caarray.domain.AbstractCaArrayEntity
          extended by gov.nih.nci.caarray.domain.contact.AbstractContact
              extended by gov.nih.nci.caarray.domain.contact.Person
All Implemented Interfaces:
com.fiveamsolutions.nci.commons.data.persistent.PersistentObject, java.io.Serializable

public class Person
extends AbstractContact

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity
CAARRAY_LSID_AUTHORITY, CAARRAY_LSID_NAMESPACE
 
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
DEFAULT_BATCH_SIZE, DEFAULT_STRING_COLUMN_SIZE, LARGE_TEXT_FIELD_LENGTH
 
Constructor Summary
Person()
          Default constructor.
Person(gov.nih.nci.security.authorization.domainobjects.User user)
          Constructor for a Person based on a CSM User instance.
 
Method Summary
 boolean equals(java.lang.Object object)
          The default comparison uses the id.
 java.util.Set<Organization> getAffiliations()
          Gets the affiliations.
 java.lang.String getFirstName()
          Gets the firstName.
 java.lang.String getLastName()
          Gets the lastName.
 java.lang.String getMiddleInitials()
          Gets the middleInitials.
 java.lang.String getName()
           
 int hashCode()
          Default hashCode goes off of id.
 void setFirstName(java.lang.String firstNameVal)
          Sets the firstName.
 void setLastName(java.lang.String lastNameVal)
          Sets the lastName.
 void setMiddleInitials(java.lang.String middleInitialsVal)
          Sets the middleInitials.
 java.lang.String toString()
          
 
Methods inherited from class gov.nih.nci.caarray.domain.contact.AbstractContact
getAddress, getEmail, getFax, getPhone, getUrl, setAddress, setEmail, setFax, setPhone, setUrl
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity
getLsid, getLsidAuthority, getLsidNamespace, getLsidObjectId, setLsid, setLsid, setLsidForEntity
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
getCaBigId, getId, getPostLoadSecurityPolicies, getRemoteApiSecurityPolicies, setCaBigId, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Person

public Person()
Default constructor.


Person

public Person(gov.nih.nci.security.authorization.domainobjects.User user)
Constructor for a Person based on a CSM User instance.

Parameters:
user - the user from which to copy name and contact properties
Method Detail

getFirstName

@Length(max=254)
public java.lang.String getFirstName()
Gets the firstName.

Returns:
the firstName

setFirstName

public void setFirstName(java.lang.String firstNameVal)
Sets the firstName.

Parameters:
firstNameVal - the firstName

getLastName

@Length(max=254)
public java.lang.String getLastName()
Gets the lastName.

Returns:
the lastName

setLastName

public void setLastName(java.lang.String lastNameVal)
Sets the lastName.

Parameters:
lastNameVal - the lastName

getMiddleInitials

@Length(max=254)
public java.lang.String getMiddleInitials()
Gets the middleInitials.

Returns:
the middleInitials

setMiddleInitials

public void setMiddleInitials(java.lang.String middleInitialsVal)
Sets the middleInitials.

Parameters:
middleInitialsVal - the middleInitials

getAffiliations

public java.util.Set<Organization> getAffiliations()
Gets the affiliations.

Returns:
the affiliations

getName

public java.lang.String getName()
Returns:
the Person's full name

toString

public java.lang.String toString()

Overrides:
toString in class AbstractContact

equals

public boolean equals(java.lang.Object object)
The default comparison uses the id.

Overrides:
equals in class AbstractContact
Parameters:
object - other object
Returns:
equal or not

hashCode

public int hashCode()
Default hashCode goes off of id.

Overrides:
hashCode in class AbstractContact
Returns:
hashCode