lib.jGroupware.contacts
Class Contact

java.lang.Object
  extended bylib.jGroupware.contacts.Contact

public class Contact
extends java.lang.Object

Bean to represent a person or business in the addressbook

Author:
Gareth Webber

Constructor Summary
Contact(int id)
          Constructor for the Contact object
Contact(int id, boolean status)
          Constructor for the Contact object Used when appending records
 
Method Summary
 java.lang.String getAddress1()
          Getter for property address1.
 java.lang.String getAddress2()
          Getter for property address2.
 java.util.Date getBirthDate()
          Getter for property birthDate.
 java.lang.String getCity()
          Getter for property city.
 java.lang.String getCountry()
          Getter for property country.
 java.lang.String getDebugOutput()
          Returns the object contents in a human readable form
 java.lang.String getFax()
          Getter for property fax.
 java.lang.String getFirstname()
          Getter for property firstname.
 java.lang.String getHomeEmail()
          Getter for property homeEmail.
 java.lang.String getHomePage()
          Getter for property homePage.
 java.lang.String getHomePhone()
          Getter for property homePhone.
 int getId()
          Getter for property Id.
 java.lang.String getJobTitle()
          Getter for property jobTitle.
 java.lang.String getMobilePhone()
          Getter for property mobilePhone.
 int getOwnerID()
          Getter for property ownerId.
 java.lang.String getPostcode()
          Getter for property postcode.
 java.lang.String getRegion()
          Getter for property region.
 boolean getShareDetails()
          Getter for property shareDetails.
 java.lang.String getSuffix()
          Getter for property suffix.
 java.lang.String getSurname()
          Getter for property surname.
 java.lang.String getTitle()
          Getter for property title.
 java.lang.String getWorkEmail()
          Getter for property workEmail.
 java.lang.String getWorkPhone()
          Getter for property workPhone.
 boolean isContactUpdated()
          Getter for property contactUpdated.
 void setAddress1(java.lang.String address1)
          Setter for property address1.
 void setAddress2(java.lang.String address2)
          Setter for property address2.
 void setBirthDate(java.util.Date birthDate)
          Setter for property birthDate.
 void setCity(java.lang.String city)
          Setter for property city.
 void setContactUpdated(boolean contactUpdated)
          Setter for property contactUpdated.
 void setCountry(java.lang.String country)
          Setter for property country.
 void setFax(java.lang.String fax)
          Setter for property fax.
 void setFirstname(java.lang.String firstname)
          Setter for property firstname.
 void setHomeEmail(java.lang.String homeEmail)
          Setter for property homeEmail.
 void setHomePage(java.lang.String homePage)
          Setter for property homePage.
 void setHomePhone(java.lang.String homePhone)
          Setter for property homePhone.
 void setId(int id)
           
 void setJobTitle(java.lang.String jobTitle)
          Setter for property jobTitle.
 void setMobilePhone(java.lang.String mobilePhone)
          Setter for property mobilePhone.
 void setOwnerID(int ownerID)
           
 void setPostcode(java.lang.String postcode)
          Setter for property postcode.
 void setRegion(java.lang.String region)
          Setter for property region.
 void setShareDetails(boolean shareDetails)
          Setter for property shareDetails.
 void setSuffix(java.lang.String suffix)
          Setter for property suffix.
 void setSurname(java.lang.String surname)
          Setter for property surname.
 void setTitle(java.lang.String title)
          Setter for property title.
 void setWorkEmail(java.lang.String workEmail)
          Setter for property workEmail.
 void setWorkPhone(java.lang.String workPhone)
          Setter for property workPhone.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Contact

public Contact(int id)
Constructor for the Contact object

Parameters:
id - Database primary key

Contact

public Contact(int id,
               boolean status)
Constructor for the Contact object Used when appending records

Parameters:
id - Database primary key
status - Set this to true is you are inserting a new Contact into an address book
Method Detail

getDebugOutput

public java.lang.String getDebugOutput()
Returns the object contents in a human readable form

Returns:
String containing object contents

getId

public int getId()
Getter for property Id.

Returns:
Value of property Id.

setId

public void setId(int id)

getTitle

public java.lang.String getTitle()
Getter for property title.

Returns:
Value of property title.

setTitle

public void setTitle(java.lang.String title)
Setter for property title.

Parameters:
title - New value of property title.

getFirstname

public java.lang.String getFirstname()
Getter for property firstname.

Returns:
Value of property firstname.

setFirstname

public void setFirstname(java.lang.String firstname)
Setter for property firstname.

Parameters:
firstname - New value of property firstname.

getSurname

public java.lang.String getSurname()
Getter for property surname.

Returns:
Value of property surname.

setSurname

public void setSurname(java.lang.String surname)
Setter for property surname.

Parameters:
surname - New value of property surname.

getSuffix

public java.lang.String getSuffix()
Getter for property suffix.

Returns:
Value of property suffix.

setSuffix

public void setSuffix(java.lang.String suffix)
Setter for property suffix.

Parameters:
suffix - New value of property suffix.

getBirthDate

public java.util.Date getBirthDate()
Getter for property birthDate.

Returns:
Value of property birthDate.

setBirthDate

public void setBirthDate(java.util.Date birthDate)
Setter for property birthDate.

Parameters:
birthDate - New value of property birthDate.

getJobTitle

public java.lang.String getJobTitle()
Getter for property jobTitle.

Returns:
Value of property jobTitle.

setJobTitle

public void setJobTitle(java.lang.String jobTitle)
Setter for property jobTitle.

Parameters:
jobTitle - New value of property jobTitle.

getAddress1

public java.lang.String getAddress1()
Getter for property address1.

Returns:
Value of property address1.

setAddress1

public void setAddress1(java.lang.String address1)
Setter for property address1.

Parameters:
address1 - New value of property address1.

getAddress2

public java.lang.String getAddress2()
Getter for property address2.

Returns:
Value of property address2.

setAddress2

public void setAddress2(java.lang.String address2)
Setter for property address2.

Parameters:
address2 - New value of property address2.

getCity

public java.lang.String getCity()
Getter for property city.

Returns:
Value of property city.

setCity

public void setCity(java.lang.String city)
Setter for property city.

Parameters:
city - New value of property city.

getPostcode

public java.lang.String getPostcode()
Getter for property postcode.

Returns:
Value of property postcode.

setPostcode

public void setPostcode(java.lang.String postcode)
Setter for property postcode.

Parameters:
postcode - New value of property postcode.

getRegion

public java.lang.String getRegion()
Getter for property region.

Returns:
Value of property region.

setRegion

public void setRegion(java.lang.String region)
Setter for property region.

Parameters:
region - New value of property region.

getCountry

public java.lang.String getCountry()
Getter for property country.

Returns:
Value of property country.

setCountry

public void setCountry(java.lang.String country)
Setter for property country.

Parameters:
country - New value of property country.

getHomePhone

public java.lang.String getHomePhone()
Getter for property homePhone.

Returns:
Value of property homePhone.

setHomePhone

public void setHomePhone(java.lang.String homePhone)
Setter for property homePhone.

Parameters:
homePhone - New value of property homePhone.

getWorkPhone

public java.lang.String getWorkPhone()
Getter for property workPhone.

Returns:
Value of property workPhone.

setWorkPhone

public void setWorkPhone(java.lang.String workPhone)
Setter for property workPhone.

Parameters:
workPhone - New value of property workPhone.

getMobilePhone

public java.lang.String getMobilePhone()
Getter for property mobilePhone.

Returns:
Value of property mobilePhone.

setMobilePhone

public void setMobilePhone(java.lang.String mobilePhone)
Setter for property mobilePhone.

Parameters:
mobilePhone - New value of property mobilePhone.

getFax

public java.lang.String getFax()
Getter for property fax.

Returns:
Value of property fax.

setFax

public void setFax(java.lang.String fax)
Setter for property fax.

Parameters:
fax - New value of property fax.

getHomeEmail

public java.lang.String getHomeEmail()
Getter for property homeEmail.

Returns:
Value of property homeEmail.

setHomeEmail

public void setHomeEmail(java.lang.String homeEmail)
Setter for property homeEmail.

Parameters:
homeEmail - New value of property homeEmail.

getWorkEmail

public java.lang.String getWorkEmail()
Getter for property workEmail.

Returns:
Value of property workEmail.

setWorkEmail

public void setWorkEmail(java.lang.String workEmail)
Setter for property workEmail.

Parameters:
workEmail - New value of property workEmail.

getHomePage

public java.lang.String getHomePage()
Getter for property homePage.

Returns:
Value of property homePage.

setHomePage

public void setHomePage(java.lang.String homePage)
Setter for property homePage.

Parameters:
homePage - New value of property homePage.

getOwnerID

public int getOwnerID()
Getter for property ownerId.

Returns:
Value of property Id.

setOwnerID

public void setOwnerID(int ownerID)

getShareDetails

public boolean getShareDetails()
Getter for property shareDetails.

Returns:
Value of property shareDetails.

setShareDetails

public void setShareDetails(boolean shareDetails)
Setter for property shareDetails.

Parameters:
shareDetails - New value of property shareDetails.

isContactUpdated

public boolean isContactUpdated()
Getter for property contactUpdated.

Returns:
Value of property contactUpdated.

setContactUpdated

public void setContactUpdated(boolean contactUpdated)
Setter for property contactUpdated.

Parameters:
contactUpdated - Description of the Parameter