Package com.xpn.xwiki.plugin.diff
Class DiffPlugin
- java.lang.Object
-
- com.xpn.xwiki.plugin.XWikiDefaultPlugin
-
- com.xpn.xwiki.plugin.diff.DiffPlugin
-
- All Implemented Interfaces:
XWikiPluginInterface
@Deprecated public class DiffPlugin extends XWikiDefaultPlugin
Deprecated.since 4.1 use diff service- Version:
- $Id: a206ffd630ea7f24f52bd37ec3dc39610711991d $
-
-
Constructor Summary
Constructors Constructor Description DiffPlugin(String name, String className, XWikiContext context)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Stringescape(String text)Deprecated.protected ListgetDeltas(org.suigeneris.jrcs.diff.Revision rev)Deprecated.StringgetDifferencesAsHTML(String text1, String text2)Deprecated.Return an html blocks representing line diffs between text1 and text2StringgetDifferencesAsHTML(String text1, String text2, boolean allDoc)Deprecated.Return an html blocks representing line diffs between text1 and text2ListgetDifferencesAsList(String text1, String text2)Deprecated.Return a list of Delta objects representing line differences in text1 and text2StringgetName()Deprecated.ApigetPluginApi(XWikiPluginInterface plugin, XWikiContext context)Deprecated.StringgetWordDifferencesAsHTML(String text1, String text2)Deprecated.Return an html blocks representing word diffs between text1 and text2ListgetWordDifferencesAsList(String text1, String text2)Deprecated.Return a list of Delta objects representing word differences in text1 and text2-
Methods inherited from class com.xpn.xwiki.plugin.XWikiDefaultPlugin
beginParsing, beginRendering, commonTagsHandler, downloadAttachment, endParsing, endRendering, endRenderingHandler, flushCache, flushCache, getClassName, getLocalization, init, insidePREHandler, localizePlainOrKey, outsidePREHandler, setClassName, setName, startRenderingHandler, virtualInit
-
-
-
-
Constructor Detail
-
DiffPlugin
public DiffPlugin(String name, String className, XWikiContext context)
Deprecated.- Parameters:
name- the plugin name, usually ignored, since plugins have a fixed nameclassName- the name of this class, ignoredcontext- the current request context
-
-
Method Detail
-
getName
public String getName()
Deprecated.- Specified by:
getNamein interfaceXWikiPluginInterface- Overrides:
getNamein classXWikiDefaultPlugin
-
getPluginApi
public Api getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
Deprecated.- Specified by:
getPluginApiin interfaceXWikiPluginInterface- Overrides:
getPluginApiin classXWikiDefaultPlugin
-
getDifferencesAsList
public List getDifferencesAsList(String text1, String text2) throws XWikiException
Deprecated.Return a list of Delta objects representing line differences in text1 and text2- Parameters:
text1- original contenttext2- revised content- Returns:
- list of Delta objects
- Throws:
XWikiException
-
getDeltas
protected List getDeltas(org.suigeneris.jrcs.diff.Revision rev)
Deprecated.
-
getWordDifferencesAsList
public List getWordDifferencesAsList(String text1, String text2) throws XWikiException
Deprecated.Return a list of Delta objects representing word differences in text1 and text2- Parameters:
text1- original contenttext2- revised content- Returns:
- list of Delta objects
- Throws:
XWikiException
-
getWordDifferencesAsHTML
public String getWordDifferencesAsHTML(String text1, String text2) throws XWikiException
Deprecated.Return an html blocks representing word diffs between text1 and text2- Parameters:
text1- original contenttext2- revised content- Returns:
- list of Delta objects
- Throws:
XWikiException
-
getDifferencesAsHTML
public String getDifferencesAsHTML(String text1, String text2) throws XWikiException
Deprecated.Return an html blocks representing line diffs between text1 and text2- Parameters:
text1- original contenttext2- revised content- Returns:
- list of Delta objects
- Throws:
XWikiException
-
getDifferencesAsHTML
public String getDifferencesAsHTML(String text1, String text2, boolean allDoc) throws XWikiException
Deprecated.Return an html blocks representing line diffs between text1 and text2- Parameters:
text1- original contenttext2- revised contentallDoc- show all document- Returns:
- list of Delta objects
- Throws:
XWikiException
-
-