Changes

Jump to: navigation, search

CloudServices/Sync/FxSync/Developer/ClientAPI

No change in size, 11:53, 29 October 2010
Writing a Store class: Fixed wrong names of getAllIDs and changeItemID methods
*<tt>itemExists(id)</tt>
*<tt>createRecord(id, uri)</tt>
*<tt>changeItemIdchangeItemID(oldId, newId)</tt>*<tt>getAllIdsgetAllIDs()</tt>
*<tt>wipe()</tt>
*<tt>create(record)</tt>
Should simply return <tt>true</tt> if an item with the given guid exists in the store, <tt>false</tt> otherwise.
=== changeItemIdchangeItemID(oldId, newId) ===
Must find the stored item currently associated with the guid <tt>oldId</tt> and change it to be associated with the guid <tt>newId</tt>.
=== getAllIdsgetAllIDs() ===
Must return an iterable list containing the GUIDs of every item being stored on the local system. This can be a dictionary-type object where the keys are the GUIDs and the values are whatever; or it can simply be a list of GUIDs.
return record;
},
changeItemIdchangeItemID: function(oldId, newId) {
// Find the item with guid = oldId and change its guid to newId.
},
getAllIdsgetAllIDs: function() {
// Return a list of the GUIDs of all items. Invent GUIDs for any items
// that don't have them already, and remember the mapping for later use.

Navigation menu