public class BambooRepositoryUtils extends Object
repositories
.
Although this class is a singleton, all it's methods have been implemented as static to allow standard static method
usages anywhere in Java. The instance of this class is meant to be used in context where static access is not
possible (e.g. in Freemarker templates).Modifier and Type | Method and Description |
---|---|
static BambooRepositoryUtils |
getInstance()
Returns an instance of
BambooRepositoryUtils for usage in context where static access is not possible
(e.g. |
static Optional<VcsBuildWarningsUpdater> |
getRepositoryBuildWarningUpdater(Long repositoryId,
VcsRepositoryManager vcsRepositoryManager,
RepositoryDefinitionManager repositoryDefinitionManager,
org.apache.log4j.Logger log) |
static boolean |
isRepositoryTestConnectionAware(Repository repository)
Returns true if the given
Repository supports connection testing. |
@NotNull public static BambooRepositoryUtils getInstance()
BambooRepositoryUtils
for usage in context where static access is not possible
(e.g. in Freemarker templates).public static boolean isRepositoryTestConnectionAware(@Nullable Repository repository)
Repository
supports connection testing.repository
- repository instance to verifypublic static Optional<VcsBuildWarningsUpdater> getRepositoryBuildWarningUpdater(Long repositoryId, VcsRepositoryManager vcsRepositoryManager, RepositoryDefinitionManager repositoryDefinitionManager, org.apache.log4j.Logger log)
VcsBuildWarningsUpdater
if repository supports build warnings receiving.Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.