public class EditRepositoryImpl extends Object implements EditRepository
EditRepository.WebhookTypeNeeded
Constructor and Description |
---|
EditRepositoryImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
areDivergentBranchesSupported(@NotNull PartialVcsRepositoryData vcsRepositoryData) |
@NotNull List<DeploymentProject> |
getBambooSpecsPermittedDeploymentProjects(@NotNull PartialVcsRepositoryData vcsRepositoryData,
@NotNull DeploymentProjectService deploymentProjectService)
Returns a list of deployment projects which can be modified by Bamboo Specs stored in this repository.
|
@NotNull List<ProjectIdentifier> |
getBambooSpecsPermittedProjects(@NotNull PartialVcsRepositoryData vcsRepositoryData,
@NotNull ProjectManager projectManager) |
@NotNull List<RepositoryDataEntity> |
getBambooSpecsPermittedRepositories(@NotNull PartialVcsRepositoryData vcsRepositoryData)
Returns a list of repositories which can be used by Bamboo Specs stored in this repository.
|
@Nullable String |
getDefaultBranch(@NotNull PartialVcsRepositoryData vcsRepositoryData) |
@NotNull Map<String,String> |
getEditablePermissions(@NotNull Map<BambooPermission,String> permissionLabels) |
@NotNull List<String> |
getPermissionDependencies(@NotNull String permissionName) |
boolean |
isBambooSpecsCapable(@Nullable VcsRepositoryModuleDescriptor vcsRepositoryModuleDescriptor) |
boolean |
isBambooSpecsDetectionEnabled(@Nullable PartialVcsRepositoryData vcsRepositoryData)
Returns true if given repository has Bamboo Specs detection enabled, so any changes to these specs should trigger
update of Bamboo configuration.
|
boolean |
isBambooSpecsDetectionRequiresWebhooks(@Nullable PartialVcsRepositoryData vcsRepositoryData) |
boolean |
isBambooSpecsPermittedToAllProjects(@Nullable PartialVcsRepositoryData vcsRepositoryData)
Returns true if Bamboo Specs stored in this repository is permitted to modify configuration of all projects in
Bamboo.
|
boolean |
isBambooSpecsPermittedToAllProjectsEditable(boolean hasAdminPermission,
@NotNull BambooPermissionManager bambooPermissionManager) |
boolean |
isBambooSpecsPermittedToAllRepositories(@Nullable PartialVcsRepositoryData vcsRepositoryData,
@NotNull RssPermissionManager rssPermissionManager) |
boolean |
isBambooSpecsPermittedToAllRepositoriesEditable(boolean hasAdminPermission,
@NotNull BambooPermissionManager bambooPermissionManager) |
boolean |
isShowOnboardingDialog(@NotNull BambooUserManager bambooUserManager,
@Nullable com.atlassian.user.User user) |
@NotNull EditRepository.WebhookTypeNeeded |
webhookNeededByBambooSpecsDetection(@Nullable PartialVcsRepositoryData vcsRepositoryData) |
@NotNull public @NotNull Map<String,String> getEditablePermissions(@NotNull @NotNull Map<BambooPermission,String> permissionLabels)
getEditablePermissions
in interface EditRepository
@NotNull public @NotNull List<String> getPermissionDependencies(@NotNull @NotNull String permissionName)
getPermissionDependencies
in interface EditRepository
public boolean isBambooSpecsCapable(@Nullable @Nullable VcsRepositoryModuleDescriptor vcsRepositoryModuleDescriptor)
isBambooSpecsCapable
in interface EditRepository
public boolean isBambooSpecsDetectionEnabled(@Nullable @Nullable PartialVcsRepositoryData vcsRepositoryData)
EditRepository
isBambooSpecsDetectionEnabled
in interface EditRepository
public boolean isBambooSpecsPermittedToAllProjects(@Nullable @Nullable PartialVcsRepositoryData vcsRepositoryData)
EditRepository
isBambooSpecsPermittedToAllProjects
in interface EditRepository
public boolean isBambooSpecsPermittedToAllProjectsEditable(boolean hasAdminPermission, @NotNull @NotNull BambooPermissionManager bambooPermissionManager)
isBambooSpecsPermittedToAllProjectsEditable
in interface EditRepository
public boolean isBambooSpecsPermittedToAllRepositories(@Nullable @Nullable PartialVcsRepositoryData vcsRepositoryData, @NotNull @NotNull RssPermissionManager rssPermissionManager)
isBambooSpecsPermittedToAllRepositories
in interface EditRepository
public boolean isBambooSpecsPermittedToAllRepositoriesEditable(boolean hasAdminPermission, @NotNull @NotNull BambooPermissionManager bambooPermissionManager)
isBambooSpecsPermittedToAllRepositoriesEditable
in interface EditRepository
public boolean isBambooSpecsDetectionRequiresWebhooks(@Nullable @Nullable PartialVcsRepositoryData vcsRepositoryData)
isBambooSpecsDetectionRequiresWebhooks
in interface EditRepository
@NotNull public @NotNull EditRepository.WebhookTypeNeeded webhookNeededByBambooSpecsDetection(@Nullable @Nullable PartialVcsRepositoryData vcsRepositoryData)
webhookNeededByBambooSpecsDetection
in interface EditRepository
public boolean isShowOnboardingDialog(@NotNull @NotNull BambooUserManager bambooUserManager, @Nullable @Nullable com.atlassian.user.User user)
isShowOnboardingDialog
in interface EditRepository
@NotNull public @NotNull List<ProjectIdentifier> getBambooSpecsPermittedProjects(@NotNull @NotNull PartialVcsRepositoryData vcsRepositoryData, @NotNull @NotNull ProjectManager projectManager)
getBambooSpecsPermittedProjects
in interface EditRepository
@NotNull public @NotNull List<DeploymentProject> getBambooSpecsPermittedDeploymentProjects(@NotNull @NotNull PartialVcsRepositoryData vcsRepositoryData, @NotNull @NotNull DeploymentProjectService deploymentProjectService)
EditRepository
getBambooSpecsPermittedDeploymentProjects
in interface EditRepository
@NotNull public @NotNull List<RepositoryDataEntity> getBambooSpecsPermittedRepositories(@NotNull @NotNull PartialVcsRepositoryData vcsRepositoryData)
EditRepository
getBambooSpecsPermittedRepositories
in interface EditRepository
public boolean areDivergentBranchesSupported(@NotNull @NotNull PartialVcsRepositoryData vcsRepositoryData)
areDivergentBranchesSupported
in interface EditRepository
@Nullable public @Nullable String getDefaultBranch(@NotNull @NotNull PartialVcsRepositoryData vcsRepositoryData)
getDefaultBranch
in interface EditRepository
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.