Package com.day.cq.wcm.foundation
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; useDiffInfo
instead.TheDiffInfo
can be used by components to display a diff to a previous version. A component has access to the diff information by callingAdaptable.adaptTo(Class)
with this class as the argument.- Since:
- 5.2
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.day.cq.commons.DiffInfo
DiffInfo.TYPE
-
-
Field Summary
-
Fields inherited from class com.day.cq.commons.DiffInfo
DATE_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description DiffInfo(Resource c, DiffInfo.TYPE l)
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
getDiffOutput(DiffService service, DiffInfo diffInfo, String origText, boolean isRichText, String diffText)
Deprecated.Helper method to generate the diff output.-
Methods inherited from class com.day.cq.commons.DiffInfo
getContent, getDiffOutput, getType, getVersionedResource
-
-
-
-
Constructor Detail
-
DiffInfo
public DiffInfo(Resource c, DiffInfo.TYPE l)
Deprecated.
-
-
Method Detail
-
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.
-
-