public class DiffMatchPatchClientSynchronizer extends Object implements org.jboss.aerogear.sync.client.ClientSynchronizer<String,org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit>
ClientSynchronizer implementation that can handle text documents.| Constructor and Description |
|---|
DiffMatchPatchClientSynchronizer() |
DiffMatchPatchClientSynchronizer(org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatch diffMatchPatch) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContent(String content,
com.fasterxml.jackson.databind.node.ObjectNode objectNode,
String fieldName) |
org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit |
clientDiff(org.jboss.aerogear.sync.ShadowDocument<String> shadowDocument,
org.jboss.aerogear.sync.ClientDocument<String> document) |
org.jboss.aerogear.sync.PatchMessage<org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit> |
createPatchMessage(String documentId,
String clientId,
Queue<org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit> edits) |
org.jboss.aerogear.sync.ClientDocument<String> |
patchDocument(org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit edit,
org.jboss.aerogear.sync.ClientDocument<String> document) |
org.jboss.aerogear.sync.PatchMessage<org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit> |
patchMessageFromJson(String json) |
org.jboss.aerogear.sync.ShadowDocument<String> |
patchShadow(org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit edit,
org.jboss.aerogear.sync.ShadowDocument<String> shadowDocument) |
org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit |
serverDiff(org.jboss.aerogear.sync.ClientDocument<String> document,
org.jboss.aerogear.sync.ShadowDocument<String> shadowDocument) |
public DiffMatchPatchClientSynchronizer()
public DiffMatchPatchClientSynchronizer(org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatch diffMatchPatch)
public org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit clientDiff(org.jboss.aerogear.sync.ShadowDocument<String> shadowDocument, org.jboss.aerogear.sync.ClientDocument<String> document)
clientDiff in interface org.jboss.aerogear.sync.client.ClientSynchronizer<String,org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit>public org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit serverDiff(org.jboss.aerogear.sync.ClientDocument<String> document, org.jboss.aerogear.sync.ShadowDocument<String> shadowDocument)
serverDiff in interface org.jboss.aerogear.sync.client.ClientSynchronizer<String,org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit>public org.jboss.aerogear.sync.ShadowDocument<String> patchShadow(org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit edit, org.jboss.aerogear.sync.ShadowDocument<String> shadowDocument)
patchShadow in interface org.jboss.aerogear.sync.client.ClientSynchronizer<String,org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit>public org.jboss.aerogear.sync.ClientDocument<String> patchDocument(org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit edit, org.jboss.aerogear.sync.ClientDocument<String> document)
patchDocument in interface org.jboss.aerogear.sync.client.ClientSynchronizer<String,org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit>public org.jboss.aerogear.sync.PatchMessage<org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit> createPatchMessage(String documentId, String clientId, Queue<org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit> edits)
createPatchMessage in interface org.jboss.aerogear.sync.client.ClientSynchronizer<String,org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit>public org.jboss.aerogear.sync.PatchMessage<org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit> patchMessageFromJson(String json)
patchMessageFromJson in interface org.jboss.aerogear.sync.client.ClientSynchronizer<String,org.jboss.aerogear.sync.diffmatchpatch.DiffMatchPatchEdit>Copyright © 2015 JBoss by Red Hat. All Rights Reserved.