Package org.ametys.core.migration
Record Class MigrationEngine.MigrationComponent
java.lang.Object
java.lang.Record
org.ametys.core.migration.MigrationEngine.MigrationComponent
- Record Components:
id
- the component idinternal
- if this component is used for internal migration datapluginName
- the component's pluginfeatureName
- the component's featureversionHandlerType
- theVersionHandler
typeversionHandler
- theVersionHandler
versionStorage
- theVersionStorage
versionConfiguration
- the specificVersionConfiguration
created by the associatedVersionHandler
initialization
- the initialization action, if anyupgrades
- all actions defined for uprades
- Enclosing class:
- MigrationEngine
public static record MigrationEngine.MigrationComponent(String id, boolean internal, String pluginName, String featureName, String versionHandlerType, VersionHandler versionHandler, VersionStorage versionStorage, VersionConfiguration versionConfiguration, ActionConfiguration initialization, List<ActionConfiguration> upgrades)
extends Record
A migration component represents a versioned feature set
-
Constructor Summary
ConstructorDescriptionMigrationComponent
(String id, boolean internal, String pluginName, String featureName, String versionHandlerType, VersionHandler versionHandler, VersionStorage versionStorage, VersionConfiguration versionConfiguration, ActionConfiguration initialization, List<ActionConfiguration> upgrades) Creates an instance of aMigrationComponent
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefeatureName
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.Returns the value of theinitialization
record component.boolean
internal()
Returns the value of theinternal
record component.Returns the value of thepluginName
record component.final String
toString()
Returns a string representation of this record class.upgrades()
Returns the value of theupgrades
record component.Returns the value of theversionConfiguration
record component.Returns the value of theversionHandler
record component.Returns the value of theversionHandlerType
record component.Returns the value of theversionStorage
record component.
-
Constructor Details
-
MigrationComponent
public MigrationComponent(String id, boolean internal, String pluginName, String featureName, String versionHandlerType, VersionHandler versionHandler, VersionStorage versionStorage, VersionConfiguration versionConfiguration, ActionConfiguration initialization, List<ActionConfiguration> upgrades) Creates an instance of aMigrationComponent
record class.- Parameters:
id
- the value for theid
record componentinternal
- the value for theinternal
record componentpluginName
- the value for thepluginName
record componentfeatureName
- the value for thefeatureName
record componentversionHandlerType
- the value for theversionHandlerType
record componentversionHandler
- the value for theversionHandler
record componentversionStorage
- the value for theversionStorage
record componentversionConfiguration
- the value for theversionConfiguration
record componentinitialization
- the value for theinitialization
record componentupgrades
- the value for theupgrades
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
internal
Returns the value of theinternal
record component.- Returns:
- the value of the
internal
record component
-
pluginName
Returns the value of thepluginName
record component.- Returns:
- the value of the
pluginName
record component
-
featureName
Returns the value of thefeatureName
record component.- Returns:
- the value of the
featureName
record component
-
versionHandlerType
Returns the value of theversionHandlerType
record component.- Returns:
- the value of the
versionHandlerType
record component
-
versionHandler
Returns the value of theversionHandler
record component.- Returns:
- the value of the
versionHandler
record component
-
versionStorage
Returns the value of theversionStorage
record component.- Returns:
- the value of the
versionStorage
record component
-
versionConfiguration
Returns the value of theversionConfiguration
record component.- Returns:
- the value of the
versionConfiguration
record component
-
initialization
Returns the value of theinitialization
record component.- Returns:
- the value of the
initialization
record component
-
upgrades
Returns the value of theupgrades
record component.- Returns:
- the value of the
upgrades
record component
-