public class MsOutlookAddrBookSourceContact extends GenericSourceContact implements EditableSourceContact
contactDetails
DATA_ID
Constructor and Description |
---|
MsOutlookAddrBookSourceContact(ContactSourceService contactSource,
java.lang.String id,
java.lang.String displayName,
java.lang.String organization,
java.util.List<ContactDetail> contactDetails)
Initializes a new MsOutlookAddrBookSourceContact instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addContactDetail(ContactDetail detail)
Adds a contact detail to the list of contact details.
|
java.lang.String |
getId()
Returns the string identifier for this source contact.
|
int |
getIndex()
Returns the index of this source contact in its parent.
|
void |
lock()
Locks this object before adding or removing several contact details.
|
boolean |
match(java.lang.String id,
int level)
Tells if the id given in parameters corresponds to this contact.
|
void |
removeContactDetail(ContactDetail detail)
Removes the given ContactDetail from the list of details for
this SourceContact.
|
void |
removeProperty(MsOutlookAddrBookContactDetail contactDetail)
Removes the contact detail from the outlook database.
|
void |
save()
Saves all the properties from this source contact into the outlook
database.
|
void |
setDetails(java.util.List<ContactDetail> details)
Changes the details list with the supplied one.
|
void |
setDisplayName(java.lang.String displayName)
Sets the display name for this contact.
|
void |
unlock()
Unlocks this object before after or removing several contact details.
|
void |
updated()
Function called by the native part (msoutlook) when this contact has been
updated.
|
getContactAddress, getContactDetails, getContactDetails, getContactDetails, getContactSource, getDisplayDetails, getDisplayName, getImage, getPreferredContactDetail, getPresenceStatus, isDefaultImage, setContactAddress, setDisplayDetails, setImage, setPresenceStatus
getData, setData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContactAddress, getContactDetails, getContactDetails, getContactDetails, getContactSource, getData, getDisplayDetails, getDisplayName, getImage, getPreferredContactDetail, getPresenceStatus, isDefaultImage, setContactAddress, setData
public MsOutlookAddrBookSourceContact(ContactSourceService contactSource, java.lang.String id, java.lang.String displayName, java.lang.String organization, java.util.List<ContactDetail> contactDetails)
contactSource
- The ContactSourceService which is creating the new
instance.id
- The outlook entry identifier for contacts.displayName
- The display name of the new instance.organization
- The organization name of the new instance.contactDetails
- The ContactDetails of the new instance.public java.lang.String getId()
public void setDetails(java.util.List<ContactDetail> details)
details
- the details.public void save()
public void removeContactDetail(ContactDetail detail)
removeContactDetail
in interface EditableSourceContact
detail
- the ContactDetail to removepublic void removeProperty(MsOutlookAddrBookContactDetail contactDetail)
contactDetail
- The contact detail to remove.public void addContactDetail(ContactDetail detail)
addContactDetail
in interface EditableSourceContact
detail
- the ContactDetail to addpublic void setDisplayName(java.lang.String displayName)
setDisplayName
in class GenericSourceContact
displayName
- The new display name for this contact.public void updated()
public void lock()
lock
in interface EditableSourceContact
public void unlock()
unlock
in interface EditableSourceContact
public int getIndex()
getIndex
in interface SourceContact
getIndex
in class GenericSourceContact
public boolean match(java.lang.String id, int level)
id
- The id to compare with.level
- 0 to only look at cached ids. 1 to only look at outlook
database ids.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.