public class DiffService extends Object
Constructor and Description |
---|
DiffService() |
Modifier and Type | Method and Description |
---|---|
protected String |
escape(String text)
Escapes a string by a common filter.
|
protected List |
getDeltas(org.suigeneris.jrcs.diff.Revision rev)
Gets a list of Delta objects by a wiki page revision.
|
org.exoplatform.wiki.service.diff.DiffResult |
getDifferencesAsHTML(String text1,
String text2,
boolean allDoc)
Gets a Delta object containing line differences in the HTML format between text1 and text2.
|
List |
getDifferencesAsList(String text1,
String text2)
Gets a list of Delta objects representing line differences between text1 and text2.
|
org.exoplatform.wiki.service.diff.DiffResult |
getWordDifferencesAsHTML(String text1,
String text2)
Gets a Delta object containing word differences between text1 and text2.
|
List |
getWordDifferencesAsList(String text1,
String text2)
Gets a list of Delta objects representing word differences between text1 and text2.
|
public List getDifferencesAsList(String text1, String text2) throws org.suigeneris.jrcs.diff.DifferentiationFailedException
text1
- The original content.text2
- The revised content.org.suigeneris.jrcs.diff.DifferentiationFailedException
public List getWordDifferencesAsList(String text1, String text2) throws org.suigeneris.jrcs.diff.DifferentiationFailedException
text1
- The original content.text2
- The revised content.org.suigeneris.jrcs.diff.DifferentiationFailedException
public org.exoplatform.wiki.service.diff.DiffResult getWordDifferencesAsHTML(String text1, String text2) throws org.suigeneris.jrcs.diff.DifferentiationFailedException
text1
- The original content.text2
- The revised content.org.suigeneris.jrcs.diff.DifferentiationFailedException
public org.exoplatform.wiki.service.diff.DiffResult getDifferencesAsHTML(String text1, String text2, boolean allDoc) throws org.suigeneris.jrcs.diff.DifferentiationFailedException
text1
- The original content.text2
- The revised content.allDoc
- Shows the whole content.org.suigeneris.jrcs.diff.DifferentiationFailedException
protected List getDeltas(org.suigeneris.jrcs.diff.Revision rev)
rev
- The wiki page revision.Copyright © 2003-2017 eXo Platform SAS. All Rights Reserved.