@Singleton public class StashBulkActionsResource extends Object
Constructor and Description |
---|
StashBulkActionsResource(com.atlassian.sal.api.ApplicationProperties applicationProperties,
BitbucketSeverMirrorHelper mirrorHelper,
BambooPermissionManager permissionManager,
PlanManager planManager,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
RepositoryDefinitionManager repositoryDefinitionManager,
VcsRepositoryConfigurationService vcsRepositoryConfigurationService,
StashClientProvider stashClientProvider) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
updateMirrors(String appLinkId,
BulkUpdateMirrorRequest updateRequest)
Bulk update of mirrors for all repositories connected to Bitbucket Server by applink id.
|
@Inject public StashBulkActionsResource(com.atlassian.sal.api.ApplicationProperties applicationProperties, BitbucketSeverMirrorHelper mirrorHelper, BambooPermissionManager permissionManager, PlanManager planManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, RepositoryDefinitionManager repositoryDefinitionManager, VcsRepositoryConfigurationService vcsRepositoryConfigurationService, StashClientProvider stashClientProvider)
public javax.ws.rs.core.Response updateMirrors(String appLinkId, BulkUpdateMirrorRequest updateRequest) throws WebValidationException
appLinkId
- id of applink which used for repositoryupdateRequest
- set of configuration for updateStashPageEntity
if dryRun option is providedWebValidationException
- if user has no OAuth authorization for Bitbucket Server, or provided wrong mirror idCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.