Class InternalMigrationService


  • @ApplicationScoped
    public class InternalMigrationService
    extends Object

    Performs steps for project migration from within the workbench infrastructure. Requires that repositories have already been migrated to spaces by the external service.

    • Constructor Detail

      • InternalMigrationService

        @Inject
        public InternalMigrationService​(org.guvnor.common.services.project.service.WorkspaceProjectService projectService,
                                        org.guvnor.structure.server.config.ConfigurationService configService,
                                        org.guvnor.common.services.project.project.WorkspaceProjectMigrationService projectMigrationService,
                                        MigrationRepositoryServiceImpl repoService,
                                        org.kie.workbench.common.migration.cli.SystemAccess system,
                                        org.guvnor.structure.organizationalunit.config.SpaceConfigStorageRegistry spaceConfigStorageRegistry,
                                        org.guvnor.structure.backend.backcompat.BackwardCompatibleUtil backwardCompatibleUtil)
    • Method Detail

      • migrateAllProjects

        public void migrateAllProjects​(Path niogitDir)
      • createSpaceDirs

        public void createSpaceDirs​(Path niogitDir,
                                    List<org.guvnor.structure.server.config.ConfigGroup> orgUnitConfigs)
      • getOrgUnitsByRepo

        public Map<String,​String> getOrgUnitsByRepo​(List<org.guvnor.structure.server.config.ConfigGroup> orgUnitConfigs)