@Component public class RepositoryTestServiceImpl extends Object implements RepositoryTestService
Constructor and Description |
---|
RepositoryTestServiceImpl(RepositoryDefinitionManager repositoryDefinitionManager,
VcsRepositoryManager vcsRepositoryManager,
VcsRepositoryConfigurationService vcsRepositoryConfigurationService,
RssPermissionManager rssPermissionManager,
ProjectManager projectManager) |
Modifier and Type | Method and Description |
---|---|
@NotNull RestRepositoryDefinition |
createLinkedRepository(@NotNull RestRepositoryConfig repositoryConfig,
@NotNull 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 |
enableRss(String repositoryName,
String projectKey)
Enables RSS
|
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, ProjectManager projectManager)
@NotNull public @NotNull RestRepositoryDefinition createLinkedRepository(@NotNull @NotNull RestRepositoryConfig repositoryConfig, @NotNull @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 enableRss(String repositoryName, String projectKey)
RepositoryTestService
enableRss
in interface RepositoryTestService
repositoryName
- name of the project repositoryprojectKey
- project Keypublic 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 © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.