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 Details

  • Method Details

    • transformSchema

      public String transformSchema(int schemaVersion, String rawJSON, TenantActor tenantActor)
      Description copied from interface: ConfigTransform
      Applies any outstanding schema changes to the component
      Specified by:
      transformSchema in interface ConfigTransform
      Parameters:
      schemaVersion - current version of the schema
      rawJSON - current JSON of the component
      tenantActor - 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: ConfigTransform
      Validates a migration on the provided component
      Specified by:
      validateMigration in interface ConfigTransform
      Parameters:
      tenantContext - Tenant Context
      migrationContext - details of the current data migration
      componentBean - component to check if it will be affected by the migration
      Returns:
      ComponentMigrationValidation indicating 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: ConfigTransform
      Applies data migrations to the component based on the changes in the MigrationContext. This method will only be called with a validation that has changes.
      Specified by:
      migrateData in interface ConfigTransform
      Parameters:
      tenantContext - Tenant Context
      migrationValidation - details of the migration
      componentBean - component to migrate
      Returns:
      ComponentMigrationResult indicating if any migration took place and the migrated component