Package com.atlassian.bamboo.credentials
Class CredentialsUsageDetectorImpl
- java.lang.Object
-
- com.atlassian.bamboo.credentials.CredentialsUsageDetectorImpl
-
- All Implemented Interfaces:
CredentialsUsageDetector
public class CredentialsUsageDetectorImpl extends Object implements CredentialsUsageDetector
-
-
Constructor Summary
Constructors Constructor Description CredentialsUsageDetectorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SharedCredentialsInEnvironments
getCredentialsInAllEnvironments(Long sharedCredentialsId)
SharedCredentialsInJobs
getCredentialsInAllPlans(Long sharedCredentialsId)
SharedCredentialsInRepositories
getCredentialsInAllRepositories(Long sharedCredentialsId)
SharedCredentialsInJobs
getCredentialsInProjectPlans(Long sharedCredentialsId, Project project)
SharedCredentialsInRepositories
getCredentialsInProjectRepositories(Long sharedCredentialsId, Project project)
Set<Long>
getProjectSharedCredentialsForPlanTasks(ImmutableChain immutableChain)
boolean
hasProjectSharedCredentialsInRepository(VcsRepositoryData vcsRepositoryData)
void
validateProjectSharedCredentialsNotUsedInRepositories(CredentialsData credentials, Project project)
-
-
-
Method Detail
-
getCredentialsInAllPlans
public SharedCredentialsInJobs getCredentialsInAllPlans(Long sharedCredentialsId)
- Specified by:
getCredentialsInAllPlans
in interfaceCredentialsUsageDetector
-
getCredentialsInProjectPlans
public SharedCredentialsInJobs getCredentialsInProjectPlans(Long sharedCredentialsId, Project project)
- Specified by:
getCredentialsInProjectPlans
in interfaceCredentialsUsageDetector
-
getCredentialsInAllEnvironments
public SharedCredentialsInEnvironments getCredentialsInAllEnvironments(Long sharedCredentialsId)
- Specified by:
getCredentialsInAllEnvironments
in interfaceCredentialsUsageDetector
-
getCredentialsInAllRepositories
public SharedCredentialsInRepositories getCredentialsInAllRepositories(Long sharedCredentialsId)
- Specified by:
getCredentialsInAllRepositories
in interfaceCredentialsUsageDetector
-
getCredentialsInProjectRepositories
public SharedCredentialsInRepositories getCredentialsInProjectRepositories(Long sharedCredentialsId, Project project)
- Specified by:
getCredentialsInProjectRepositories
in interfaceCredentialsUsageDetector
-
validateProjectSharedCredentialsNotUsedInRepositories
public void validateProjectSharedCredentialsNotUsedInRepositories(CredentialsData credentials, Project project) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- Specified by:
validateProjectSharedCredentialsNotUsedInRepositories
in interfaceCredentialsUsageDetector
- Throws:
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
-
hasProjectSharedCredentialsInRepository
public boolean hasProjectSharedCredentialsInRepository(VcsRepositoryData vcsRepositoryData)
- Specified by:
hasProjectSharedCredentialsInRepository
in interfaceCredentialsUsageDetector
-
getProjectSharedCredentialsForPlanTasks
public Set<Long> getProjectSharedCredentialsForPlanTasks(ImmutableChain immutableChain)
- Specified by:
getProjectSharedCredentialsForPlanTasks
in interfaceCredentialsUsageDetector
-
-