Class CreateServiceDeskRequestConfigTransform
java.lang.Object
com.codebarrel.automation.rulecomponent.jira.com.rproxy.goskope.common.legacytransform.IssueActionConfigFieldsTransform
com.codebarrel.automation.rulecomponent.jira.action.createsdrequest.CreateServiceDeskRequestConfigTransform
- All Implemented Interfaces:
ConfigTransform
@Component
public class CreateServiceDeskRequestConfigTransform
extends IssueActionConfigFieldsTransform
implements ConfigTransform
-
Constructor Summary
ConstructorsConstructorDescriptionCreateServiceDeskRequestConfigTransform(JiraDataService jiraDataService, UserKeyToAccountIdMapper userKeyMapper) -
Method Summary
Modifier and TypeMethodDescriptionmigrateData(TenantContext tenantContext, ComponentMigrationValidation migrationValidation, com.codebarrel.automation.api.config.ComponentConfigBean componentBean) Applies data migrations to the component based on the changes in theMigrationContext.transformSchema(int schemaVersion, String rawJSON, TenantActor tenantActor) Applies any outstanding schema changes to the componentvalidateMigration(TenantContext tenantContext, MigrationContext migrationContext, com.codebarrel.automation.api.config.ComponentConfigBean componentBean) Validates a migration on the provided componentMethods inherited from class com.codebarrel.automation.rulecomponent.jira.com.rproxy.goskope.common.legacytransform.IssueActionConfigFieldsTransform
migrateOperations, validateOperations
-
Constructor Details
-
CreateServiceDeskRequestConfigTransform
@Inject public CreateServiceDeskRequestConfigTransform(JiraDataService jiraDataService, UserKeyToAccountIdMapper userKeyMapper)
-
-
Method Details
-
transformSchema
Description copied from interface:ConfigTransformApplies any outstanding schema changes to the component- Specified by:
transformSchemain interfaceConfigTransform- Parameters:
schemaVersion- current version of the schemarawJSON- current JSON of the componenttenantActor- Tenant actor- Returns:
- transformed schema or rawJSON if no changes applied
-
validateMigration
public ComponentMigrationValidation validateMigration(TenantContext tenantContext, MigrationContext migrationContext, com.codebarrel.automation.api.config.ComponentConfigBean componentBean) Description copied from interface:ConfigTransformValidates a migration on the provided component- Specified by:
validateMigrationin interfaceConfigTransform- Parameters:
tenantContext- Tenant ContextmigrationContext- details of the current data migrationcomponentBean- component to check if it will be affected by the migration- Returns:
ComponentMigrationValidationindicating whether the component will be affected and, if so, how
-
migrateData
public ComponentMigrationResult migrateData(TenantContext tenantContext, ComponentMigrationValidation migrationValidation, com.codebarrel.automation.api.config.ComponentConfigBean componentBean) Description copied from interface:ConfigTransformApplies data migrations to the component based on the changes in theMigrationContext. This method will only be called with a validation that has changes.- Specified by:
migrateDatain interfaceConfigTransform- Parameters:
tenantContext- Tenant ContextmigrationValidation- details of the migrationcomponentBean- component to migrate- Returns:
ComponentMigrationResultindicating if any migration took place and the migrated component
-