@Singleton public class RepositoryResource extends Object
Constructor and Description |
---|
RepositoryResource(com.atlassian.applinks.api.ApplicationLinkService applicationLinkService,
com.atlassian.sal.api.ApplicationProperties applicationProperties,
BambooPermissionManager bambooPermissionManager,
BambooUserManager bambooUserManager,
CustomVariableContext customVariableContext,
VcsRepositoryConfigurationService repositoryConfigurationService,
VcsRepositoryManager vcsRepositoryManager,
VcsBambooSpecsConfigurator vcsBambooSpecsConfigurator,
VcsConfigurationHelper vcsConfigurationHelper,
com.atlassian.sal.api.message.I18nResolver i18nResolver) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createRepository(StashCreateRepositoryRequest createRepositoryRequest,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
javax.servlet.http.HttpServletRequest request)
Create BBS linked repository.
|
@Inject public RepositoryResource(com.atlassian.applinks.api.ApplicationLinkService applicationLinkService, com.atlassian.sal.api.ApplicationProperties applicationProperties, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager, CustomVariableContext customVariableContext, VcsRepositoryConfigurationService repositoryConfigurationService, VcsRepositoryManager vcsRepositoryManager, VcsBambooSpecsConfigurator vcsBambooSpecsConfigurator, VcsConfigurationHelper vcsConfigurationHelper, com.atlassian.sal.api.message.I18nResolver i18nResolver)
public javax.ws.rs.core.Response createRepository(@NotNull StashCreateRepositoryRequest createRepositoryRequest, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, @Context javax.servlet.http.HttpServletRequest request) throws WebValidationException
createRepositoryRequest
- new repository settings.WebValidationException
- when validation failsUnauthorisedException
- when user don't have global CREATE_REPOSITORY permissionCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.