gov.nih.nci.mageom.domain.AuditAndSecurity.impl
Class PersonImpl

java.lang.Object
  extended by gov.nih.nci.mageom.domain.impl.MAGEOMObject
      extended by gov.nih.nci.mageom.domain.impl.ExtendableImpl
          extended by gov.nih.nci.mageom.domain.impl.DescribableImpl
              extended by gov.nih.nci.mageom.domain.impl.IdentifiableImpl
                  extended by gov.nih.nci.mageom.domain.AuditAndSecurity.impl.ContactImpl
                      extended by gov.nih.nci.mageom.domain.AuditAndSecurity.impl.PersonImpl
All Implemented Interfaces:
Contact, Person, Describable, Extendable, Identifiable, java.io.Serializable

public class PersonImpl
extends ContactImpl
implements Person

A person for which the attributes are self describing.

Version:
%I%, %G%
See Also:
Serialized Form

Field Summary
protected  Organization affiliation
          DOCUMENT ME
protected  java.lang.Long affiliationId
          The internal ID of the associated affiliation object.
protected static java.util.ArrayList allAssociationMethods
           
protected static java.util.Hashtable associationMethods
           
protected  java.lang.String firstName
          DOCUMENT ME
protected  java.lang.String lastName
          DOCUMENT ME
protected  java.lang.String midInitials
          DOCUMENT ME
 
Fields inherited from class gov.nih.nci.mageom.domain.AuditAndSecurity.impl.ContactImpl
address, email, fax, phone, roles, rolesCount, tollFreePhone, URI
 
Fields inherited from class gov.nih.nci.mageom.domain.impl.IdentifiableImpl
identifier, name
 
Fields inherited from class gov.nih.nci.mageom.domain.impl.DescribableImpl
auditTrail, auditTrailCount, descriptions, descriptionsCount, security, securityId
 
Fields inherited from class gov.nih.nci.mageom.domain.impl.ExtendableImpl
propertySets, propertySetsCount, securedElementId
 
Constructor Summary
PersonImpl()
          Default constructor
 
Method Summary
 Organization getAffiliation()
          Returns the value of this Person object's affiliation attribute.
 java.lang.String getFirstName()
          Returns the value of this Person object's firstName attribute.
 java.lang.String getLastName()
          Returns the value of this Person object's lastName attribute.
 java.lang.String getMidInitials()
          Returns the value of this Person object's midInitials attribute.
 java.util.Hashtable getXMLMethodDescriptors()
          Returns a Hashtable containing XMLMethodDescriptors descriptors of the association methods of this object.
protected  void init()
           
 Person[] searchPersons(PersonSearchCriteria criteria)
          Returns an array of Person objects that satisfy the given PersonSearchCriteria.
 void setAffiliation(Organization p_affiliation)
          Sets the affiliation attribute.
 void setFirstName(java.lang.String p_firstName)
          Sets the firstName attribute.
 void setLastName(java.lang.String p_lastName)
          Sets the lastName attribute.
 void setMidInitials(java.lang.String p_midInitials)
          Sets the midInitials attribute.
 java.lang.String toString()
          Returns a String representation of this object suitable for console display.
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
           
 org.w3c.dom.Element toXMLDoc(org.w3c.dom.Document doc)
           
 org.w3c.dom.Element toXMLProcessor(org.w3c.dom.Document doc, java.util.ArrayList fillOutValues)
          Returns an XML representation of the object.
 
Methods inherited from class gov.nih.nci.mageom.domain.AuditAndSecurity.impl.ContactImpl
getAddress, getEmail, getFax, getPhone, getRoles, getRolesCount, getTollFreePhone, getURI, searchContacts, setAddress, setEmail, setFax, setPhone, setRoles, setTollFreePhone, setURI
 
Methods inherited from class gov.nih.nci.mageom.domain.impl.IdentifiableImpl
getIdentifier, getName, searchIdentifiables, setIdentifier, setName
 
Methods inherited from class gov.nih.nci.mageom.domain.impl.DescribableImpl
getAuditTrail, getAuditTrailCount, getDescriptions, getDescriptionsCount, getSecurity, searchDescribables, setAuditTrail, setDescriptions, setSecurity
 
Methods inherited from class gov.nih.nci.mageom.domain.impl.ExtendableImpl
getPropertySets, getPropertySetsCount, getSecuredElementId, searchExtendables, setPropertySets, setSecuredElementId
 
Methods inherited from class gov.nih.nci.mageom.domain.impl.MAGEOMObject
getId, getIsEditable, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.nih.nci.mageom.domain.AuditAndSecurity.Contact
getAddress, getEmail, getFax, getPhone, getRoles, getTollFreePhone, getURI, setAddress, setEmail, setFax, setPhone, setRoles, setTollFreePhone, setURI
 
Methods inherited from interface gov.nih.nci.mageom.domain.Identifiable
getIdentifier, getName, setIdentifier, setName
 
Methods inherited from interface gov.nih.nci.mageom.domain.Describable
getAuditTrail, getDescriptions, getSecurity, setAuditTrail, setDescriptions, setSecurity
 
Methods inherited from interface gov.nih.nci.mageom.domain.Extendable
getPropertySets, setPropertySets
 

Field Detail

allAssociationMethods

protected static java.util.ArrayList allAssociationMethods

associationMethods

protected static java.util.Hashtable associationMethods

lastName

protected java.lang.String lastName
DOCUMENT ME


firstName

protected java.lang.String firstName
DOCUMENT ME


midInitials

protected java.lang.String midInitials
DOCUMENT ME


affiliation

protected Organization affiliation
DOCUMENT ME


affiliationId

protected java.lang.Long affiliationId
The internal ID of the associated affiliation object.

Constructor Detail

PersonImpl

public PersonImpl()
Default constructor

Method Detail

init

protected void init()
Overrides:
init in class ContactImpl

searchPersons

public Person[] searchPersons(PersonSearchCriteria criteria)
                       throws gov.nih.nci.common.search.SearchException
Returns an array of Person objects that satisfy the given PersonSearchCriteria.

Parameters:
criteria - The PersonSearchCriteria which represents a query for Person objects.
Returns:
An array of Person objects.
Throws:
A - gov.nih.nci.common.search.SearchException if there is a problem searching.
gov.nih.nci.common.search.SearchException

setLastName

public void setLastName(java.lang.String p_lastName)
Sets the lastName attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a Person object.

Specified by:
setLastName in interface Person
Parameters:
p_lastName - The new value for lastName.
See Also:
Person.getLastName()

getLastName

public java.lang.String getLastName()
Description copied from interface: Person
Returns the value of this Person object's lastName attribute. Description of lastName: DOCUMENT ME!

Specified by:
getLastName in interface Person
Returns:
String The value of lastName.
See Also:
Person.getLastName()

setFirstName

public void setFirstName(java.lang.String p_firstName)
Sets the firstName attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a Person object.

Specified by:
setFirstName in interface Person
Parameters:
p_firstName - The new value for firstName.
See Also:
Person.getFirstName()

getFirstName

public java.lang.String getFirstName()
Description copied from interface: Person
Returns the value of this Person object's firstName attribute. Description of firstName: DOCUMENT ME!

Specified by:
getFirstName in interface Person
Returns:
String The value of firstName.
See Also:
Person.getFirstName()

setMidInitials

public void setMidInitials(java.lang.String p_midInitials)
Sets the midInitials attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a Person object.

Specified by:
setMidInitials in interface Person
Parameters:
p_midInitials - The new value for midInitials.
See Also:
Person.getMidInitials()

getMidInitials

public java.lang.String getMidInitials()
Description copied from interface: Person
Returns the value of this Person object's midInitials attribute. Description of midInitials: DOCUMENT ME!

Specified by:
getMidInitials in interface Person
Returns:
String The value of midInitials.
See Also:
Person.getMidInitials()

setAffiliation

public void setAffiliation(Organization p_affiliation)
Sets the affiliation attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a Person object.

Specified by:
setAffiliation in interface Person
Parameters:
p_affiliation - The new value for affiliation.
See Also:
Person.getAffiliation()

getAffiliation

public Organization getAffiliation()
Description copied from interface: Person
Returns the value of this Person object's affiliation attribute.

Specified by:
getAffiliation in interface Person
Returns:
gov.nih.nci.mageom.bean.AuditAndSecurity.Organization The value of affiliation.
See Also:
Person.getAffiliation()

toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
Overrides:
toXML in class ContactImpl

toXMLDoc

public org.w3c.dom.Element toXMLDoc(org.w3c.dom.Document doc)
Overrides:
toXMLDoc in class ContactImpl

toXMLProcessor

public org.w3c.dom.Element toXMLProcessor(org.w3c.dom.Document doc,
                                          java.util.ArrayList fillOutValues)
Returns an XML representation of the object. The document is not modified.

Overrides:
toXMLProcessor in class ContactImpl
Parameters:
doc - the working document
fillOutValues - a list of attribute names that should have full XML for their values.
Returns:
org.w3c.dom.Element an XML representation

getXMLMethodDescriptors

public java.util.Hashtable getXMLMethodDescriptors()
Returns a Hashtable containing XMLMethodDescriptors descriptors of the association methods of this object.

Overrides:
getXMLMethodDescriptors in class ContactImpl
Returns:
Hashtable The Hashtable of descriptors.

toString

public java.lang.String toString()
Returns a String representation of this object suitable for console display.

Overrides:
toString in class ContactImpl
Returns:
the String representation.