public interface PlanRepositoryLinkDao extends BambooObjectDao<PlanRepositoryLink>
Modifier and Type | Method and Description |
---|---|
void |
detachAllRepositoriesFromPlan(@NotNull ImmutablePlan plan)
Remove all
PlanRepositoryLink defined for the . |
List<PlanIdentifier> |
getIdentifiersOfPlansUsingRepository(long repositoryId)
Get identifiers of Plans referencing a repository.
|
List<PlanIdentifier> |
getIdentifiersOfPlansUsingRepositoryOrItsDirectChildren(long repositoryId)
Get identifiers of Plans referencing a repository, either directly or through inheritance (only direct parent-child relationship is checked)
|
@Nullable PlanRepositoryLink |
getPlanRepositoryLink(@NotNull PlanIdentifier plan,
long repositoryId) |
@Nullable PlanRepositoryLink |
getPlanRepositoryLinkByName(@NotNull PlanIdentifier plan,
@NotNull String repositoryName) |
@NotNull List<PlanRepositoryLink> |
getPlanRepositoryLinks(@NotNull ImmutablePlan plan) |
@NotNull List<PlanRepositoryLink> |
getPlanRepositoryLinks(@NotNull PlanIdentifier plan) |
List<PlanRepositoryLink> |
getPlansUsingRepository(long repositoryId) |
boolean |
isRepositoryOrItsDirectChildrenUsedInPlans(long repositoryId)
Check if repository is used in plans
|
void |
removeLinksByParentRepositoryId(long parentId)
Removes all link objects where repository is direct child of a repository with given id.
|
void |
removeRepositoryFromPlan(@NotNull PlanRepositoryLink planRepository)
Remove single
PlanRepositoryLink . |
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
@NotNull @NotNull List<PlanRepositoryLink> getPlanRepositoryLinks(@NotNull @NotNull ImmutablePlan plan)
plan
- Plan
sorted by PlanRepositoryLink.getPosition()
@NotNull @NotNull List<PlanRepositoryLink> getPlanRepositoryLinks(@NotNull @NotNull PlanIdentifier plan)
plan
- Plan
sorted by PlanRepositoryLink.getPosition()
@Nullable @Nullable PlanRepositoryLink getPlanRepositoryLink(@NotNull @NotNull PlanIdentifier plan, long repositoryId)
plan
- repositoryId
- @Nullable @Nullable PlanRepositoryLink getPlanRepositoryLinkByName(@NotNull @NotNull PlanIdentifier plan, @NotNull @NotNull String repositoryName)
plan
- repositoryName
- void detachAllRepositoriesFromPlan(@NotNull @NotNull ImmutablePlan plan)
PlanRepositoryLink
defined for the . Does not delete RepositoryDataEntity
objects.plan
- void removeRepositoryFromPlan(@NotNull @NotNull PlanRepositoryLink planRepository)
PlanRepositoryLink
. Does not delete RepositoryDataEntity
planRepository
- List<PlanRepositoryLink> getPlansUsingRepository(long repositoryId)
repositoryId
- Plan
that reference a Source RepositoryList<PlanIdentifier> getIdentifiersOfPlansUsingRepository(long repositoryId)
repositoryId
- List<PlanIdentifier> getIdentifiersOfPlansUsingRepositoryOrItsDirectChildren(long repositoryId)
repositoryId
- boolean isRepositoryOrItsDirectChildrenUsedInPlans(long repositoryId)
repositoryId
- void removeLinksByParentRepositoryId(long parentId)
parentId
- Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.