Class LinkedDeploymentProjectCacheServiceImpl
java.lang.Object
com.atlassian.bamboo.deployments.cache.LinkedDeploymentProjectCacheServiceImpl
- All Implemented Interfaces:
LinkedDeploymentProjectCacheService
public class LinkedDeploymentProjectCacheServiceImpl
extends Object
implements LinkedDeploymentProjectCacheService
-
Constructor Summary
ConstructorDescriptionLinkedDeploymentProjectCacheServiceImpl
(CachedPlanManager cachedPlanManager, DeploymentProjectDao deploymentProjectDao, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(@NotNull InternalDeploymentProject deploymentProject) @NotNull List<LinkedDeploymentProject>
getPlanAndBranchesRelatedDeployments
(@NotNull PlanKey masterOrBranchKey) Retrieve list of deployment projects associated with any of the branches in the plan@NotNull List<LinkedDeploymentProject>
getRelatedDeployments
(@NotNull PlanKey planKey) void
init()
void
void
invalidate
(long deploymentProjectId) void
onNodePromoted
(@NotNull NodePromotedEvent event) void
refresh
(@NotNull InternalDeploymentProject deploymentProject)
-
Constructor Details
-
LinkedDeploymentProjectCacheServiceImpl
public LinkedDeploymentProjectCacheServiceImpl(CachedPlanManager cachedPlanManager, DeploymentProjectDao deploymentProjectDao, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
init
@PostConstruct public void init() -
initialiseCache
public void initialiseCache()- Specified by:
initialiseCache
in interfaceLinkedDeploymentProjectCacheService
-
onNodePromoted
-
invalidate
public void invalidate(long deploymentProjectId) - Specified by:
invalidate
in interfaceLinkedDeploymentProjectCacheService
-
add
-
refresh
- Specified by:
refresh
in interfaceLinkedDeploymentProjectCacheService
-
getRelatedDeployments
@NotNull public @NotNull List<LinkedDeploymentProject> getRelatedDeployments(@NotNull @NotNull PlanKey planKey) - Specified by:
getRelatedDeployments
in interfaceLinkedDeploymentProjectCacheService
-
getPlanAndBranchesRelatedDeployments
@NotNull public @NotNull List<LinkedDeploymentProject> getPlanAndBranchesRelatedDeployments(@NotNull @NotNull PlanKey masterOrBranchKey) Description copied from interface:LinkedDeploymentProjectCacheService
Retrieve list of deployment projects associated with any of the branches in the plan- Specified by:
getPlanAndBranchesRelatedDeployments
in interfaceLinkedDeploymentProjectCacheService
- Parameters:
masterOrBranchKey
- identifies master plan or branch- Returns:
- list of deployment projects
-