@Deprecated public class DiffPluginApi extends Api
Constructor and Description |
---|
DiffPluginApi(DiffPlugin plugin,
XWikiContext context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getDifferencesAsHTML(String text1,
String text2)
Deprecated.
Return an html blocks representing line diffs between text1 and text2
|
String |
getDifferencesAsHTML(String text1,
String text2,
boolean allDoc)
Deprecated.
Return an html blocks representing line diffs between text1 and text2
|
List |
getDifferencesAsList(String text1,
String text2)
Deprecated.
Return a list of Delta objects representing line differences in text1 and text2
|
DiffPlugin |
getPlugin()
Deprecated.
|
String |
getWordDifferencesAsHTML(String text1,
String text2)
Deprecated.
Return an html blocks representing word diffs between text1 and text2
|
List |
getWordDifferencesAsList(String text1,
String text2)
Deprecated.
Return a list of Delta objects representing word differences in text1 and text2
|
void |
setPlugin(DiffPlugin plugin)
Deprecated.
|
convert, convert, convert, convertAttachments, getAuthorizationManager, getContextualAuthorizationManager, getXWikiContext, hasAccess, hasAccessLevel, hasAdminRights, hasProgrammingRights, hasWikiAdminRights
public DiffPluginApi(DiffPlugin plugin, XWikiContext context)
public DiffPlugin getPlugin()
public void setPlugin(DiffPlugin plugin)
public List getDifferencesAsList(String text1, String text2) throws XWikiException
text1
- original contenttext2
- revised contentXWikiException
public String getDifferencesAsHTML(String text1, String text2) throws XWikiException
text1
- original contenttext2
- revised contentXWikiException
public String getDifferencesAsHTML(String text1, String text2, boolean allDoc) throws XWikiException
text1
- original contenttext2
- revised contentallDoc
- view all document or only changesXWikiException
public List getWordDifferencesAsList(String text1, String text2) throws XWikiException
text1
- original contenttext2
- revised contentXWikiException
public String getWordDifferencesAsHTML(String text1, String text2) throws XWikiException
text1
- original contenttext2
- revised contentXWikiException
Copyright © 2004–2021 XWiki. All rights reserved.