Changes between Version 44 and Version 45 of S3/S3XML
- Timestamp:
- 07/19/11 19:35:30 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3XML
v44 v45 289 289 ==== resource ==== 290 290 ||'''Parent elements'''||[#s3xml s3xml], [#resource resource], [#reference reference]|| 291 ||'''Child elements'''||[#resource resource] ||291 ||'''Child elements'''||[#resource resource], [#data data], [#field field]|| 292 292 ||'''Contents'''||''empty''|| 293 293 … … 299 299 ||'''uuid'''||string||a unique identifier for the record||''no''*|| 300 300 ||'''tuid'''||string||a temporary unique identifier for the record||''no''*|| 301 ||'''created_on'''||datetime**||date and time when the record was created||''no''|| 302 ||'''modified_on'''||datetime**||date and time when the record was last updated||''no, default: request date/time''***|| 303 ||'''created_by'''||string||username (email-address) of the user who created the record||''no''|| 304 ||'''modified_by'''||string||username (email-address) of the user who last updated the record||''no''|| 305 ||'''mci'''||integer||master-copy-index****||''no, default: 2''***|| 301 306 302 307 (*) Records will be identified within the input file by their {{{uuid}}}, or, if no {{{uuid}}} is specified, by their {{{tuid}}}. 308 (**) as YYYY-MM-DDTHH:mm:ssZ, always UTC 309 (***) the last update date/time and mci are required in synchronization 310 (****) the master copy index specifies how often a record has been copied across sites, see below 303 311 304 312 The {{{uuid}}} will be stored in the database together with the record. If {{{uuid}}} is present and matches an existing record in the database, then this record will be updated. If there's no match or no {{{uuid}}} specified in the {{{resource}}} element, then the importer will create a new record in the database (and automatically generate a {{{uuid}}} if required). 305 313 314 The {{{mci}}} - master-copy-index - indicates how often this record has been copied across sites: 315 316 - when importing a new record the {{{mci}}} value is always *imported* as-is from the source 317 - when updating a record, the {{{mci}}} of the database record remains unchanged 318 - the {{{mci}}} of a record is *exported* as its current database value + 1. 319 - the repository first creating a record sets mci=0 in the database record, which appears as mci=1 in the exported XML. 320 - a copying site then imports mci=1 into its database, which appears as mci=2 in its export XML, and so forth... 321 322 The {{{mci}}} can be used to filter records for whether they have been originated at a repository or not. If there's a fixed set of synchronization paths between a number of S3 instances, the {{{mci}}} can be used for conflict resolution. If the {{{mci}}} is not specified, it defaults to 2. 323 324 MCI handling is optional for non-synchronizing interfaces. 306 325 ==== data ==== 307 326 ||'''Parent elements'''||[#resource resource]||