Class GitImportOrchestratorImpl
Object
GitImportOrchestratorImpl
- All Implemented Interfaces:
GitImportOrchestrator
Orchestrates import of all artifacts from a manifest.
Discovers all Spring-managed
ArtifactImporter implementations,
sorts them by ArtifactImporter.getOrder(), and executes them sequentially.
After import, reconciles orphaned keys against the previous tracking state and
persists the updated tracking for this repo.-
Constructor Summary
ConstructorsConstructorDescriptionGitImportOrchestratorImpl(List<ArtifactImporter<?>> importers, GitManifestTrackingDao trackingDao, TransactionalImportRunner importRunner) -
Method Summary
Modifier and TypeMethodDescriptionimportFromManifest(GitManifest manifest, FileResolver resolver, String user, String repoFullName) Imports all artifacts declared in the manifest and reconciles orphans against the previous tracking state for this repo.
-
Constructor Details
-
GitImportOrchestratorImpl
@Autowired public GitImportOrchestratorImpl(List<ArtifactImporter<?>> importers, GitManifestTrackingDao trackingDao, TransactionalImportRunner importRunner)
-
-
Method Details
-
importFromManifest
public GitImportResult importFromManifest(GitManifest manifest, FileResolver resolver, String user, String repoFullName) Description copied from interface:GitImportOrchestratorImports all artifacts declared in the manifest and reconciles orphans against the previous tracking state for this repo.- Specified by:
importFromManifestin interfaceGitImportOrchestrator- Parameters:
manifest- the parsed manifestresolver- resolves file paths referenced in the manifestuser- the login of the user performing the importrepoFullName- the repo identifier (e.g. "owner/repo-name"), used for orphan tracking- Returns:
- aggregated import result
-