public interface DifferenceManager
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_DIFF_PROVIDER
Property value for storing a diff provider.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDiff(Context context,
int version1,
int version2)
Returns a diff of two versions of a page.
|
String |
makeDiff(Context context,
String firstWikiText,
String secondWikiText)
Returns valid XHTML string to be used in any way you please.
|
static final String PROP_DIFF_PROVIDER
String makeDiff(Context context, String firstWikiText, String secondWikiText)
context - The Wiki ContextfirstWikiText - The old textsecondWikiText - the new textString getDiff(Context context, int version1, int version2)
Note that the API was changed in 2.6 to provide a WikiContext object!
context - The WikiContext of the page you wish to get a diff fromversion1 - Version number of the old page. If WikiPageProvider.LATEST_VERSION (-1), then uses current page.version2 - Version number of the new page. If WikiPageProvider.LATEST_VERSION (-1), then uses current page.Copyright © 2001-2020 The Apache Software Foundation. All rights reserved.