Interface VersionHandler
-
- All Known Implementing Classes:
AbstractVersionHandler
,SingleVersionHandler
public interface VersionHandler
Handler to get or set version
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addVersion(Version newVersion)
Adds a new version for a componentList<Version>
getCurrentVersions(String componentId, Configuration versionConfiguration)
Get the list of all curent versions for this component id based on the configuration
-
-
-
Method Detail
-
getCurrentVersions
List<Version> getCurrentVersions(String componentId, Configuration versionConfiguration) throws MigrationException
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
-
addVersion
void addVersion(Version newVersion) throws MigrationException
Adds a new version for a component- Parameters:
newVersion
- Version to set- Throws:
MigrationException
- Something went wrong
-
-