172
edits
No edit summary |
|||
| Line 5: | Line 5: | ||
= Introduction = | = Introduction = | ||
This proposal advocates for collapsing two datastores (mozContacts and GCDS) into one. As a result the role of the GlobalContactsDatastore will played by the regular mozContacts datastore. An entry in the referred datastore could have local data and/or pointers to contacts present in the external providers datastores (Facebook, Gmail, etc.). We will be providing a library that will allow to | This proposal advocates for collapsing two datastores (mozContacts and GCDS) into one. As a result the role of the GlobalContactsDatastore will be played by the regular mozContacts datastore. An entry in the referred datastore could have local data and/or pointers to contacts present in the external providers datastores (Facebook, Gmail, etc.). We will be providing a library that will allow to obtain all the data associated to a mozContact entry (MultiContact library). | ||
To support this | To support this approach the mozContact object will be extended with a 'sources' attribute (vcard standard) that will allow us to store the datastore providers associated and the id of the "linked" contacts in such datastores. There can be contacts in the system that may only exist in the external service and in that case all the mozContact attributes will be empty apart from the referred 'sources' attribute. On the other hand there could be local contacts that only contain data present on the device and which 'sources' attribute will be empty. | ||
= Architecture = | = Architecture = | ||
edits