org.apache.wiki.diff
Class DifferenceManager

java.lang.Object
  extended by org.apache.wiki.diff.DifferenceManager

public class DifferenceManager
extends Object

Load, initialize and delegate to the DiffProvider that will actually do the work.


Field Summary
static String PROP_DIFF_PROVIDER
          Property value for storing a diff provider.
 
Constructor Summary
DifferenceManager(WikiEngine engine, Properties props)
          Creates a new DifferenceManager for the given engine.
 
Method Summary
 String makeDiff(WikiContext context, String firstWikiText, String secondWikiText)
          Returns valid XHTML string to be used in any way you please.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_DIFF_PROVIDER

public static final String PROP_DIFF_PROVIDER
Property value for storing a diff provider. Value is "jspwiki.diffProvider".

See Also:
Constant Field Values
Constructor Detail

DifferenceManager

public DifferenceManager(WikiEngine engine,
                         Properties props)
Creates a new DifferenceManager for the given engine.

Parameters:
engine - The WikiEngine.
props - A set of properties.
Method Detail

makeDiff

public String makeDiff(WikiContext context,
                       String firstWikiText,
                       String secondWikiText)
Returns valid XHTML string to be used in any way you please.

Parameters:
context - The Wiki Context
firstWikiText - The old text
secondWikiText - the new text
Returns:
XHTML, or empty string, if no difference detected.


Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.