Package org.ametys.cms.content.version
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.CompareContentVersionClientSideElement
org.ametys.cms.content.version.CompareContentWithLiveVersionClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class CompareContentWithLiveVersionClientSideElement
extends CompareContentVersionClientSideElement
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.CompareContentVersionClientSideElement
_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 TypeMethodDescriptionprotected String
getBaseVersion
(VersionAwareAmetysObject versionable) Gets the base version of comparison.Methods inherited from class org.ametys.cms.content.version.CompareContentVersionClientSideElement
getVersionToCompare, 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
-
getBaseVersion
Description copied from class:CompareContentVersionClientSideElement
Gets the base version of comparison. By default the previous one- Overrides:
getBaseVersion
in classCompareContentVersionClientSideElement
- Parameters:
versionable
- TheVersionAwareAmetysObject
- Returns:
- the base version
-