WL.Client.hasUserPref
WL.Client.logActivity
WL.JSONStore
The WL.JSONStore functions provide access to the JSONStore APIs.
WL.JSONStore.add(data, options)
The add() method adds a new document into the collection.
• data – A JavaScript object or array of objects that will be added to the collection
• options – A JavaScript object that provides options to the add() method:
◦ additionalSearchFields
◦ push
The add() method returns a Promise.
WL.JSONStore.changePassword(oldPassword, newPassword, userName)
The changePassword() method changes the password on a collection.
• oldPassword – The original password of the new collection.
• newPassword – The new password of the collection.
• userName – The identity of the user changing the password.
The changePassword() method returns a Promise.
WL.JSONStore.closeAll()
Close access to all currently opened collections.
WL.JSONStore.count()
Determine the number of documents inside a given collection.
The count() method returns a Promise.
WL.JSONStore.destroy()
Removes all JSONStore information for the application including stores, collections, documents
and meta-data.
WL.JSONStore.documentify(id, data)
Given a document ID and a JavaScript object representing data, a JSONStore document instance is
created.
• id – The id of a document
• data – A JavaScript object representing data
The documentify() method returns a JSONStore document object.
Page 111
Comentarios a estos manuales