Interface IPreValueMigrator
Defines a service migrating preValues.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_8_0_0.DataTypes
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface IPreValueMigrator
Methods
View SourceCanMigrate(String)
Determines whether this migrator can migrate a data type.
Declaration
bool CanMigrate(string editorAlias)
Parameters
Type | Name | Description |
---|---|---|
System.String | editorAlias | The data type editor alias. |
Returns
Type | Description |
---|---|
System.Boolean |
GetConfiguration(Int32, String, Dictionary<String, PreValueDto>)
Gets the configuration object corresponding to preValue.
Declaration
object GetConfiguration(int dataTypeId, string editorAlias, Dictionary<string, PreValueDto> preValues)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | dataTypeId | The data type identifier. |
System.String | editorAlias | The data type editor alias. |
Dictionary<System.String, PreValueDto> | preValues | PreValues. |
Returns
Type | Description |
---|---|
System.Object |
GetNewAlias(String)
Gets the v8 codebase data type editor alias.
Declaration
string GetNewAlias(string editorAlias)
Parameters
Type | Name | Description |
---|---|---|
System.String | editorAlias | The original v7 codebase editor alias. |
Returns
Type | Description |
---|---|
System.String |
Remarks
This is used to validate that the migrated configuration can be parsed
by the new property editor. Return null
to bypass this validation,
when for instance we know it will fail, and another, later migration will
deal with it.