Previous Page Arrow Next Page Arrow

4.5 Synchronization Metadata

The schema indicates how synchronization is supported on a given resource kind. This is indicated by adding sme:isSyncSource and sme:isSyncTarget attributes to the element that describes the resource kind in the schema.

This attribute allows generic SData consumer to discover whether synchronization requests are supported or not on a given resource kind.

The schema MAY advertise the conflict handling priorities that the provider uses for each synchronizable resource kind. This is achieved by setting the sme:syncConflictPriority attribute on schema elements that define resource kinds.

The schema SHOULD advertise the order in which the provider expects resource kinds to be synchronized by setting the sme:syncOrder attribute on schema elements that define resource kinds. The engine will process the resource kinds in increasing sme:syncOrder order.

Here is an example of a resource kind definition with all these attributes set:

<xs:element name="account" type="tns:account--type" 
  sme:isSyncSource="true" 
  sme:isSyncTarget="true" 
  sme:syncConflictPriority="1"
  sme:syncOrder="7"
/>
A provider exposing a resource kind for synchronization MUST specify in the accompanying schema for the resource kind:
sme:isSyncSource=true if the resource can act as a source for synchronization
sme:isSyncTarget=true if the resource can act as a target for synchronization

Previous Page Arrow Next Page Arrow