Package org.ametys.cms.content.version
Class CompareOldContentWithCurrentVersionClientSideElement
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.CompareOldContentWithCurrentVersionClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class CompareOldContentWithCurrentVersionClientSideElement
extends CompareContentVersionClientSideElement
ClientSideElement
for the button for comparing a content between its current version and its newest 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.protected String
getVersionToCompare
(VersionAwareAmetysObject versionable) Gets the version to compare.Methods inherited from class org.ametys.cms.content.version.CompareContentVersionClientSideElement
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
-
CompareOldContentWithCurrentVersionClientSideElement
-
-
Method Details
-
getVersionToCompare
Description copied from class:CompareContentVersionClientSideElement
Gets the version to compare. By default, it is the current one.- Overrides:
getVersionToCompare
in classCompareContentVersionClientSideElement
- Parameters:
versionable
- TheVersionAwareAmetysObject
- Returns:
- the source version
-
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
-