public class RepositoryResource extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RepositoryResource.RestEnableContainer |
Constructor and Description |
---|
RepositoryResource(com.atlassian.sal.api.ApplicationProperties applicationProperties,
CachedPlanManager cachedPlanManager,
VcsRepositoryManager vcsRepositoryManager,
RepositoryDefinitionManager repositoryDefinitionManager,
BambooPermissionManager bambooPermissionManager,
CustomVariableContext customVariableContext,
ValidationService validationService,
ValidationFunctionFactory validationFunctionFactory,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
VcsConfigurationHelper vcsConfigurationHelper,
VcsRepositoryConfigurationService vcsRepositoryConfigurationService,
RssPermissionManager rssPermissionManager,
FeatureManager featureManager,
CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager,
RssDetectionService rssDetectionService,
BambooSpecsManager bambooSpecsManager,
com.atlassian.event.api.EventPublisher eventPublisher,
SpecsConsumerFactory specsConsumerFactory,
EnvironmentService environmentService,
ProjectManager projectManager) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
enableAllProjectsAccess(Long repositoryId,
@Nullable RepositoryResource.RestEnableContainer enableContainer) |
javax.ws.rs.core.Response |
enableAllRepositoriesAccess(Long repositoryId,
@Nullable RepositoryResource.RestEnableContainer enableContainer) |
javax.ws.rs.core.Response |
enableCi(Long repositoryId,
@Nullable RepositoryResource.RestEnableContainer enableContainer) |
javax.ws.rs.core.Response |
enableProjectCreation(Long repositoryId,
@Nullable RepositoryResource.RestEnableContainer enableContainer) |
RestRepositoryList |
findRepository(String searchTerm,
javax.ws.rs.core.UriInfo uriInfo) |
RestRepositoryUsageModel |
findUsage(@NotNull Long repositoryId,
int maxPlans,
int maxEnvironments) |
List<RestRepository> |
getRssRepositoriesAllowedToAccessRepository(Long targetRepositoryId) |
RestVcsLocationSpecsStatus |
getSpecsDetectionStatus(long repositoryId,
@Nullable String branch,
@Nullable Integer maxResults) |
javax.ws.rs.core.Response |
grantRssRepositoryAccess(Long targetRepositoryId,
RestIdContainer idContainer,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
revokePermissionToUseRepositoryByRssRepo(Long targetRepositoryId,
Long repositoryId) |
RestRepositoryList |
searchAvailableRepositories(Long targetRepositoryId,
String searchTerm,
javax.ws.rs.core.UriInfo uriInfo) |
RestBranchList |
searchSpecsBranches(long repositoryId,
String searchTerm,
javax.ws.rs.core.UriInfo uriInfo) |
RestRepositoryConnectionResult |
testConnection(@NotNull Map<String,Object> requestData) |
javax.ws.rs.core.Response |
triggerSpecsScanning(@Nullable Long id,
@Nullable Long repositoryId,
@Nullable String name,
@Nullable String repositoryName) |
javax.ws.rs.core.Response |
triggerSpecsScanning(@NotNull Long repositoryId,
@Nullable String branch) |
public RepositoryResource(com.atlassian.sal.api.ApplicationProperties applicationProperties, CachedPlanManager cachedPlanManager, VcsRepositoryManager vcsRepositoryManager, RepositoryDefinitionManager repositoryDefinitionManager, BambooPermissionManager bambooPermissionManager, CustomVariableContext customVariableContext, ValidationService validationService, ValidationFunctionFactory validationFunctionFactory, com.atlassian.sal.api.message.I18nResolver i18nResolver, VcsConfigurationHelper vcsConfigurationHelper, VcsRepositoryConfigurationService vcsRepositoryConfigurationService, RssPermissionManager rssPermissionManager, FeatureManager featureManager, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, RssDetectionService rssDetectionService, BambooSpecsManager bambooSpecsManager, com.atlassian.event.api.EventPublisher eventPublisher, SpecsConsumerFactory specsConsumerFactory, EnvironmentService environmentService, ProjectManager projectManager)
public RestRepositoryConnectionResult testConnection(@NotNull @NotNull Map<String,Object> requestData) throws Exception
Exception
public javax.ws.rs.core.Response enableCi(Long repositoryId, @Nullable @Nullable RepositoryResource.RestEnableContainer enableContainer) throws WebValidationException
WebValidationException
public javax.ws.rs.core.Response enableAllProjectsAccess(Long repositoryId, @Nullable @Nullable RepositoryResource.RestEnableContainer enableContainer) throws WebValidationException
WebValidationException
public javax.ws.rs.core.Response enableAllRepositoriesAccess(Long repositoryId, @Nullable @Nullable RepositoryResource.RestEnableContainer enableContainer) throws WebValidationException
WebValidationException
public javax.ws.rs.core.Response enableProjectCreation(Long repositoryId, @Nullable @Nullable RepositoryResource.RestEnableContainer enableContainer) throws WebValidationException
WebValidationException
public javax.ws.rs.core.Response grantRssRepositoryAccess(Long targetRepositoryId, RestIdContainer idContainer, @Context javax.ws.rs.core.UriInfo uriInfo) throws NotFoundException, WebValidationException
public RestRepositoryList searchAvailableRepositories(Long targetRepositoryId, String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo) throws NotFoundException
NotFoundException
public List<RestRepository> getRssRepositoriesAllowedToAccessRepository(Long targetRepositoryId) throws NotFoundException
NotFoundException
public javax.ws.rs.core.Response revokePermissionToUseRepositoryByRssRepo(Long targetRepositoryId, Long repositoryId) throws NotFoundException, WebValidationException
public RestRepositoryList findRepository(String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo)
public RestBranchList searchSpecsBranches(long repositoryId, String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
WebValidationException
public RestVcsLocationSpecsStatus getSpecsDetectionStatus(long repositoryId, @Nullable @Nullable String branch, @Nullable @Nullable Integer maxResults)
public javax.ws.rs.core.Response triggerSpecsScanning(@Nullable @Nullable Long id, @Nullable @Nullable Long repositoryId, @Nullable @Nullable String name, @Nullable @Nullable String repositoryName) throws WebValidationException
WebValidationException
public javax.ws.rs.core.Response triggerSpecsScanning(@NotNull @NotNull Long repositoryId, @Nullable @Nullable String branch) throws WebValidationException
WebValidationException
public RestRepositoryUsageModel findUsage(@NotNull @NotNull Long repositoryId, int maxPlans, int maxEnvironments)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.