Interface ConfigTransform

All Known Implementing Classes:
AddCustomerActionConfigTransform, AddWorklogActionConfigTransform, AssignConfigTransform, CommentActionConfigTransform, CreateServiceDeskRequestConfigTransform, FieldChangedTriggerConfigTransform, HipChatNotificationActionConfigTransform, IssueActionConfigTransformer, IssueConditionConfigTransform, LinkIssueActionConfigTransform, ManageWatchersActionConfigTransform, MicrosoftTeamsNotificationActionConfigTransform, OutgoingEmailActionConfigTransform, OutgoingWebhookActionConfigTransform, SetEntityPropertyActionConfigTransform, SlackNotificationActionConfigTransform, StrideNotificationActionConfigTransform, TransitionActionConfigTransform, TwilioNotificationActionConfigTransform, UserConditionConfigTransform

public interface ConfigTransform
  • Method Details

    • transformSchema

      String transformSchema(int schemaVersion, String rawJSON, TenantActor tenantActor)
      Applies any outstanding schema changes to the component
      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

      default ComponentMigrationValidation validateMigration(TenantContext tenantContext, MigrationContext migrationContext, com.codebarrel.automation.api.config.ComponentConfigBean componentBean)
      Validates a migration on the provided component
      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

      default ComponentMigrationResult migrateData(TenantContext tenantContext, ComponentMigrationValidation migrationValidation, com.codebarrel.automation.api.config.ComponentConfigBean componentBean)
      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.
      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