Interface RepositoryUpdateStep

All Superinterfaces:
UpdateStepTarget

@ExtensionPoint public interface RepositoryUpdateStep extends UpdateStepTarget
This is the main interface for "repository specific" data migration/update. Using this interface, SCM-Manager provides the possibility to change data structures between versions for a given type of data. This class should be used only for repository specific data (eg. the store is created with a call of forRepository in a store factory. To migrate global data, use a UpdateStep.

For information about UpdateStepTarget.getAffectedDataType() and UpdateStepTarget.getTargetVersion(), see the package documentation.

Since:
2.14.0
See Also:
  • Method Details

    • doUpdate

      void doUpdate(RepositoryUpdateContext repositoryUpdateContext) throws Exception
      Implement this to update the data to the new version for a specific repository. If any Exception is thrown, SCM-Manager will not start up.
      Parameters:
      repositoryUpdateContext - A context providing specifics about the repository, whose data should be migrated (eg. it id).
      Throws:
      Exception