@Internal public class RepositoryPredicates extends Object
Modifier and Type | Method and Description |
---|---|
static Predicate<PlanRepositoryLink> |
hasPlanRepositoryLinkEqualRepositoryId(long repositoryId)
Get a predicate that returns true for
PlanRepositoryLink which has equal repository id |
static Predicate<RepositoryDefinition> |
hasRepositoryDefinitionEqualPluginKey(@NotNull String pluginKey)
Deprecated.
since 5.15, use
BambooPluginUtils.pluginKeyEquals(String) |
static Predicate<RepositoryPositionProvider> |
isPlanRepositoryDefinitionDefault()
Get a predicate that returns true for
PlanRepositoryDefinition which is has position == 0 (is default) |
static Predicate<RepositoryDefinition> |
isRepositoryDefinitionDefault()
Get a predicate that returns true for
RepositoryDefinition which is has position == 0 (is default) |
public static Predicate<PlanRepositoryLink> hasPlanRepositoryLinkEqualRepositoryId(long repositoryId)
PlanRepositoryLink
which has equal repository idrepositoryId
- id to be matched with PlanRepositoryLink.getRepositoryDataEntity()
@Deprecated public static Predicate<RepositoryDefinition> hasRepositoryDefinitionEqualPluginKey(@NotNull @NotNull String pluginKey)
BambooPluginUtils.pluginKeyEquals(String)
RepositoryDefinition
which has equal plugin keypluginKey
- pluginKey is to be matchedpublic static Predicate<RepositoryDefinition> isRepositoryDefinitionDefault()
RepositoryDefinition
which is has position == 0 (is default)public static Predicate<RepositoryPositionProvider> isPlanRepositoryDefinitionDefault()
PlanRepositoryDefinition
which is has position == 0 (is default)Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.