com.xpn.xwiki.plugin.diff
Class DiffPlugin

java.lang.Object
  extended by com.xpn.xwiki.plugin.XWikiDefaultPlugin
      extended by com.xpn.xwiki.plugin.diff.DiffPlugin
All Implemented Interfaces:
XWikiPluginInterface

Deprecated. since 4.1 use diff service

@Deprecated
public class DiffPlugin
extends XWikiDefaultPlugin

Version:
$Id: 7c0b0a173878b54ce2e90589471de6e4e2ed2312 $

Constructor Summary
DiffPlugin(String name, String className, XWikiContext context)
          Deprecated.  
 
Method Summary
protected  String escape(String text)
          Deprecated.  
protected  List getDeltas(org.suigeneris.jrcs.diff.Revision rev)
          Deprecated.  
 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
 String getName()
          Deprecated. The name which can be used for accessing this plugin from XWiki.getPlugin(String, XWikiContext).
 Api getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
          Deprecated. Get a public scriptable API that can be used to call methods of the (privileged) plugin.
 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
 
Methods inherited from class com.xpn.xwiki.plugin.XWikiDefaultPlugin
beginParsing, beginRendering, commonTagsHandler, downloadAttachment, endParsing, endRendering, endRenderingHandler, flushCache, flushCache, getClassName, init, insidePREHandler, outsidePREHandler, setClassName, setName, startRenderingHandler, virtualInit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiffPlugin

public DiffPlugin(String name,
                  String className,
                  XWikiContext context)
Deprecated. 
Parameters:
name - the plugin name, usually ignored, since plugins have a fixed name
className - the name of this class, ignored
context - the current request context
Method Detail

getName

public String getName()
Deprecated. 
Description copied from interface: XWikiPluginInterface
The name which can be used for accessing this plugin from XWiki.getPlugin(String, XWikiContext).

Specified by:
getName in interface XWikiPluginInterface
Overrides:
getName in class XWikiDefaultPlugin
Returns:
the plugin name, usually a lowercase identifier

getPluginApi

public Api getPluginApi(XWikiPluginInterface plugin,
                        XWikiContext context)
Deprecated. 
Description copied from interface: XWikiPluginInterface
Get a public scriptable API that can be used to call methods of the (privileged) plugin.

Specified by:
getPluginApi in interface XWikiPluginInterface
Overrides:
getPluginApi in class XWikiDefaultPlugin
Parameters:
plugin - the plugin instance to wrap
context - the current request context
Returns:
an instance of the corresponding API, or null if the plugin doesn't want to expose a public API

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 content
text2 - revised content
Returns:
list of Delta objects
Throws:
XWikiException

getDeltas

protected List getDeltas(org.suigeneris.jrcs.diff.Revision rev)
Deprecated. 

escape

protected String escape(String text)
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 content
text2 - 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 content
text2 - 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 content
text2 - 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 content
text2 - revised content
allDoc - show all document
Returns:
list of Delta objects
Throws:
XWikiException


Copyright © 2004-2013 XWiki. All Rights Reserved.