Interface EditRepository
- All Known Implementing Classes:
EditRepositoryImpl
public interface EditRepository
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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) getEditablePermissions
(@NotNull Map<BambooPermission, String> permissionLabels) 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) Deprecated.since 9.0boolean
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)
-
Method Details
-
getEditablePermissions
-
getPermissionDependencies
-
isBambooSpecsCapable
boolean isBambooSpecsCapable(@Nullable @Nullable VcsRepositoryModuleDescriptor vcsRepositoryModuleDescriptor) - Returns:
- boolean true if given repository type can store Bamboo Specs and notify about changes in it.
-
isBambooSpecsDetectionEnabled
boolean isBambooSpecsDetectionEnabled(@Nullable @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.- Returns:
- boolean true if enabled
-
isBambooSpecsPermittedToAllProjects
boolean isBambooSpecsPermittedToAllProjects(@Nullable @Nullable PartialVcsRepositoryData vcsRepositoryData) Returns true if Bamboo Specs stored in this repository is permitted to modify configuration of all projects in Bamboo.- Returns:
- boolean true if can modify all projects
-
isBambooSpecsPermittedToAllProjectsEditable
boolean isBambooSpecsPermittedToAllProjectsEditable(boolean hasAdminPermission, @NotNull @NotNull BambooPermissionManager bambooPermissionManager) - Returns:
- true if user is able to modify All projects access setting
-
isBambooSpecsPermittedToAllRepositories
boolean isBambooSpecsPermittedToAllRepositories(@Nullable @Nullable PartialVcsRepositoryData vcsRepositoryData, @NotNull @NotNull RssPermissionManager rssPermissionManager) - Returns:
- true if Bamboo Specs stored in this repository is permitted to access all linked repositories in Bamboo.
-
isBambooSpecsPermittedToAllRepositoriesEditable
boolean isBambooSpecsPermittedToAllRepositoriesEditable(boolean hasAdminPermission, @NotNull @NotNull BambooPermissionManager bambooPermissionManager) - Returns:
- true if user is able to modify All repositories access setting
-
isBambooSpecsDetectionRequiresWebhooks
@Deprecated boolean isBambooSpecsDetectionRequiresWebhooks(@Nullable @Nullable PartialVcsRepositoryData vcsRepositoryData) Deprecated.since 9.0- Returns:
- true only when detection of Bamboo Specs needs webhooks, otherwise false.
-
webhookNeededByBambooSpecsDetection
@NotNull @NotNull EditRepository.WebhookTypeNeeded webhookNeededByBambooSpecsDetection(@Nullable @Nullable PartialVcsRepositoryData vcsRepositoryData) - Returns:
- the type of the webhook needed by specs detection
- Since:
- 9.0
-
isShowOnboardingDialog
boolean isShowOnboardingDialog(@NotNull @NotNull BambooUserManager bambooUserManager, @Nullable @Nullable com.atlassian.user.User user) - Returns:
- true if specs onboarding dialog should be shown, false otherwise
-
getBambooSpecsPermittedProjects
@NotNull @NotNull List<ProjectIdentifier> getBambooSpecsPermittedProjects(@NotNull @NotNull PartialVcsRepositoryData vcsRepositoryData, @NotNull @NotNull ProjectManager projectManager) - Returns:
- a list of projects which can be modified by Bamboo Specs stored in this repository.
-
getBambooSpecsPermittedDeploymentProjects
@NotNull @NotNull List<DeploymentProject> getBambooSpecsPermittedDeploymentProjects(@NotNull @NotNull PartialVcsRepositoryData vcsRepositoryData, @NotNull @NotNull DeploymentProjectService deploymentProjectService) Returns a list of deployment projects which can be modified by Bamboo Specs stored in this repository. -
getBambooSpecsPermittedRepositories
@NotNull @NotNull List<RepositoryDataEntity> getBambooSpecsPermittedRepositories(@NotNull @NotNull PartialVcsRepositoryData vcsRepositoryData) Returns a list of repositories which can be used by Bamboo Specs stored in this repository. -
areDivergentBranchesSupported
- Returns:
- true only if plugin key of the repository supports divergent branches, otherwise false.
-
getDefaultBranch
@Nullable @Nullable String getDefaultBranch(@NotNull @NotNull PartialVcsRepositoryData vcsRepositoryData) - Returns:
- a name of default branch of the given repository. If repository does not have any branches returns null.
-