Class DiffPlugin

    • 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

      • 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