Class A_CmsAttributeDiff
java.lang.Object
org.opencms.ui.dialogs.history.diff.A_CmsAttributeDiff
- All Implemented Interfaces:
I_CmsDiffProvider
- Direct Known Subclasses:
CmsAttributeDiff
,CmsPropertyDiff
Abstract super class for displaying differences between a set of properties / attributes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Predicate used to check if an attribute comparison bean actually represents a difference. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.base.Optional<com.vaadin.ui.Component>
diff
(CmsObject cms, CmsHistoryResourceBean v1, CmsHistoryResourceBean v2) Optionally returns a comparison component to display for the given resource versions.static List<CmsAttributeComparison>
Only selects the attributes comparisons that actually represent differences.abstract String
Gets the caption.abstract List<CmsAttributeComparison>
Gets the attribute comparison beans representing the differences.static String
Builds a version string which can be used by CmsResourceComparison from a history resource bean.static CmsResource
readResource
(CmsObject cms, CmsHistoryResourceBean bean) Reads a historical resource for a history resource bean.
-
Constructor Details
-
A_CmsAttributeDiff
public A_CmsAttributeDiff()
-
-
Method Details
-
filterDifferent
Only selects the attributes comparisons that actually represent differences.- Parameters:
comps
- the attribute comparisons- Returns:
- the list of attribute comparisons which correspond to actual differences
-
getCaption
Gets the caption.- Returns:
- the caption
-