@Component public class RepositoryTestServiceImpl extends Object implements RepositoryTestService
Constructor and Description |
---|
RepositoryTestServiceImpl(RepositoryDefinitionManager repositoryDefinitionManager,
VcsRepositoryManager vcsRepositoryManager,
VcsRepositoryConfigurationService vcsRepositoryConfigurationService,
RssPermissionManager rssPermissionManager) |
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.
|
boolean |
deleteLinkedRepository(String repositoryName)
Deletes a linked repository.
|
boolean |
enableRss(String repositoryName)
Enables RSS and gives access to all projects for given repository
|
boolean |
isRssEnabled(String repositoryName) |
boolean |
revokeRSSAccessToAllProjects(String repositoryName)
Revokes RSS repository access to all projects
|
@Autowired public RepositoryTestServiceImpl(RepositoryDefinitionManager repositoryDefinitionManager, VcsRepositoryManager vcsRepositoryManager, VcsRepositoryConfigurationService vcsRepositoryConfigurationService, RssPermissionManager rssPermissionManager)
@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 boolean deleteLinkedRepository(String repositoryName)
RepositoryTestService
deleteLinkedRepository
in interface RepositoryTestService
repositoryName
- name of the linked repository to deletepublic void deleteAllLinkedRepositories()
RepositoryTestService
deleteAllLinkedRepositories
in interface RepositoryTestService
public boolean enableRss(String repositoryName)
RepositoryTestService
enableRss
in interface RepositoryTestService
repositoryName
- name of the linked repositorypublic boolean isRssEnabled(String repositoryName)
isRssEnabled
in interface RepositoryTestService
repositoryName
- name of the linked repositorypublic boolean revokeRSSAccessToAllProjects(String repositoryName)
RepositoryTestService
revokeRSSAccessToAllProjects
in interface RepositoryTestService
repositoryName
- name of the linked repositoryCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.