Class GitSyncServiceImpl

Object
GitSyncServiceImpl
All Implemented Interfaces:
GitSyncService

@Service public class GitSyncServiceImpl extends Object implements GitSyncService
  • Constructor Details

    • GitSyncServiceImpl

      public GitSyncServiceImpl()
  • Method Details

    • setGiteaApiClient

      @Autowired public void setGiteaApiClient(GiteaApiClient giteaApiClient)
    • setGitSyncLogDao

      @Autowired public void setGitSyncLogDao(GitSyncLogDao gitSyncLogDao)
    • setGitContentRepository

      @Autowired public void setGitContentRepository(GitContentRepository gitContentRepository)
    • setOrchestrator

      @Autowired public void setOrchestrator(GitImportOrchestrator orchestrator)
    • setConfigService

      @Autowired public void setConfigService(ConfigService configService)
    • setGitRepoConfigDao

      @Autowired public void setGitRepoConfigDao(GitRepoConfigDao gitRepoConfigDao)
    • sync

      public GitImportResult sync()
      Description copied from interface: GitSyncService
      Syncs all enabled repositories.
      Specified by:
      sync in interface GitSyncService
      Returns:
      aggregated import result, or null if nothing to sync
    • syncRepo

      public GitImportResult syncRepo(String repoFullName)
      Description copied from interface: GitSyncService
      Syncs a specific repository (e.g. triggered by a webhook).
      Specified by:
      syncRepo in interface GitSyncService
      Parameters:
      repoFullName - the full name of the repo (owner/name)
      Returns:
      the import result, or null if not found or up-to-date
    • syncRepoForce

      public GitImportResult syncRepoForce(String repoFullName)
      Description copied from interface: GitSyncService
      Syncs a specific repository, re-importing even if the commit hasn't changed.
      Specified by:
      syncRepoForce in interface GitSyncService
      Parameters:
      repoFullName - the full name of the repo (owner/name)
      Returns:
      the import result, or null if not found