@Component public class RepositoryTestServiceImpl extends Object implements RepositoryTestService
Constructor and Description |
---|
RepositoryTestServiceImpl(RepositoryDefinitionManager repositoryDefinitionManager,
VcsRepositoryManager vcsRepositoryManager,
VcsRepositoryConfigurationService vcsRepositoryConfigurationService) |
Modifier and Type | Method and Description |
---|---|
RestRepositoryDefinition |
createLinkedRepository(RestRepositoryConfig repositoryConfig,
com.atlassian.user.User user)
Creates a linked repository as a specific user.
|
void |
deleteAllLinkedRepositories()
Deletes all linked repositories.
|
boolean |
deleteLinkedRepository(long repositoryId)
Deletes a linked repository.
|
@Autowired public RepositoryTestServiceImpl(RepositoryDefinitionManager repositoryDefinitionManager, VcsRepositoryManager vcsRepositoryManager, VcsRepositoryConfigurationService vcsRepositoryConfigurationService)
@NotNull public RestRepositoryDefinition createLinkedRepository(@NotNull RestRepositoryConfig repositoryConfig, @NotNull com.atlassian.user.User user)
RepositoryTestService
createLinkedRepository
in interface RepositoryTestService
repositoryConfig
- repository configurationuser
- user which is creating the repositorypublic boolean deleteLinkedRepository(long repositoryId)
RepositoryTestService
deleteLinkedRepository
in interface RepositoryTestService
repositoryId
- id of the linked repository to deletepublic void deleteAllLinkedRepositories()
RepositoryTestService
deleteAllLinkedRepositories
in interface RepositoryTestService
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.