Interface NamespaceUpdateStep

All Superinterfaces:
UpdateStepTarget

@ExtensionPoint public interface NamespaceUpdateStep extends UpdateStepTarget
This is the main interface for "namespace 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 namespace specific data (eg. the store is created with a call of forNamespace 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.47.0
See Also:
  • Method Details

    • doUpdate

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