edu.nrao.sss.model.user
Class Contact

java.lang.Object
  extended by edu.nrao.sss.model.user.ObjectId
      extended by edu.nrao.sss.model.user.Contact
All Implemented Interfaces:
XMLable, Serializable
Direct Known Subclasses:
Address, Email, Fax, Phone, URL

public abstract class Contact
extends ObjectId
implements XMLable

See Also:
Serialized Form

Nested Class Summary
static class Contact.ContactType
           
 
Field Summary
protected  Contact.ContactType contactType
           
 
Constructor Summary
Contact()
           
Contact(Contact contact)
           
 
Method Summary
 void copy(Contact contact)
           
 void copy(edu.nrao.sss.model.user.UpdateDetails updateDetails)
           
 String getContactDescription()
           
 Contact.ContactType getContactType()
           
 String getEncodedId()
           
 int getUpdatedBy()
           
 Date getUpdatedOn()
           
 boolean isDefaultContact()
           
 void set(Contact contact)
           
 void setContactDescription(String contactDescription)
           
 void setDefaultContact(boolean defaultContact)
           
 void setUpdatedBy(int updatedBy)
           
 void setUpdatedOn(Date updatedOn)
           
 String toXML()
          Provide an XML description of the object.
 
Methods inherited from class edu.nrao.sss.model.user.ObjectId
equals, getId, hashCode, isNew, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contactType

protected Contact.ContactType contactType
Constructor Detail

Contact

public Contact()

Contact

public Contact(Contact contact)
Method Detail

copy

public void copy(Contact contact)

set

public void set(Contact contact)

getContactDescription

public String getContactDescription()

isDefaultContact

public boolean isDefaultContact()

setContactDescription

public void setContactDescription(String contactDescription)

setDefaultContact

public void setDefaultContact(boolean defaultContact)

toXML

public String toXML()
Description copied from interface: XMLable
Provide an XML description of the object.

Specified by:
toXML in interface XMLable
Returns:
a String representing the XML of the object.

getContactType

public Contact.ContactType getContactType()

getEncodedId

public String getEncodedId()

getUpdatedBy

public int getUpdatedBy()

getUpdatedOn

public Date getUpdatedOn()

copy

public void copy(edu.nrao.sss.model.user.UpdateDetails updateDetails)

setUpdatedBy

public void setUpdatedBy(int updatedBy)
                  throws IllegalArgumentException
Throws:
IllegalArgumentException

setUpdatedOn

public void setUpdatedOn(Date updatedOn)
                  throws NullPointerException
Throws:
NullPointerException


Copyright © 2009. All Rights Reserved.