Package com.atlassian.bamboo.repository
Class RepositoryPredicates
java.lang.Object
com.atlassian.bamboo.repository.RepositoryPredicates
-
Method Summary
Modifier and TypeMethodDescriptionstatic Predicate<PlanRepositoryLink>
hasPlanRepositoryLinkEqualRepositoryId
(long repositoryId) Get a predicate that returns true forPlanRepositoryLink
which has equal repository idstatic Predicate<RepositoryDefinition>
hasRepositoryDefinitionEqualPluginKey
(@NotNull String pluginKey) Deprecated.static Predicate<RepositoryPositionProvider>
Get a predicate that returns true forPlanRepositoryDefinition
which is has position == 0 (is default)static Predicate<RepositoryDefinition>
Get a predicate that returns true forRepositoryDefinition
which is has position == 0 (is default)
-
Method Details
-
hasPlanRepositoryLinkEqualRepositoryId
public static Predicate<PlanRepositoryLink> hasPlanRepositoryLinkEqualRepositoryId(long repositoryId) Get a predicate that returns true forPlanRepositoryLink
which has equal repository id- Parameters:
repositoryId
- id to be matched withPlanRepositoryLink.getRepositoryDataEntity()
- Returns:
- Predicate object
-
hasRepositoryDefinitionEqualPluginKey
@Deprecated public static Predicate<RepositoryDefinition> hasRepositoryDefinitionEqualPluginKey(@NotNull @NotNull String pluginKey) Deprecated.since 5.15, useBambooPluginUtils.pluginKeyEquals(String)
Get a predicate that returns true forRepositoryDefinition
which has equal plugin key- Parameters:
pluginKey
- pluginKey is to be matched- Returns:
- Predicate object
-
isRepositoryDefinitionDefault
Get a predicate that returns true forRepositoryDefinition
which is has position == 0 (is default)- Returns:
- Predicate object
-
isPlanRepositoryDefinitionDefault
Get a predicate that returns true forPlanRepositoryDefinition
which is has position == 0 (is default)- Returns:
- Predicate object
-
BambooPluginUtils.pluginKeyEquals(String)