Class BitbucketRepositoryFinder
java.lang.Object
com.atlassian.bamboo.plugins.git.api.RepositoryFinder
com.atlassian.bamboo.plugins.bitbucket.events.BitbucketRepositoryFinder
-
Field Summary
Fields inherited from class com.atlassian.bamboo.plugins.git.api.RepositoryFinder
BAMBOO_REMOTE_TRIGGER_KEY, vcsLocationConfigurator
-
Constructor Summary
ConstructorDescriptionBitbucketRepositoryFinder
(CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, VcsRepositoryManager vcsRepositoryManager) -
Method Summary
Modifier and TypeMethodDescription@NotNull Stream<VcsRepositoryData>
findMatchingRepositories
(@NotNull AbstractBitbucketCloudEvent event) Finds and returns a Stream of VcsRepositoryData objects that match the specified AbstractBitbucketCloudEvent.protected String
Returns the plugin key for the repository.protected String
Returns the repository selector.Methods inherited from class com.atlassian.bamboo.plugins.git.api.RepositoryFinder
findMatchingRepositories, findRepositories, isRepositoryMatchingEvent
-
Constructor Details
-
BitbucketRepositoryFinder
@Inject public BitbucketRepositoryFinder(CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, VcsRepositoryManager vcsRepositoryManager)
-
-
Method Details
-
getPluginKey
Description copied from class:RepositoryFinder
Returns the plugin key for the repository. This method must be implemented by subclasses.- Specified by:
getPluginKey
in classRepositoryFinder
- Returns:
- the plugin key for the repository
-
getRepositorySelector
Description copied from class:RepositoryFinder
Returns the repository selector. This method must be implemented by subclasses.- Specified by:
getRepositorySelector
in classRepositoryFinder
- Returns:
- the repository selector
-
findMatchingRepositories
@NotNull public @NotNull Stream<VcsRepositoryData> findMatchingRepositories(@NotNull @NotNull AbstractBitbucketCloudEvent event) Finds and returns a Stream of VcsRepositoryData objects that match the specified AbstractBitbucketCloudEvent.- Parameters:
event
- the AbstractGithubEvent to match- Returns:
- a Stream of matching VcsRepositoryData objects
-