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
Constructors Constructor Description CompareContentWithLiveVersionClientSideElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Optional<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.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 Detail
-
CompareContentWithLiveVersionClientSideElement
public CompareContentWithLiveVersionClientSideElement()
-
-
Method Detail
-
getVersionToCompare
protected String getVersionToCompare(VersionAwareAmetysObject versionable)
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
protected Optional<String> getBaseVersion(VersionAwareAmetysObject versionable)
Description copied from class:AbstractCompareContentVersionClientSideElement
Gets the base version of comparison.- Specified by:
getBaseVersion
in classAbstractCompareContentVersionClientSideElement
- Parameters:
versionable
- TheVersionAwareAmetysObject
- Returns:
- the base version
-
-