com.atlassian.bamboo.deployments.cache
Class LinkedDeploymentProjectCacheServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.deployments.cache.LinkedDeploymentProjectCacheServiceImpl
All Implemented Interfaces:
LinkedDeploymentProjectCacheService

public class LinkedDeploymentProjectCacheServiceImpl
extends java.lang.Object
implements LinkedDeploymentProjectCacheService


Constructor Summary
LinkedDeploymentProjectCacheServiceImpl(CachedPlanManager cachedPlanManager, DeploymentProjectDao deploymentProjectDao)
           
 
Method Summary
 void add(InternalDeploymentProject deploymentProject)
           
 java.util.List<LinkedDeploymentProject> getPlanAndBranchesRelatedDeployments(PlanKey masterOrBranchKey)
          Retrieve list of deployment projects associated with any of the branches in the plan
 java.util.List<LinkedDeploymentProject> getRelatedDeployments(PlanKey planKey)
           
 void initialiseCache()
           
 void invalidate(long deploymentProjectId)
           
 void refresh(InternalDeploymentProject deploymentProject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedDeploymentProjectCacheServiceImpl

public LinkedDeploymentProjectCacheServiceImpl(CachedPlanManager cachedPlanManager,
                                               DeploymentProjectDao deploymentProjectDao)
Method Detail

initialiseCache

public void initialiseCache()
Specified by:
initialiseCache in interface LinkedDeploymentProjectCacheService

invalidate

public void invalidate(long deploymentProjectId)
Specified by:
invalidate in interface LinkedDeploymentProjectCacheService

add

public void add(@NotNull
                InternalDeploymentProject deploymentProject)

refresh

public void refresh(@NotNull
                    InternalDeploymentProject deploymentProject)
Specified by:
refresh in interface LinkedDeploymentProjectCacheService

getRelatedDeployments

@NotNull
public java.util.List<LinkedDeploymentProject> getRelatedDeployments(@NotNull
                                                                             PlanKey planKey)
Specified by:
getRelatedDeployments in interface LinkedDeploymentProjectCacheService

getPlanAndBranchesRelatedDeployments

@NotNull
public java.util.List<LinkedDeploymentProject> getPlanAndBranchesRelatedDeployments(@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 interface LinkedDeploymentProjectCacheService
Parameters:
masterOrBranchKey - identifies master plan or branch
Returns:
list of deployment projects


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.