Class DiffPluginApi


  • @Deprecated
    public class DiffPluginApi
    extends Api
    Deprecated.
    since 4.1 use diff service
    Version:
    $Id: 3c555c991336b696f82dab7b0b27a08197b9e2e8 $
    • 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