public abstract class AbstractRepositoryAwareTaskExporter extends Object implements TaskDefinitionExporter
| Modifier and Type | Field and Description |
|---|---|
protected RepositoryDefinitionManager |
repositoryDefinitionManager |
| Constructor and Description |
|---|
AbstractRepositoryAwareTaskExporter(@NotNull RepositoryDefinitionManager repositoryDefinitionManager) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryIdentifier |
getNonDefaultRepositoryRef(@NotNull String repositoryString)
Get a repository reference Specs entity for a non-default repository.
|
@NotNull com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryIdentifier |
getNonDefaultRepositoryRef(@NotNull String repositorySelector,
@NotNull Map<String,String> configuration)
Get a Specs repository reference for a non-default repository.
|
protected @NotNull String |
getRepositoryIdString(@NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryIdentifierProperties repository,
@NotNull TaskContainer taskContainer)
Get database ID of a repository based on the passed identifier and task container.
|
@NotNull List<? extends VcsRepositoryData> |
getRepositoryListForTaskContainer(@NotNull TaskContainer taskContainer) |
protected boolean |
isDefaultRepositoryRef(@NotNull String repositoryString)
Whether the given repository identifier points to a default repository of a plan.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromYaml, toSpecsEntity, toSpecsEntity, toTaskConfiguration, toTaskConfiguration, toTaskConfiguration, toYaml, validateprotected final RepositoryDefinitionManager repositoryDefinitionManager
public AbstractRepositoryAwareTaskExporter(@NotNull
@NotNull RepositoryDefinitionManager repositoryDefinitionManager)
protected boolean isDefaultRepositoryRef(@NotNull
@NotNull String repositoryString)
repositoryString - repository identifier string from the task configuration@NotNull
public @NotNull com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryIdentifier getNonDefaultRepositoryRef(@NotNull
@NotNull String repositorySelector,
@NotNull
@NotNull Map<String,String> configuration)
repositorySelector - key to select repository identifier from the configurationconfiguration - task configurationIllegalArgumentException - if the repository selector points to a default repositoryIllegalStateException - if the repository does not exist@NotNull
public @NotNull com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryIdentifier getNonDefaultRepositoryRef(@NotNull
@NotNull String repositoryString)
repositoryString - repository identifier string from the task configurationIllegalArgumentException - if the repository selector points to a default repositoryIllegalStateException - if the repository does not exist@NotNull protected @NotNull String getRepositoryIdString(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryIdentifierProperties repository, @NotNull @NotNull TaskContainer taskContainer)
repository - Specs repository identifiertaskContainer - task containerIllegalArgumentException - if repository can't be found@NotNull public @NotNull List<? extends VcsRepositoryData> getRepositoryListForTaskContainer(@NotNull @NotNull TaskContainer taskContainer)
Copyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.