public interface EnvironmentRepositoryLinkDao extends BambooObjectDao<EnvironmentRepositoryLink>
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
@NotNull List<EnvironmentRepositoryLink> getEnvironmentRepositoryLinks(@NotNull InternalEnvironment environment)
environment
- Environment
sorted by EnvironmentRepositoryLink.getPosition()
@NotNull List<EnvironmentRepositoryLink> getEnvironmentRepositoryLinksForRepository(long repositoryId)
repositoryId
- @Nullable EnvironmentRepositoryLink getEnvironmentRepositoryLink(@NotNull InternalEnvironment environment, long repositoryId)
environment
- repositoryId
- void detachAllRepositoriesFromEnvironment(@NotNull InternalEnvironment environment)
PlanRepositoryLink
defined for the Environment
. Does not delete RepositoryDataEntity
objects.environment
- void detachAllRepositoriesFromEnvironment(@NotNull EnvironmentDeletionAdapter deletionAdapter)
PlanRepositoryLink
defined for the Environment
. Does not delete RepositoryDataEntity
objects.deletionAdapter
- void removeRepositoryFromEnvironment(@NotNull EnvironmentRepositoryLink environmentRepositoryLink)
PlanRepositoryLink
. Does not delete RepositoryDataEntity
environmentRepositoryLink
- @NotNull List<MutableEnvironment> getEnvironmentsUsingRepository(long repositoryId)
repositoryId
- repository idEnvironment
s using given repositoryEnvironmentRepositoryLink linkRepositoryToEnvironment(MutableEnvironment environment, RepositoryDataEntity repositoryDataEntity, int index)
environment
- repositoryDataEntity
- index
- Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.