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- theVersionHandlertypeversionHandler- theVersionHandlerversionStorage- theVersionStorageversionConfiguration- the specificVersionConfigurationcreated by the associatedVersionHandlerinitialization- 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
ConstructorsConstructorDescriptionMigrationComponent(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 aMigrationComponentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefeatureNamerecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinitializationrecord component.booleaninternal()Returns the value of theinternalrecord component.Returns the value of thepluginNamerecord component.final StringtoString()Returns a string representation of this record class.upgrades()Returns the value of theupgradesrecord component.Returns the value of theversionConfigurationrecord component.Returns the value of theversionHandlerrecord component.Returns the value of theversionHandlerTyperecord component.Returns the value of theversionStoragerecord 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 aMigrationComponentrecord class.- Parameters:
id- the value for theidrecord componentinternal- the value for theinternalrecord componentpluginName- the value for thepluginNamerecord componentfeatureName- the value for thefeatureNamerecord componentversionHandlerType- the value for theversionHandlerTyperecord componentversionHandler- the value for theversionHandlerrecord componentversionStorage- the value for theversionStoragerecord componentversionConfiguration- the value for theversionConfigurationrecord componentinitialization- the value for theinitializationrecord componentupgrades- the value for theupgradesrecord 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 theidrecord component.- Returns:
- the value of the
idrecord component
-
internal
Returns the value of theinternalrecord component.- Returns:
- the value of the
internalrecord component
-
pluginName
Returns the value of thepluginNamerecord component.- Returns:
- the value of the
pluginNamerecord component
-
featureName
Returns the value of thefeatureNamerecord component.- Returns:
- the value of the
featureNamerecord component
-
versionHandlerType
Returns the value of theversionHandlerTyperecord component.- Returns:
- the value of the
versionHandlerTyperecord component
-
versionHandler
Returns the value of theversionHandlerrecord component.- Returns:
- the value of the
versionHandlerrecord component
-
versionStorage
Returns the value of theversionStoragerecord component.- Returns:
- the value of the
versionStoragerecord component
-
versionConfiguration
Returns the value of theversionConfigurationrecord component.- Returns:
- the value of the
versionConfigurationrecord component
-
initialization
Returns the value of theinitializationrecord component.- Returns:
- the value of the
initializationrecord component
-
upgrades
Returns the value of theupgradesrecord component.- Returns:
- the value of the
upgradesrecord component
-