Package com.atlassian.bamboo.repository
Class RepositoryPredicates
- java.lang.Object
-
- com.atlassian.bamboo.repository.RepositoryPredicates
-
@Internal public class RepositoryPredicates extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Predicate<PlanRepositoryLink>
hasPlanRepositoryLinkEqualRepositoryId(long repositoryId)
Get a predicate that returns true forPlanRepositoryLink
which has equal repository idstatic Predicate<RepositoryDefinition>
hasRepositoryDefinitionEqualPluginKey(@NotNull String pluginKey)
Deprecated.since 5.15, useBambooPluginUtils.pluginKeyEquals(String)
static Predicate<RepositoryPositionProvider>
isPlanRepositoryDefinitionDefault()
Get a predicate that returns true forPlanRepositoryDefinition
which is has position == 0 (is default)static Predicate<RepositoryDefinition>
isRepositoryDefinitionDefault()
Get a predicate that returns true forRepositoryDefinition
which is has position == 0 (is default)
-
-
-
Method Detail
-
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
public static Predicate<RepositoryDefinition> isRepositoryDefinitionDefault()
Get a predicate that returns true forRepositoryDefinition
which is has position == 0 (is default)- Returns:
- Predicate object
-
isPlanRepositoryDefinitionDefault
public static Predicate<RepositoryPositionProvider> isPlanRepositoryDefinitionDefault()
Get a predicate that returns true forPlanRepositoryDefinition
which is has position == 0 (is default)- Returns:
- Predicate object
-
-