Package com.avaya.clientservices.contact
Interface EditableContact
-
- All Superinterfaces:
BaseContact
public interface EditableContact extends BaseContact
Mutable contact object which exposes all provided contact details.EditableContact can be created by using either
ContactService.createEditableContact()
orContactService.createEditableContactFromContact(Contact)
. Second method needs a regular contact as a source for data.EditableContact can be used in two contact service methods -
ContactService.addContact(EditableContact, AddContactCompletionHandler)
andContactService.updateContact(EditableContact, UpdateContactCompletionHandler)
.
-
-
Method Summary
-
Methods inherited from interface com.avaya.clientservices.contact.BaseContact
canAddEmailAddress, canAddEmailAddress, canAddIMAddress, canAddPhoneNumber, isExtendedContactDetailsAvailable
-
-
-
-
Method Detail
-
retrievePicture
void retrievePicture(ContactCompletionHandler handler)
-
removePictureFromCache
void removePictureFromCache()
-
getASCIILastName
EditableContactStringField getASCIILastName()
Description copied from interface:BaseContact
The non-localized last name.- Specified by:
getASCIILastName
in interfaceBaseContact
- Returns:
- Contact string field containing non-localized last name.
-
getASCIIFirstName
EditableContactStringField getASCIIFirstName()
Description copied from interface:BaseContact
The non-localized first name.- Specified by:
getASCIIFirstName
in interfaceBaseContact
- Returns:
- Contact string field containing non-localized first name.
-
getASCIIDisplayName
EditableContactStringField getASCIIDisplayName()
Description copied from interface:BaseContact
The non-localized display name.- Specified by:
getASCIIDisplayName
in interfaceBaseContact
- Returns:
- Contact string field containing non-localized display name.
-
getASCIIAlias
EditableContactStringField getASCIIAlias()
Description copied from interface:BaseContact
The non-localized alias.- Specified by:
getASCIIAlias
in interfaceBaseContact
- Returns:
- Contact string field containing a non-localized alias.
-
getNativeLastName
EditableContactStringField getNativeLastName()
Description copied from interface:BaseContact
The native last name.- Specified by:
getNativeLastName
in interfaceBaseContact
- Returns:
- Contact string field containing the native last name.
-
getNativeFirstName
EditableContactStringField getNativeFirstName()
Description copied from interface:BaseContact
The native first name.- Specified by:
getNativeFirstName
in interfaceBaseContact
- Returns:
- Contact string field containing the native first name.
-
getNativeDisplayName
EditableContactStringField getNativeDisplayName()
Description copied from interface:BaseContact
The native display name.- Specified by:
getNativeDisplayName
in interfaceBaseContact
- Returns:
- Contact string field containing the native display name.
-
getNativeAlias
EditableContactStringField getNativeAlias()
Description copied from interface:BaseContact
The native alias.- Specified by:
getNativeAlias
in interfaceBaseContact
- Returns:
- Contact string field containing the native alias.
-
getLocation
EditableContactStringField getLocation()
Description copied from interface:BaseContact
The location.- Specified by:
getLocation
in interfaceBaseContact
- Returns:
- Contact string field containing the location.
-
getStreetAddress
EditableContactStringField getStreetAddress()
Description copied from interface:BaseContact
The street address.- Specified by:
getStreetAddress
in interfaceBaseContact
- Returns:
- Contact string field containing the street address.
-
getCity
EditableContactStringField getCity()
Description copied from interface:BaseContact
The city.- Specified by:
getCity
in interfaceBaseContact
- Returns:
- Contact string field containing the city.
-
getState
EditableContactStringField getState()
Description copied from interface:BaseContact
The state.- Specified by:
getState
in interfaceBaseContact
- Returns:
- Contact string field containing the state.
-
getCountry
EditableContactStringField getCountry()
Description copied from interface:BaseContact
The country.- Specified by:
getCountry
in interfaceBaseContact
- Returns:
- Contact string field containing the country.
-
getPostalCode
EditableContactStringField getPostalCode()
Description copied from interface:BaseContact
The postal code.- Specified by:
getPostalCode
in interfaceBaseContact
- Returns:
- Contact string field containing the postal code.
-
getCompany
EditableContactStringField getCompany()
Description copied from interface:BaseContact
The company.- Specified by:
getCompany
in interfaceBaseContact
- Returns:
- Contact string field containing the company.
-
getDepartment
EditableContactStringField getDepartment()
Description copied from interface:BaseContact
The department.- Specified by:
getDepartment
in interfaceBaseContact
- Returns:
- Contact string field containing the department.
-
getManager
EditableContactStringField getManager()
Description copied from interface:BaseContact
The name of a person who is a supervisor.- Specified by:
getManager
in interfaceBaseContact
- Returns:
- Contact string field containing the name of a person who is a supervisor.
-
getTitle
EditableContactStringField getTitle()
Description copied from interface:BaseContact
The title or company role.- Specified by:
getTitle
in interfaceBaseContact
- Returns:
- Contact string field containing the title or company role.
-
getLanguage
EditableContactStringField getLanguage()
Description copied from interface:BaseContact
The language is per contact record.- Specified by:
getLanguage
in interfaceBaseContact
- Returns:
- Contact string field containing the language is per contact record.
-
getUniqueAddressForMatching
java.lang.String getUniqueAddressForMatching()
Description copied from interface:BaseContact
The matching/merging address. This parameter can be used as a record's unique id.- Specified by:
getUniqueAddressForMatching
in interfaceBaseContact
- Returns:
- Contact string field containing the matching/merging address.
-
getEmailAddresses
EditableContactEmailAddressFieldList getEmailAddresses()
Description copied from interface:BaseContact
The list of email addresses.- Specified by:
getEmailAddresses
in interfaceBaseContact
- Returns:
- Contact multi value field containing list of email addresses.
-
getPhoneNumbers
EditableContactPhoneFieldList getPhoneNumbers()
Description copied from interface:BaseContact
The list of phone numbers.- Specified by:
getPhoneNumbers
in interfaceBaseContact
- Returns:
- Contact multi value field containing list of phone numbers.
-
getIMAddresses
EditableContactIMAddressFieldList getIMAddresses()
Description copied from interface:BaseContact
The list of IM addresses.- Specified by:
getIMAddresses
in interfaceBaseContact
- Returns:
- Contact multi value field containing list of IM addresses.
-
isBuddy
EditableContactBoolField isBuddy()
Description copied from interface:BaseContact
The buddy flag. Used for presence feature purpose.- Specified by:
isBuddy
in interfaceBaseContact
- Returns:
- Contact bool field containing the buddy flag.
-
isVIP
EditableContactBoolField isVIP()
Description copied from interface:BaseContact
The VIP flag.- Specified by:
isVIP
in interfaceBaseContact
- Returns:
- Contact bool field containing the VIP flag.
-
isFavorite
EditableContactBoolField isFavorite()
Description copied from interface:BaseContact
The favorite flag.- Specified by:
isFavorite
in interfaceBaseContact
- Returns:
- Contact bool field containing the favorite flag.
-
getPictureData
byte[] getPictureData()
The contact picture bytes. Picture data can be in jpeg or png format.- Returns:
- byte array containing the contact picture bytes.
-
hasPicture
boolean hasPicture()
Indicating whether contact has a picture.- Returns:
- true if contact has a picture.
-
getNotes
EditableContactStringField getNotes()
Description copied from interface:BaseContact
The notes field.- Specified by:
getNotes
in interfaceBaseContact
- Returns:
- Contact string field containing the notes field.
-
getRank
EditableContactDoubleField getRank()
Description copied from interface:BaseContact
The rank field defining the contact sorting order. 0.0 value means "No rank". Higher values are sorted toward top of the list.- Specified by:
getRank
in interfaceBaseContact
- Returns:
- Non-negative double value.
-
getCustom1
EditableContactMultiValueField<EditableContactStringField> getCustom1()
Description copied from interface:BaseContact
The list of custom1 values.- Specified by:
getCustom1
in interfaceBaseContact
- Returns:
- list of custom1 values.
-
getCustom2
EditableContactMultiValueField<EditableContactStringField> getCustom2()
Description copied from interface:BaseContact
The list of custom2 values.- Specified by:
getCustom2
in interfaceBaseContact
- Returns:
- list of custom2 values.
-
getCustom3
EditableContactMultiValueField<EditableContactStringField> getCustom3()
Description copied from interface:BaseContact
The list of custom3 values.- Specified by:
getCustom3
in interfaceBaseContact
- Returns:
- list of custom3 values.
-
getExtraFields
java.util.Map<java.lang.String,ContactField> getExtraFields()
Description copied from interface:BaseContact
Contact extra fields- Specified by:
getExtraFields
in interfaceBaseContact
- Returns:
- Map object containing contact extra fields as ContactField with String key.
Key values are in
ExtraFieldKeys
class.
-
getContactSources
java.util.Set<ContactSourceType> getContactSources()
Returns list of contact sources- Returns:
- list of contact sources
-
isContactSavable
boolean isContactSavable()
Returns Contact capabilities to save the current state of the contact 1. A savable contact has 1 name (first, last), and at least 1 address (phone number, email). 2. Also cannot break any rules for the maximum number of phone numbers, email addresses etc. for a provider.- Returns:
- true if it's possible to save Contact with current state of values, false if not.
-
isVideoCapable
EditableContactBoolField isVideoCapable()
Description copied from interface:BaseContact
Returns true if contact is video capable.- Specified by:
isVideoCapable
in interfaceBaseContact
- Returns:
- true if Contact is video capable.
-
-