public interface PlanRepositoryLinkDao extends BambooObjectDao<PlanRepositoryLink>
Modifier and Type | Method and Description |
---|---|
void |
detachAllRepositoriesFromPlan(ImmutablePlan plan)
Remove all
PlanRepositoryLink defined for the . |
List<PlanIdentifier> |
getIdentifiersOfPlansUsingRepository(long repositoryId)
Get identifiers of Plans referencing a repository.
|
PlanRepositoryLink |
getPlanRepositoryLink(PlanIdentifier plan,
long repositoryId) |
List<PlanRepositoryLink> |
getPlanRepositoryLinks(ImmutablePlan plan) |
List<PlanRepositoryLink> |
getPlansUsingRepository(long repositoryId) |
void |
removeRepositoryFromPlan(PlanRepositoryLink planRepository)
Remove single
PlanRepositoryLink . |
countAll, countWithRestriction, delete, deleteAll, executeReturnInt, executeReturnLong, findAll, findById, save, saveAll
@NotNull List<PlanRepositoryLink> getPlanRepositoryLinks(@NotNull ImmutablePlan plan)
plan
- Plan
sorted by PlanRepositoryLink.getPosition()
@Nullable PlanRepositoryLink getPlanRepositoryLink(@NotNull PlanIdentifier plan, long repositoryId)
plan
- repositoryId
- void detachAllRepositoriesFromPlan(@NotNull ImmutablePlan plan)
PlanRepositoryLink
defined for the . Does not delete RepositoryDataEntity
objects.plan
- void removeRepositoryFromPlan(@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
- Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.