Servis-Rhino 4211B Guía de usuario Pagina 114

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 298
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 113
clear
localkeygen – If a password is supplied and encryption to be used, a token is
obtained as part of the encryption process. Where the token is generated is controlled by
this parameter. The token can be generated on the client (true) or on the server (false).
The init() method returns a promise.
WL.JSONStore.isPushRequired(doc)
Determines whether the given document has had changes made to it which would be pushed to the
server. Returns true if it would be pushed and false otherwise.
doc – Either a document object or a document id
The isPushRequired() method returns a promise.
WL.JSONStore.load()
Invoke the associated adapter to load the content of the collection from the data returned from the
adapter.
The load() method returns a promise.
WL.JSONStore.push(docs)
Push the documents in the collection that are flagged as ready for a push to the adapter. Optionally,
an array of documents or a document or a document id can be supplied.
The push() method returns a promise.
WL.JSONStore.pushRequiredCount()
Determine the number of documents that will be pushed to a back-end through an adapter.
The pushRequiredCount() method returns a promise.
WL.JSONStore.remove(doc, options)
This function will remove a document from a collection and optionally flag it for push to remove
through the adapter.
doc – An array of documents, a single document or a document id
options
push – should the removal also be pushed through the adapter (true) or just removed
from the local collection (false).
The remove() method returns a Promise.
WL.JSONStore.removeCollection()
Deletes all the documents stored within a collection.
The removeCollection() method returns a Promise.
Page 114
Vista de pagina 113
1 2 ... 109 110 111 112 113 114 115 116 117 118 119 ... 297 298

Comentarios a estos manuales

Sin comentarios