Package com.day.cq.commons
Interface DiffService
- All Known Subinterfaces:
DiffService
public interface DiffService
Service used to create diff output of texts and resources.
-
Field Details
-
REQUEST_PARAM_DIFF_TO
request parameter that specifies the version to diff to- See Also:
-
REQUEST_PARAM_DIFF_TYPE
request parameter that can be used to transport a diff type- See Also:
-
-
Method Details
-
diff
Compares two texts (plain text or rich text) and generates a rich text containingdivelements which mark added and removed content.- Parameters:
current- the current text (right)original- the original text (left)isRichText- iftruethe text is considered rich, i.e. might contain HTML tags.- Returns:
- a rich text of the diff output
-