Class Index | File Index

Classes


Class IncrementalHomeRecorder


Defined in: IncrementalHomeRecorder.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
IncrementalHomeRecorder(application, configuration)
A home recorder able to save the application homes incrementally by sending undoable edits to a server supporting home edits.
Method Summary
Method Attributes Method Name and Description
 
addHome(home, homeController)
Adds a home to be incrementally saved by this recorder.
 
configure(configuration)
Configures this incremental recorder's behavior.
 
Gets the home properties that are tracked and potentially written by this recorder.
 
readHome(homeName, observer)
Reads a home with this recorder.
 
removeHome(home)
Removes a home previously added with addHome.
 
Sends to the server all the currently waiting edits for the given home.
Class Detail
IncrementalHomeRecorder(application, configuration)
A home recorder able to save the application homes incrementally by sending undoable edits to a server supporting home edits.
Author: Renaud Pawlak, Emmanuel Puybaret, Louis Grignon.
Parameters:
{HomeApplication} application
{{readHomeURL: string|writeHomeEditsURL: string|closeHomeURL: string|writeResourceURL: string|readResourceURL: string|pingURL: string|autoWriteDelay: number|trackedHomeProperties: string[]|autoWriteTrackedStateChange: boolean|writingObserver: {writeStarted: Function|writeSucceeded: Function|writeFailed: Function|connectionFound: Function|connectionLost: Function} }} configuration Optional
the recorder configuration
Method Detail
addHome(home, homeController)
Adds a home to be incrementally saved by this recorder.
Parameters:
{Home} home
{HomeController} homeController

configure(configuration)
Configures this incremental recorder's behavior.
Parameters:
{Object} configuration
an object containing configuration fields

getTrackedHomeProperties()
Gets the home properties that are tracked and potentially written by this recorder.

readHome(homeName, observer)
Reads a home with this recorder.
Parameters:
{string} homeName
the home name on the server or the URL of the home if readHomeURL service is missing
{{homeLoaded: function|homeError: function|progression: function}} observer
callbacks used to follow the reading of the home

removeHome(home)
Removes a home previously added with addHome.
Parameters:
{Home} home

sendUndoableEdits(home)
Sends to the server all the currently waiting edits for the given home.
Parameters:
{Home} home

© Copyright 2024 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License
Documentation generated by JsDoc Toolkit 2.4.0 on Thu Apr 04 2024 17:30:26 GMT+0200 (CEST)