com.xpn.xwiki.plugin.diff
Class DiffPluginApi

java.lang.Object
  extended by com.xpn.xwiki.api.Api
      extended by com.xpn.xwiki.plugin.diff.DiffPluginApi

Deprecated. since 4.1 use diff service

@Deprecated
public class DiffPluginApi
extends Api

Version:
$Id: 5f2b39ea539a8a1fca2eeb17fbfa0d95e7e4e540 $

Field Summary
 
Fields inherited from class com.xpn.xwiki.api.Api
context
 
Constructor Summary
DiffPluginApi(DiffPlugin plugin, XWikiContext context)
          Deprecated.  
 
Method Summary
 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.  
 
Methods inherited from class com.xpn.xwiki.api.Api
convert, convert, getXWikiContext, hasAccessLevel, hasAdminRights, hasProgrammingRights, hasWikiAdminRights
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiffPluginApi

public DiffPluginApi(DiffPlugin plugin,
                     XWikiContext context)
Deprecated. 
Method Detail

getPlugin

public DiffPlugin getPlugin()
Deprecated. 

setPlugin

public void setPlugin(DiffPlugin plugin)
Deprecated. 

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

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 - view all document or only changes
Returns:
list of Delta objects
Throws:
XWikiException

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


Copyright © 2004-2013 XWiki. All Rights Reserved.