public class PlanRepositoryLinkHibernateDao extends BambooHibernateObjectDao<PlanRepositoryLink> implements PlanRepositoryLinkDao
Constructor and Description |
---|
PlanRepositoryLinkHibernateDao() |
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.
|
List<PlanIdentifier> |
getIdentifiersOfPlansUsingRepositoryOrItsDirectChildren(long repositoryId)
Get identifiers of Plans referencing a repository, either directly or through inheritance (only direct parent-child relationship is checked)
|
PlanRepositoryLink |
getPlanRepositoryLink(PlanIdentifier plan,
long repositoryId) |
List<PlanRepositoryLink> |
getPlanRepositoryLinks(ImmutablePlan plan) |
List<PlanRepositoryLink> |
getPlanRepositoryLinks(PlanIdentifier plan) |
List<PlanRepositoryLink> |
getPlansUsingRepository(long repositoryId) |
void |
removeRepositoryFromPlan(PlanRepositoryLink planRepository)
Remove single
PlanRepositoryLink . |
countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countWithRestriction, delete, deleteAll, findAll, findById, save, saveAll
@NotNull public List<PlanRepositoryLink> getPlanRepositoryLinks(@NotNull ImmutablePlan plan)
getPlanRepositoryLinks
in interface PlanRepositoryLinkDao
Plan
sorted by PlanRepositoryLink.getPosition()
@NotNull public List<PlanRepositoryLink> getPlanRepositoryLinks(@NotNull PlanIdentifier plan)
getPlanRepositoryLinks
in interface PlanRepositoryLinkDao
Plan
sorted by PlanRepositoryLink.getPosition()
public List<PlanRepositoryLink> getPlansUsingRepository(long repositoryId)
getPlansUsingRepository
in interface PlanRepositoryLinkDao
Plan
that reference a Source Repositorypublic List<PlanIdentifier> getIdentifiersOfPlansUsingRepository(long repositoryId)
PlanRepositoryLinkDao
getIdentifiersOfPlansUsingRepository
in interface PlanRepositoryLinkDao
public List<PlanIdentifier> getIdentifiersOfPlansUsingRepositoryOrItsDirectChildren(long repositoryId)
PlanRepositoryLinkDao
getIdentifiersOfPlansUsingRepositoryOrItsDirectChildren
in interface PlanRepositoryLinkDao
public PlanRepositoryLink getPlanRepositoryLink(@NotNull PlanIdentifier plan, long repositoryId)
getPlanRepositoryLink
in interface PlanRepositoryLinkDao
public void detachAllRepositoriesFromPlan(@NotNull ImmutablePlan plan)
PlanRepositoryLinkDao
PlanRepositoryLink
defined for the . Does not delete RepositoryDataEntity
objects.detachAllRepositoriesFromPlan
in interface PlanRepositoryLinkDao
public void removeRepositoryFromPlan(@NotNull PlanRepositoryLink planRepository)
PlanRepositoryLinkDao
PlanRepositoryLink
. Does not delete RepositoryDataEntity
removeRepositoryFromPlan
in interface PlanRepositoryLinkDao
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.