com.funambol.domino.util
Class UtilityContact

java.lang.Object
  extended bycom.funambol.domino.util.UtilityContact

public class UtilityContact
extends java.lang.Object

Utility class for Contact Manger


Constructor Summary
UtilityContact()
           
 
Method Summary
static void addEmailOfTypeInFoundation(ItemContact contact, java.lang.String type, java.lang.String newValue)
          set an email of a type in the foundation contact object.
static void addWebPageInFoundation(ItemContact contact, java.lang.String type, java.lang.String newValue)
          Add web page in of type in foundation.
static java.lang.String getBusinessPhoneFromFoundation(ItemContact contact, int type_e)
          returns the business phone from foundation contact object 1 BusinessTelephoneNumber 2 Business2TelephoneNumber 3 BusinessFaxNumber
static java.lang.String getBusinessPhoneFromFoundation(ItemContact contact, java.lang.String type)
           
static java.lang.String getBusinessTitleFromFoundation(ItemContact contact, int type_e)
          returns the title from foundation contact object 1 JobTitle
static java.lang.String[] getEmailsOfTypeFromFoundation(ItemContact contact, java.lang.String type)
          returns the business email from foundation contact object The "email work" is in the objcet: BusinessDetail it has the label: Email3Address
static java.lang.String getOtherWebPageFromFoundation(ItemContact contact)
          Get the first Other WebPage from a foundation contact.
static java.lang.String getPersonalEmailFromFoundation(ItemContact contact, int type_e)
          returns the personal email from foundation contact object 1 Email1Address - Home 2 Email2Address - Other
static java.lang.String getPersonalPhoneFromFoundation(ItemContact contact, int type_e)
          returns the personal phone from foundation contact object 1 OtherTelephoneNumber 2 MobileTelephoneNumber 3 HomeTelephoneNumber 4 Home2TelephoneNumber 5 HomeFaxNumber
static java.lang.String getPersonalPhoneFromFoundation(ItemContact contact, java.lang.String type)
           
static java.lang.String getPersonalWebPageFromFoundation(ItemContact contact)
          Get the first Personal WebPage from a foundation contact.
static java.lang.String[] getWebPagesFromFoundation(ItemContact contact, java.lang.String[] types)
          Get the WebPages oa a type from a foundation contact.
static void setBusinessPhoneInFoundation(ItemContact contact, java.lang.String newValue, int type_e)
          sets the business phone in the foundation contact object

1 BusinessTelephoneNumber 2 Business2TelephoneNumber 3 BusinessFaxNumber

static void setBusinessPhoneInFoundation(ItemContact contact, java.lang.String value, java.lang.String type)
           
static void setBusinessTitleInFoundation(ItemContact contact, java.lang.String newValue, int type_e)
          set the title in the foundation contact object.
static void setEmail1InFoundation(ItemContact contact, java.lang.String newValue)
          set the business email in the foundation contact object.
static void setEmail2InFoundation(ItemContact contact, java.lang.String newValue)
          set the business email in the foundation contact object.
static void setPersonalPhoneInFoundation(ItemContact contact, java.lang.String newValue, int type_e)
          sets the personal phone in the foundation contact object

1 OtherTelephoneNumber 2 MobileTelephoneNumber 3 HomeTelephoneNumber 4 Home2TelephoneNumber 5 HomeFaxNumber

static void setPersonalPhoneInFoundation(ItemContact contact, java.lang.String value, java.lang.String type)
           
static void setPersonalWebPageInFoundation(ItemContact contact, java.lang.String newValue)
          set the web page in the foundation contact object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UtilityContact

public UtilityContact()
Method Detail

getEmailsOfTypeFromFoundation

public static java.lang.String[] getEmailsOfTypeFromFoundation(ItemContact contact,
                                                               java.lang.String type)
returns the business email from foundation contact object The "email work" is in the objcet: BusinessDetail it has the label: Email3Address

Parameters:
contact - Contact
Returns:
String

getBusinessPhoneFromFoundation

public static java.lang.String getBusinessPhoneFromFoundation(ItemContact contact,
                                                              int type_e)
returns the business phone from foundation contact object

Parameters:
contact - Contact
type_e - int
Returns:
String

getBusinessPhoneFromFoundation

public static java.lang.String getBusinessPhoneFromFoundation(ItemContact contact,
                                                              java.lang.String type)

getPersonalPhoneFromFoundation

public static java.lang.String getPersonalPhoneFromFoundation(ItemContact contact,
                                                              java.lang.String type)

getPersonalPhoneFromFoundation

public static java.lang.String getPersonalPhoneFromFoundation(ItemContact contact,
                                                              int type_e)
returns the personal phone from foundation contact object

Parameters:
contact - Contact
type_e - int
Returns:
String

getPersonalEmailFromFoundation

public static java.lang.String getPersonalEmailFromFoundation(ItemContact contact,
                                                              int type_e)
returns the personal email from foundation contact object

Parameters:
contact - Contact
type_e - int
Returns:
String

getBusinessTitleFromFoundation

public static java.lang.String getBusinessTitleFromFoundation(ItemContact contact,
                                                              int type_e)
returns the title from foundation contact object

Parameters:
contact - Contact
type_e - int
Returns:
String

setBusinessTitleInFoundation

public static void setBusinessTitleInFoundation(ItemContact contact,
                                                java.lang.String newValue,
                                                int type_e)
set the title in the foundation contact object.

Parameters:
contact - Contact
newValue - String
type_e - int

addEmailOfTypeInFoundation

public static void addEmailOfTypeInFoundation(ItemContact contact,
                                              java.lang.String type,
                                              java.lang.String newValue)
set an email of a type in the foundation contact object.

Parameters:
contact - Contact
type - String
newValue - String

setEmail1InFoundation

public static void setEmail1InFoundation(ItemContact contact,
                                         java.lang.String newValue)
set the business email in the foundation contact object.

Parameters:
contact - Contact
newValue - String

setEmail2InFoundation

public static void setEmail2InFoundation(ItemContact contact,
                                         java.lang.String newValue)
set the business email in the foundation contact object.

Parameters:
contact - Contact
newValue - String

setBusinessPhoneInFoundation

public static void setBusinessPhoneInFoundation(ItemContact contact,
                                                java.lang.String newValue,
                                                int type_e)
sets the business phone in the foundation contact object

Parameters:
contact - Contact
newValue - String
type_e - int

setBusinessPhoneInFoundation

public static void setBusinessPhoneInFoundation(ItemContact contact,
                                                java.lang.String value,
                                                java.lang.String type)

setPersonalPhoneInFoundation

public static void setPersonalPhoneInFoundation(ItemContact contact,
                                                java.lang.String value,
                                                java.lang.String type)

setPersonalWebPageInFoundation

public static void setPersonalWebPageInFoundation(ItemContact contact,
                                                  java.lang.String newValue)
set the web page in the foundation contact object

Parameters:
contact - Contact
newValue - String

setPersonalPhoneInFoundation

public static void setPersonalPhoneInFoundation(ItemContact contact,
                                                java.lang.String newValue,
                                                int type_e)
sets the personal phone in the foundation contact object

Parameters:
contact - Contact
newValue - String
type_e - int

getPersonalWebPageFromFoundation

public static java.lang.String getPersonalWebPageFromFoundation(ItemContact contact)

Get the first Personal WebPage from a foundation contact.

Parameters:
contact - Contact
Returns:
String

getWebPagesFromFoundation

public static java.lang.String[] getWebPagesFromFoundation(ItemContact contact,
                                                           java.lang.String[] types)

Get the WebPages oa a type from a foundation contact.

Parameters:
contact - Contact
types - String[]
Returns:
String

getOtherWebPageFromFoundation

public static java.lang.String getOtherWebPageFromFoundation(ItemContact contact)

Get the first Other WebPage from a foundation contact.

Parameters:
contact - Contact
Returns:
String

addWebPageInFoundation

public static void addWebPageInFoundation(ItemContact contact,
                                          java.lang.String type,
                                          java.lang.String newValue)
Add web page in of type in foundation.

Parameters:
contact - Contact
type - String
newValue - String


Copyright © 2003-2006 Funambol.