Class ecm.model.SyncItem


Extends ecm.model._ModelObject.
Represents an object added to sync items.
Defined in: <ecm\model\SyncItem.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 
ecm.model.SyncItem(properties)
Constructor

Field Summary

Field Attributes Field Name and Description
 
Object containing the devices registered to sync this sync item.
 
syncId 
ID of the item on the sync server
 
ID of the sync item.
Fields borrowed from class ecm.model._ModelObject:
categorization, id, isRecurring, name, nameFilter, pane, status, type, userId

Method Summary

Method Attributes Method Name and Description
 
Check if the item name is updated for the synced item.
 
Returns all the attributes associated with this sync item.
 
retrieveSyncItem(callback, params)
Retrieves the item associated with the sync item.
 
Generates a json definition for this sync item.
Methods borrowed from class ecm.model._ModelObject:
destroy, onChange, own, refresh, toString

Constructor Detail

ecm.model.SyncItem(properties)

Constructor
Parameters:
properties
The properties for the model object. The properties can be any of the public fields as defined below and on ecm.model._ModelObject.
Since:
2.0.3.5

Field Detail

syncDevices

Object containing the devices registered to sync this sync item.

syncId

ID of the item on the sync server

syncItemId

ID of the sync item.

Method Detail

checkName(A)

Check if the item name is updated for the synced item. If update, update the sync item name.
Parameters:
A
ecm.model.Item object to check the name.

getAttributes()

Returns all the attributes associated with this sync item.

retrieveSyncItem(callback, params)

Retrieves the item associated with the sync item.
Parameters:
callback
A function that is called when the sync item retrieval has completed.
params
An object containing parameters to control the request to the server. For example, you can set the retrieve to be performed in the background. See ecm.model.Request for a list of parameters supported by a server request.

toJSON()

Generates a json definition for this sync item.