com.atlassian.bamboo.repository
Interface PlanRepositoryLinkDao
- All Superinterfaces:
- BambooObjectDao<PlanRepositoryLink>
- All Known Implementing Classes:
- PlanRepositoryLinkHibernateDao
public interface PlanRepositoryLinkDao
- extends BambooObjectDao<PlanRepositoryLink>
- Since:
- 3.4
getPlanRepositoryLinks
@NotNull
java.util.List<PlanRepositoryLink> getPlanRepositoryLinks(@NotNull
ImmutablePlan plan)
- Parameters:
plan
-
- Returns:
- list of Source Repository relationships defined for the
Plan
sorted by PlanRepositoryLink.getPosition()
getPlanRepositoryLink
@Nullable
PlanRepositoryLink getPlanRepositoryLink(@NotNull
PlanIdentifier plan,
long repositoryId)
- Parameters:
plan
- repositoryId
-
- Returns:
- relationship between plan and repository if it exists, null otherwise
detachAllRepositoriesFromPlan
void detachAllRepositoriesFromPlan(@NotNull
ImmutablePlan plan)
- Remove all
PlanRepositoryLink
defined for the . Does not delete RepositoryDataEntity
objects.
- Parameters:
plan
-
removeRepositoryFromPlan
void removeRepositoryFromPlan(@NotNull
PlanRepositoryLink planRepository)
- Remove single
PlanRepositoryLink
. Does not delete RepositoryDataEntity
- Parameters:
planRepository
-
getPlansUsingRepository
java.util.List<PlanRepositoryLink> getPlansUsingRepository(long repositoryId)
- Parameters:
repositoryId
-
- Returns:
- list of
Plan
that reference a Source Repository
Copyright © 2012 Atlassian. All Rights Reserved.