Javascript for Episerver 7.5 cms

ContentModelServerSync (constructor)

Location

epi-cms/contentediting/ContentModelServerSync

Extends

Properties

_attrPairNames

Used across all instances a hash to cache attribute names and their getter and setter names.

_publish

_saveDeferred

contentDataStore

Reference to the content data store

contentLink

Reference to the content this sync service instance is saving changes to

hasPendingChanges

processInterval

How often (in milliseconds) should we check the queue to see if there's any items to be synced

Methods

public inherited method _changeAttrValue ( name , value )

Internal helper for directly changing an attribute value.

Parameters

public inherited method _get ( name , names )

Private function that does a get based off a hash of names

Parameters

public method _propertyIndexInQueue ( propertyName )

Parameters

public method _saveProperties ( items )

Validate property value with server.

Parameters

public method _startSynchronizeInterval ( )


public method _stopSynchronizeInterval ( )


public inherited method get ( name )

Get a property on a Stateful instance.

Parameters

public method pendingSync ( propertyName )

Check if there is any pending synchronization for the property with propertyName

Parameters

public inherited method postscript ( params )

Parameters

public method publishProperty ( propertyName , value )

Parameters

public method save ( )

Save updates to server


public method scheduleForSync ( propertyName , value )

Put property update in queue

Parameters

public inherited method set ( name , value )

Set a property on a Stateful instance

Parameters

public inherited method watch ( name , callback )

Watches a property for changes

Parameters