public class PlanRepositoryLinkHibernateDao extends BambooHibernateObjectDao<PlanRepositoryLink> implements PlanRepositoryLinkDao
Constructor and Description |
---|
PlanRepositoryLinkHibernateDao() |
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)
|
PlanRepositoryLink |
getPlanRepositoryLink(@NotNull PlanIdentifier plan,
long repositoryId) |
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, executeCountQuery, findAll, findById, merge, 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, merge, save, saveAll
@NotNull public @NotNull List<PlanRepositoryLink> getPlanRepositoryLinks(@NotNull @NotNull ImmutablePlan plan)
getPlanRepositoryLinks
in interface PlanRepositoryLinkDao
Plan
sorted by PlanRepositoryLink.getPosition()
@NotNull public @NotNull List<PlanRepositoryLink> getPlanRepositoryLinks(@NotNull @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 boolean isRepositoryOrItsDirectChildrenUsedInPlans(long repositoryId)
PlanRepositoryLinkDao
isRepositoryOrItsDirectChildrenUsedInPlans
in interface PlanRepositoryLinkDao
public PlanRepositoryLink getPlanRepositoryLink(@NotNull @NotNull PlanIdentifier plan, long repositoryId)
getPlanRepositoryLink
in interface PlanRepositoryLinkDao
public PlanRepositoryLink getPlanRepositoryLinkByName(@NotNull @NotNull PlanIdentifier plan, @NotNull @NotNull String repositoryName)
getPlanRepositoryLinkByName
in interface PlanRepositoryLinkDao
public void detachAllRepositoriesFromPlan(@NotNull @NotNull ImmutablePlan plan)
PlanRepositoryLinkDao
PlanRepositoryLink
defined for the . Does not delete RepositoryDataEntity
objects.detachAllRepositoriesFromPlan
in interface PlanRepositoryLinkDao
public void removeLinksByParentRepositoryId(long parentId)
PlanRepositoryLinkDao
removeLinksByParentRepositoryId
in interface PlanRepositoryLinkDao
public void removeRepositoryFromPlan(@NotNull @NotNull PlanRepositoryLink planRepository)
PlanRepositoryLinkDao
PlanRepositoryLink
. Does not delete RepositoryDataEntity
removeRepositoryFromPlan
in interface PlanRepositoryLinkDao
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.