Class GitSyncServiceImpl
Object
GitSyncServiceImpl
- All Implemented Interfaces:
GitSyncService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetConfigService(ConfigService configService) voidsetGitContentRepository(GitContentRepository gitContentRepository) voidsetGiteaApiClient(GiteaApiClient giteaApiClient) voidsetGitRepoConfigDao(GitRepoConfigDao gitRepoConfigDao) voidsetGitSyncLogDao(GitSyncLogDao gitSyncLogDao) voidsetOrchestrator(GitImportOrchestrator orchestrator) sync()Syncs all enabled repositories.Syncs a specific repository (e.g. triggered by a webhook).syncRepoForce(String repoFullName) Syncs a specific repository, re-importing even if the commit hasn't changed.
-
Constructor Details
-
GitSyncServiceImpl
public GitSyncServiceImpl()
-
-
Method Details
-
setGiteaApiClient
-
setGitSyncLogDao
-
setGitContentRepository
-
setOrchestrator
-
setConfigService
-
setGitRepoConfigDao
-
sync
Description copied from interface:GitSyncServiceSyncs all enabled repositories.- Specified by:
syncin interfaceGitSyncService- Returns:
- aggregated import result, or null if nothing to sync
-
syncRepo
Description copied from interface:GitSyncServiceSyncs a specific repository (e.g. triggered by a webhook).- Specified by:
syncRepoin interfaceGitSyncService- Parameters:
repoFullName- the full name of the repo (owner/name)- Returns:
- the import result, or null if not found or up-to-date
-
syncRepoForce
Description copied from interface:GitSyncServiceSyncs a specific repository, re-importing even if the commit hasn't changed.- Specified by:
syncRepoForcein interfaceGitSyncService- Parameters:
repoFullName- the full name of the repo (owner/name)- Returns:
- the import result, or null if not found
-