Class SingleVersionHandler
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.migration.handler.AbstractVersionHandler
-
- org.ametys.core.migration.handler.SingleVersionHandler
-
- All Implemented Interfaces:
VersionHandler
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class SingleVersionHandler extends AbstractVersionHandler
Class forVersionHandler
returning only one version.
-
-
Field Summary
-
Fields inherited from class org.ametys.core.migration.handler.AbstractVersionHandler
_id, _versionStorage, _versionStorageEP, _versionStorageId
-
-
Constructor Summary
Constructors Constructor Description SingleVersionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Version>
getCurrentVersions(String componentId, Configuration versionConfiguration)
Get the list of all curent versions for this component id based on the configuration-
Methods inherited from class org.ametys.core.migration.handler.AbstractVersionHandler
addVersion, configure, getVersionStorage, service, setPluginInfo
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
SingleVersionHandler
public SingleVersionHandler()
-
-
Method Detail
-
getCurrentVersions
public List<Version> getCurrentVersions(String componentId, Configuration versionConfiguration) throws MigrationException
Description copied from interface:VersionHandler
Get the list of all curent versions for this component id based on the configuration- Parameters:
componentId
- id to checkversionConfiguration
- configuration of this version- Returns:
- a list of
Version
- Throws:
MigrationException
- Something went wrong
-
-