public class CmsValueDiff extends java.lang.Object implements I_CmsDiffProvider
| Constructor and Description |
|---|
CmsValueDiff() |
| Modifier and Type | Method and Description |
|---|---|
com.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.
|
public CmsValueDiff()
public com.google.common.base.Optional<com.vaadin.ui.Component> diff(CmsObject cms, CmsHistoryResourceBean v1, CmsHistoryResourceBean v2) throws CmsException
I_CmsDiffProviderIf no value is returned, then no widget is displayed.
diff in interface I_CmsDiffProvidercms - the CMS contextv1 - bean representing the first versionv2 - bean representing the second versionCmsException - if something goes wrongI_CmsDiffProvider.diff(org.opencms.file.CmsObject, org.opencms.gwt.shared.CmsHistoryResourceBean, org.opencms.gwt.shared.CmsHistoryResourceBean)