Merging conflict items into the item's history

2 views
Skip to first unread message

bgoetzmann

unread,
Jul 2, 2008, 7:58:42 AM7/2/08
to Mesh4x Discussion
Hello,

In the FeedSync For Atom and RSS specification (http://dev.live.com/
feedsync/spec/v1.htm), in 3.4.3 it is said that :

"The conflict items the user factored into their decision MUST then be
merged (4) into the item’s history so the user isn’t asked to resolve
the same conflict more than once."

So the specification gives the algorythme to follow in order to merge
conflicts items into the resolved item's history.

Is this algorythme implemented in Mesh4j?


Thank you for your response.

Cheers,

Bertrand.

Daniel Cazzulino

unread,
Jul 2, 2008, 8:22:11 AM7/2/08
to mes...@googlegroups.com
Yes, it is implemented.

However, note that the algorithm is about preserving and merging the
*history*, not the item content.

thanks

bgoetzmann

unread,
Jul 2, 2008, 8:41:40 AM7/2/08
to Mesh4x Discussion
Thank you,

To be more precise, my web application permits to resolve a conflict
et proposes the user to choose between the actual Item or a conflicted
Item.
Can you tell me what is the class and the method that can do this
merging for the history?

Cheers,

Bertrand.
> > Bertrand.- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -

Daniel Cazzulino

unread,
Jul 2, 2008, 9:08:16 AM7/2/08
to mes...@googlegroups.com
.NET or Java version?

bgoetzmann

unread,
Jul 2, 2008, 9:14:24 AM7/2/08
to Mesh4x Discussion
The Java version!

Thanks.
> >> - Afficher le texte des messages précédents -- Masquer le texte des messages précédents -

Marcelo Tondato

unread,
Jul 2, 2008, 9:50:02 AM7/2/08
to mes...@googlegroups.com
In java version the class that merge histories is MergeBehavior, but if you need that users manually merge the items, you should be implement a IPreviewImportHandler.

Please see IPreviewImportHandler and SyncEngine>>synchronize(Date since, IPreviewImportHandler previewer, PreviewBehavior behavior);

JMT

Marcelo Tondato

unread,
Jul 2, 2008, 11:32:18 AM7/2/08
to mes...@googlegroups.com
When the user choose the item, you should be update the item calling to ISyncAdapter>>update(Item item, boolean resolveConflicts);

JMT

Goetzmann Bertrand

unread,
Jul 2, 2008, 11:46:20 AM7/2/08
to mes...@googlegroups.com

Thank you,

 

I see that method calls MergeBehavior.resolveConflicts.

 

Cheers,

 

Bertrand.

 


De : mes...@googlegroups.com [mailto:mes...@googlegroups.com] De la part de Marcelo Tondato
Envoyé : mercredi 2 juillet 2008 17:32
À : mes...@googlegroups.com
Objet : [mesh4x] Re: Merging conflict items into the item's history

Reply all
Reply to author
Forward
0 new messages