Interface MigrationContext


public interface MigrationContext
Exposes hooks to systems which may be required during config record migration.
  • Method Details

    • getPersistenceSession

      PersistenceSession getPersistenceSession()
      Returns:
      a PersistenceSession opened up for the current migration. use it to query the internal database.
    • getConfigurationManager

      ConfigurationManager getConfigurationManager()
      Returns:
      the ConfigurationManager used for interacting with the new resource config APIs. use this if you need to check if a resource already exists in the config resource collection. Do not modify the config resource collection directly.
    • getSystemManager

      SystemManager getSystemManager()
      Returns:
      the Gateway's SystemManager used for getting to well-known standard filesystem directories
    • getSystemEncryptionService

      SystemEncryptionService getSystemEncryptionService()
      Returns:
      the Gateway's SystemEncryptionService used for encrypting secrets from the old record-based API to the new resource-based API
    • getLog

      MigrationLog getLog()
      Returns:
      A custom log handler for messages related to migration strategies