public abstract class AbstractRepositoryAwareTaskExporter extends Object implements TaskDefinitionExporter
| Modifier and Type | Field and Description |
|---|---|
protected RepositoryDefinitionManager |
repositoryDefinitionManager |
| Constructor and Description |
|---|
AbstractRepositoryAwareTaskExporter() |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryIdentifier |
getNonDefaultRepositoryRef(String repositoryString)
Get a repository reference Specs entity for a non-default repository.
|
com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryIdentifier |
getNonDefaultRepositoryRef(String repositorySelector,
Map<String,String> configuration)
Get a Specs repository reference for a non-default repository.
|
protected String |
getRepositoryIdString(com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryIdentifierProperties repository,
TaskContainer taskContainer)
Get database ID of a repository based on the passed identifier and task container.
|
List<? extends VcsRepositoryData> |
getRepositoryListForTaskContainer(TaskContainer taskContainer) |
protected boolean |
isDefaultRepositoryRef(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, waittoSpecsEntity, toSpecsEntity, toTaskConfiguration, toTaskConfiguration, validate@Autowired protected RepositoryDefinitionManager repositoryDefinitionManager
protected boolean isDefaultRepositoryRef(@NotNull
String repositoryString)
repositoryString - repository identifier string from the task configuration@NotNull
public com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryIdentifier getNonDefaultRepositoryRef(@NotNull
String repositorySelector,
@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 com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryIdentifier getNonDefaultRepositoryRef(@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 String getRepositoryIdString(@NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryIdentifierProperties repository, @NotNull TaskContainer taskContainer)
repository - Specs repository identifiertaskContainer - task containerIllegalArgumentException - if repository can't be found@NotNull public List<? extends VcsRepositoryData> getRepositoryListForTaskContainer(@NotNull TaskContainer taskContainer)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.