Class DiffInfo

java.lang.Object
com.day.cq.commons.DiffInfo
com.day.cq.wcm.foundation.DiffInfo

public class DiffInfo extends DiffInfo
Deprecated.
since 5.4; use DiffInfo instead.
The DiffInfo can be used by components to display a diff to a previous version. A component has access to the diff information by calling Adaptable.adaptTo(Class) with this class as the argument.
Since:
5.2
  • Constructor Details

  • Method Details

    • getDiffOutput

      public static String getDiffOutput(DiffService service, DiffInfo diffInfo, String origText, boolean isRichText, String diffText)
      Deprecated.
      Helper method to generate the diff output.
      Parameters:
      service - The diff service.
      diffInfo - The diff info.
      origText - The original text.
      isRichText - Is this rich text?
      diffText - The diff text.
      Returns:
      The complete output or null.