|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--portlets.compoze.groupware.AbstractItem | +--portlets.compoze.groupware.addressbook.Contact
This class represents a contact.
Constructor Summary | |
Contact()
Constructor. |
|
Contact(java.lang.String sID)
Constructor. |
Method Summary | |
AddressInfo |
getAddressInfo(AddressInfo.AddressType addressType)
Gets the address info of a contact by address type. |
AddressInfo[] |
getAddressInfoArray()
Gets the list of addresses and their types associated with this contact. |
java.lang.String |
getAssistantName()
Gets the assistant name for the contact. |
java.lang.String |
getAssistantPhone()
Gets the assistant phone number for the contact |
java.util.Date |
getBirthday()
Gets the birthday of the contact. |
java.lang.String |
getBirthdayString(java.util.Locale locale)
Gets the birthday localized string. |
java.lang.String |
getBusinessHomePage()
Gets the business home page for the contact. |
java.lang.String |
getBusinessMobilePhone()
Gets the business mobile phone number for the contact |
java.lang.String |
getBusinessPhone()
Gets the business phone number for the contact |
java.lang.String |
getChildrenNames()
Gets the children names for the contact. |
java.lang.String |
getCommentHtml()
Gets the comment text in HTML format. |
java.lang.String |
getComments()
Gets the comments about the contact. |
java.lang.String |
getCompanyName()
Gets the company name of the contact. |
java.lang.String |
getDepartment()
Gets the department of the contact. |
java.lang.String |
getDisplayName()
Gets the display name for the contact. |
java.lang.String |
getEmail1()
Gets the email1 for the contact |
java.lang.String |
getEmail2()
Gets the email2 for the contact |
EmailInfo |
getEmailInfo(EmailInfo.EmailType emailType)
Gets the email address of the contact by type. |
EmailInfo[] |
getEmailInfoArray()
Gets the email info for the contact. |
java.lang.String |
getFirstName()
Gets the first name for the contact. |
java.lang.String |
getFullName()
Gets the full name for the contact. |
java.lang.String |
getHomeAddress(java.util.Locale locale)
Gets the home address for the contact |
java.lang.String |
getHomePhone()
Gets the home phone number for the contact |
java.lang.String |
getJobTitle()
Gets the job title of the contact. |
java.lang.String |
getLastName()
Gets the last name for the contact. |
java.lang.String |
getLocation()
Gets the location of the contact. |
java.lang.String |
getManagerName()
Gets the manager name for the contact. |
java.lang.String |
getMiddleName()
Gets the middle name for the contact. |
java.lang.String |
getMobilePhone()
Gets the mobile phone number for the contact |
java.lang.String |
getNameSuffix()
Gets the name suffix (generation) for the contact. |
java.lang.String |
getNickname()
Gets the nickname for the contact. |
java.lang.String |
getPagerPhone()
Gets the pager phone number for the contact |
PhoneInfo |
getPhoneInfo(PhoneInfo.PhoneType phoneType)
Gets the phone info by the phone type for a contact. |
PhoneInfo[] |
getPhoneInfoArray()
Gets the list of phone numbers and their types associated with this contact. |
java.lang.String |
getPrimeEmailAddress()
Gets the prime email address for the contact |
java.lang.String |
getSpouseName()
Gets the spouse name for the contact. |
java.lang.String |
getTitle()
Gets the name title (Mr, Miss, etc) for the contact. |
java.lang.String |
getYahooImAddress()
Gets the yahoo IM address. |
boolean |
isAddressInfo(AddressInfo addressInfo)
Checks if any information for the given address is set for the contact. |
boolean |
isAnyBusinessInfo()
Checks if any of the business information is set for the contact. |
boolean |
isAnyPersonalInfo()
Checks if any of the personal information is set for the contact. |
boolean |
isAnyPhoneInfo()
Checks if any of the phone numbers are set for the contact. |
boolean |
isEmailInfo(EmailInfo emailInfo)
Checks if any information for the email address is set for the contact. |
void |
setAddressInfo(AddressInfo addressInfo)
Sets the address info of a contact by the address info. |
void |
setAddressInfo(java.lang.String sAddressLine1,
java.lang.String sAddressLine2,
java.lang.String sCity,
java.lang.String sState,
java.lang.String sCountry,
java.lang.String sPostalCode,
AddressInfo.AddressType addressType)
Sets the address info of a contact by the address type. |
void |
setAddressInfoArray(AddressInfo[] addressInfoArray)
Sets the list of addresses and their types for this contact. |
void |
setAssistantName(java.lang.String sAssistantName)
Sets the assistant name for the contact. |
void |
setBirthday(java.util.Date birthday)
Sets the birthday for the contact. |
void |
setBusinessHomePage(java.lang.String sBusinessHomePage)
Sets the business home page for the contact. |
void |
setChildrenNames(java.lang.String childrenNames)
Sets the chilren names for the contact. |
void |
setComments(java.lang.String sComments)
Sets the comments about the contact. |
void |
setCompanyName(java.lang.String sCompanyName)
Sets the company name for the contact. |
void |
setDepartment(java.lang.String sDepartment)
Sets the department of the contact. |
void |
setDisplayName(java.lang.String sDisplayName)
Sets the display name for the contact. |
void |
setEmailInfo(java.lang.String sEmail,
EmailInfo.EmailType emailType)
Sets the email address for the contact by type. |
void |
setEmailInfo(java.lang.String sEmail,
java.lang.String sEmailDisplay,
EmailInfo.EmailType emailType)
Sets the email address for the contact by type. |
void |
setEmailInfoArray(EmailInfo[] emailInfo)
Sets the email info for the contact. |
void |
setFirstName(java.lang.String sFirstName)
Sets the first name for the contact. |
void |
setJobTitle(java.lang.String sJobTitle)
Sets the job title of the contact. |
void |
setLastName(java.lang.String sLastName)
Sets the last name for the contact. |
void |
setLocation(java.lang.String sLocation)
Sets the location of the contact. |
void |
setManagerName(java.lang.String sManagerName)
Sets the manager name for the contact. |
void |
setMiddleName(java.lang.String sMiddleName)
Sets the middle name for the contact. |
void |
setNameSuffix(java.lang.String sNameSuffix)
Sets the name suffix (generation) for the contact. |
void |
setNickname(java.lang.String sNickname)
Sets the nickname for the contact. |
void |
setPhoneInfo(java.lang.String sPhoneNumber,
PhoneInfo.PhoneType phoneType)
Sets the phone info for the contact. |
void |
setPhoneInfoArray(PhoneInfo[] phoneInfoArray)
Sets the list of phone numbers and their types for this contact. |
void |
setSpouseName(java.lang.String sSpouseName)
Sets the spouse name for the contact. |
void |
setTitle(java.lang.String sTitle)
Sets the title for the contact. |
void |
setYahooImAddress(java.lang.String sYahooImAddress)
Sets the yahoo IM address. |
Methods inherited from class portlets.compoze.groupware.AbstractItem |
getAttachmentCount, getAttachmentInfoArray, getBodyHtml, getBodyText, getBodyTextAsHtml, getDateCreated, getID, getImportance, getIndex, getItemType, getSize, getSizeInKilobytes, getSubject, getSubject, hasAttachment, prettyTruncate, setAttachmentCount, setAttachmentInfoArray, setBodyHtml, setBodyText, setDateCreated, setHasAttachment, setID, setImportance, setIndex, setItemType, setSize, setSubject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Contact()
public Contact(java.lang.String sID)
sID
- the contact idMethod Detail |
public java.lang.String getBirthdayString(java.util.Locale locale)
locale
- the locale (may not be null
)public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String sDisplayName)
sDisplayName
- the display namepublic java.lang.String getLastName()
public void setLastName(java.lang.String sLastName)
sLastName
- the last namepublic java.lang.String getFirstName()
public void setFirstName(java.lang.String sFirstName)
sFirstName
- the first namepublic java.lang.String getMiddleName()
public void setMiddleName(java.lang.String sMiddleName)
sMiddleName
- the middle namepublic java.lang.String getTitle()
public void setTitle(java.lang.String sTitle)
sTitle
- the titlepublic java.lang.String getYahooImAddress()
public void setYahooImAddress(java.lang.String sYahooImAddress)
sYahooImAddress
- the yahoo IM addresspublic java.lang.String getNameSuffix()
public void setNameSuffix(java.lang.String sNameSuffix)
sNamePrefix
- the suffixpublic java.lang.String getNickname()
public void setNickname(java.lang.String sNickname)
sNickname
- the nickmnamepublic java.lang.String getSpouseName()
public void setSpouseName(java.lang.String sSpouseName)
sSpouseName
- the spouse namepublic java.util.Date getBirthday()
null
for nonepublic void setBirthday(java.util.Date birthday)
birthday
- the birthdaypublic java.lang.String getManagerName()
public void setManagerName(java.lang.String sManagerName)
sManagerName
- the manager namepublic java.lang.String getAssistantName()
public void setAssistantName(java.lang.String sAssistantName)
sAssistantName
- the assistant namepublic java.lang.String getComments()
public void setComments(java.lang.String sComments)
sComments
- the commentspublic java.lang.String getCommentHtml()
public java.lang.String getDepartment()
public void setDepartment(java.lang.String sDepartment)
sDepartment
- the departmentpublic java.lang.String getJobTitle()
public void setJobTitle(java.lang.String sJobTitle)
sJobTitle
- the job titlepublic java.lang.String getCompanyName()
public void setCompanyName(java.lang.String sCompanyName)
sCompanyName
- the company namepublic void setPhoneInfo(java.lang.String sPhoneNumber, PhoneInfo.PhoneType phoneType)
sPhoneNumber
- the phone numberphoneType
- the phone typepublic PhoneInfo getPhoneInfo(PhoneInfo.PhoneType phoneType)
phoneType
- the phone typenull
if not foundpublic PhoneInfo[] getPhoneInfoArray()
public void setPhoneInfoArray(PhoneInfo[] phoneInfoArray)
phoneInfoArray
- the phone info array (may not be null
)public AddressInfo[] getAddressInfoArray()
public void setAddressInfoArray(AddressInfo[] addressInfoArray)
addressInfoArray
- the address info array (may not be null
)public java.lang.String getLocation()
public void setLocation(java.lang.String sLocation)
sLocation
- the locationpublic java.lang.String getBusinessHomePage()
public void setBusinessHomePage(java.lang.String sBusinessHomePage)
sBusinessHomePage
- the business home pagepublic java.lang.String getChildrenNames()
public void setChildrenNames(java.lang.String childrenNames)
childrenNames
- the children namespublic EmailInfo[] getEmailInfoArray()
public void setEmailInfoArray(EmailInfo[] emailInfo)
emailInfo
- the email info (may not be null
)public void setEmailInfo(java.lang.String sEmail, EmailInfo.EmailType emailType)
sEmail
- the email addressemailType
- the email type (may not be null
)public void setEmailInfo(java.lang.String sEmail, java.lang.String sEmailDisplay, EmailInfo.EmailType emailType)
sEmail
- the email addresssEmailDisplay
- the email displayemailType
- the email type (may not be null
)public EmailInfo getEmailInfo(EmailInfo.EmailType emailType)
emailType
- the email typenull
for nonepublic void setAddressInfo(java.lang.String sAddressLine1, java.lang.String sAddressLine2, java.lang.String sCity, java.lang.String sState, java.lang.String sCountry, java.lang.String sPostalCode, AddressInfo.AddressType addressType)
sAddressLine1
- the address line 1 (street)sAddressLine2
- the address line 2 (apt. number etc.)sCity
- the citysState
- the statesCountry
- the countrysPostalCode
- the postal codeaddressType
- the address type (may not be null
)public void setAddressInfo(AddressInfo addressInfo)
addressInfo
- the address info (may not be null
)public AddressInfo getAddressInfo(AddressInfo.AddressType addressType)
addressType
- the address typenull
for nonepublic boolean isAnyPhoneInfo()
true
if any of the phone numbers is not or empty or false
otherwise
public boolean isAddressInfo(AddressInfo addressInfo)
the
- address informationtrue
if any of the address information is not or empty
or false
otherwise
public boolean isEmailInfo(EmailInfo emailInfo)
the
- email information (may not be null
)true
if any of the email information is not or empty
or false
otherwise
public boolean isAnyBusinessInfo()
true
if any of the business information is not or empty or false
otherwise
public boolean isAnyPersonalInfo()
true
if any of the personal information is not or empty or false
otherwise
public java.lang.String getFullName()
public java.lang.String getPrimeEmailAddress()
public java.lang.String getBusinessPhone()
public java.lang.String getHomePhone()
public java.lang.String getMobilePhone()
public java.lang.String getPagerPhone()
public java.lang.String getAssistantPhone()
public java.lang.String getHomeAddress(java.util.Locale locale)
the
- locale (may not be null
public java.lang.String getEmail1()
public java.lang.String getEmail2()
public java.lang.String getBusinessMobilePhone()
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |