Class BranchStatusServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.chains.branches.BranchStatusServiceImpl
-
- All Implemented Interfaces:
BranchStatusService
public class BranchStatusServiceImpl extends Object implements BranchStatusService
-
-
Constructor Summary
Constructors Constructor Description BranchStatusServiceImpl(CachedPlanManager cachedPlanManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull BranchStatusLinkInfogetBranchStatusLinkInfo(@NotNull ImmutablePlan plan, @Nullable 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.booleanshouldDisplayBranchStatusLink(@NotNull ImmutablePlan plan)Whether a link to branch status page should be displayed for the given plan.
-
-
-
Constructor Detail
-
BranchStatusServiceImpl
@Inject public BranchStatusServiceImpl(CachedPlanManager cachedPlanManager)
-
-
Method Detail
-
getBranchStatusLinkInfo
@NotNull public @NotNull BranchStatusLinkInfo getBranchStatusLinkInfo(@NotNull @NotNull ImmutablePlan plan, @Nullable @Nullable String navigationSource)
Description copied from interface:BranchStatusServiceProvides 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.- Specified by:
getBranchStatusLinkInfoin interfaceBranchStatusService- Parameters:
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'- Returns:
- branch status link info
-
shouldDisplayBranchStatusLink
public boolean shouldDisplayBranchStatusLink(@NotNull @NotNull ImmutablePlan plan)Description copied from interface:BranchStatusServiceWhether a link to branch status page should be displayed for the given plan.- Specified by:
shouldDisplayBranchStatusLinkin interfaceBranchStatusService
-
-