public class BranchStatusServiceImpl extends Object implements BranchStatusService
Constructor and Description |
---|
BranchStatusServiceImpl(CachedPlanManager cachedPlanManager) |
Modifier and Type | Method and Description |
---|---|
BranchStatusLinkInfo |
getBranchStatusLinkInfo(ImmutablePlan plan,
String navigationSource)
Provides information about branch status link for the given plan - whether the link should or should not be
displayed and what is the direct URL for this plan's VCS branch.
|
boolean |
shouldDisplayBranchStatusLink(ImmutablePlan plan)
Whether a link to branch status page should be displayed for the given plan.
|
@Inject public BranchStatusServiceImpl(CachedPlanManager cachedPlanManager)
@NotNull public BranchStatusLinkInfo getBranchStatusLinkInfo(@NotNull ImmutablePlan plan, @Nullable String navigationSource)
BranchStatusService
getBranchStatusLinkInfo
in interface BranchStatusService
plan
- plan, for which the URL is to be generatednavigationSource
- navigation source of the link (where is it going to appear), e.g. 'email' or 'header'public boolean shouldDisplayBranchStatusLink(@NotNull ImmutablePlan plan)
BranchStatusService
shouldDisplayBranchStatusLink
in interface BranchStatusService
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.