Package org.ametys.odf.clientsideelement
Class CompareContentWithLiveVersionClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.cms.content.version.AbstractCompareContentVersionClientSideElement
org.ametys.odf.clientsideelement.CompareContentWithLiveVersionClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class CompareContentWithLiveVersionClientSideElement
extends AbstractCompareContentVersionClientSideElement
ClientSideElement
for the button for comparing a content between its current version and its Live version.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
Field Summary
Fields inherited from class org.ametys.cms.content.version.AbstractCompareContentVersionClientSideElement
_compareVersionHelper, _resolver
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBaseVersion
(VersionAwareAmetysObject versionable) Gets the base version of comparison.protected String
getVersionToCompare
(VersionAwareAmetysObject versionable) Gets the version to compare.Methods inherited from class org.ametys.cms.content.version.AbstractCompareContentVersionClientSideElement
isComparable, service
Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParameters
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
CompareContentWithLiveVersionClientSideElement
-
-
Method Details
-
getVersionToCompare
Description copied from class:AbstractCompareContentVersionClientSideElement
Gets the version to compare. By default, it is the current one.- Specified by:
getVersionToCompare
in classAbstractCompareContentVersionClientSideElement
- Parameters:
versionable
- TheVersionAwareAmetysObject
- Returns:
- the source version
-
getBaseVersion
Description copied from class:AbstractCompareContentVersionClientSideElement
Gets the base version of comparison.- Specified by:
getBaseVersion
in classAbstractCompareContentVersionClientSideElement
- Parameters:
versionable
- TheVersionAwareAmetysObject
- Returns:
- the base version
-