Package com.atlassian.confluence.diff
Class DaisyHtmlDiffer
- java.lang.Object
-
- com.atlassian.confluence.diff.DaisyHtmlDiffer
-
-
Constructor Summary
Constructors Constructor Description DaisyHtmlDiffer(Transformer transformer, List<DiffPostProcessor> postProcessors, com.atlassian.cache.CacheFactory cacheFactory, LocaleManager localeManager)
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
diff(ContentEntityObject leftContent, ContentEntityObject rightContent)
Computes a diff between the specified left and right input.String
diff(String leftHtml, String rightHtml, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6String
diff(String leftHtml, String rightHtml, org.eclipse.core.runtime.IProgressMonitor progressMonitor, boolean useOldAlgorithm)
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6
-
-
-
Constructor Detail
-
DaisyHtmlDiffer
@Deprecated(forRemoval=true) public DaisyHtmlDiffer(Transformer transformer, List<DiffPostProcessor> postProcessors, com.atlassian.cache.CacheFactory cacheFactory, LocaleManager localeManager)
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6
-
-
Method Detail
-
diff
public String diff(ContentEntityObject leftContent, ContentEntityObject rightContent)
Description copied from interface:Differ
Computes a diff between the specified left and right input.
The html output will contain span tags with class="diff-html-added|diff-html-removed|diff-html-changed" to indicate differences.
-
diff
@Deprecated(forRemoval=true) public String diff(String leftHtml, String rightHtml, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6Diff two pieces of XHTML content.- Parameters:
leftHtml
- the left HTML contentrightHtml
- the right HTML contentprogressMonitor
- progress monitor to monitor timeout, etc- Returns:
- String output of the diff result
-
diff
@Deprecated(forRemoval=true) public String diff(String leftHtml, String rightHtml, org.eclipse.core.runtime.IProgressMonitor progressMonitor, boolean useOldAlgorithm)
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6Diff two pieces of XHTML content.- Parameters:
leftHtml
- the left HTML contentrightHtml
- the right HTML contentprogressMonitor
- progress monitor to monitor timeout, etcuseOldAlgorithm
- if true, diff will use the old non-greedy algorithm, which can result in OOM issues for large diffs- Returns:
- String output of the diff result
-
-