Class GitConfigurationProviderImpl

java.lang.Object
com.atlassian.bamboo.repository.git.GitConfigurationProviderImpl
All Implemented Interfaces:
GitConfigurationProvider

public class GitConfigurationProviderImpl extends Object implements GitConfigurationProvider
  • Constructor Details

  • Method Details

    • getRepositoryUrl

      @NotNull public @NotNull String getRepositoryUrl(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
      Description copied from interface: GitConfigurationProvider
      Retrieves the repository URL from the provided VCS repository data.
      Specified by:
      getRepositoryUrl in interface GitConfigurationProvider
      Parameters:
      vcsRepositoryData - the VCS repository data
      Returns:
      the repository URL
    • getSubstitutedRepositoryUrl

      @NotNull public @NotNull String getSubstitutedRepositoryUrl(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
      Description copied from interface: GitConfigurationProvider
      Retrieves the repository URL from the provided VCS repository data, with variables substituted.
      Specified by:
      getSubstitutedRepositoryUrl in interface GitConfigurationProvider
      Parameters:
      vcsRepositoryData - the VCS repository data
      Returns:
      the substituted repository URL
    • usesRemoteAgentCache

      public boolean usesRemoteAgentCache(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
      Description copied from interface: GitConfigurationProvider
      Determines if the repository uses a remote agent cache based on the provided VCS repository data.
      Specified by:
      usesRemoteAgentCache in interface GitConfigurationProvider
      Parameters:
      vcsRepositoryData - the VCS repository data
      Returns:
      true if the repository uses a remote agent cache, false otherwise
    • getCredentialsBag

      @NotNull public @NotNull GitCredentialsBag getCredentialsBag(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
      Description copied from interface: GitConfigurationProvider
      Retrieves the git credentials bag from the provided VCS repository data.
      Specified by:
      getCredentialsBag in interface GitConfigurationProvider
      Parameters:
      vcsRepositoryData - the VCS repository data
      Returns:
      the Git credentials bag
    • substituteCredentialsBag

      @NotNull public @NotNull GitCredentialsBag substituteCredentialsBag(@NotNull @NotNull GitCredentialsBag originalGitCredentialsBag)
      Description copied from interface: GitConfigurationProvider
      Substitutes the git credentials bag with variable context and returns a new immutable object. The provided credentials bag is not modified; a new object is returned.
      Specified by:
      substituteCredentialsBag in interface GitConfigurationProvider
      Parameters:
      originalGitCredentialsBag - the credentials bag to transform
      Returns:
      the substituted Git credentials bag
    • getSubstitutedCredentialsBag

      @NotNull public @NotNull GitCredentialsBag getSubstitutedCredentialsBag(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
      Description copied from interface: GitConfigurationProvider
      Retrieves the substituted Git credentials bag from the provided VCS repository data. The credentials bag is substituted with variable context and a new immutable object is returned.
      Specified by:
      getSubstitutedCredentialsBag in interface GitConfigurationProvider
      Parameters:
      vcsRepositoryData - the VCS repository data
      Returns:
      the substituted Git credentials bag
    • getCacheKey

      @NotNull public @NotNull GitCacheKey getCacheKey(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
      Description copied from interface: GitConfigurationProvider
      Constructs a git cache key based on the provided VCS repository data. A git cache is an on-disk clone of a git repository.
      Specified by:
      getCacheKey in interface GitConfigurationProvider
      Parameters:
      vcsRepositoryData - the VCS repository data
      Returns:
      the git cache key