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