public interface EnvironmentRepositoryLinkDao extends BambooObjectDao<EnvironmentRepositoryLink>
Modifier and Type | Method and Description |
---|---|
void |
detachAllRepositoriesFromEnvironment(EnvironmentDeletionAdapter deletionAdapter)
Remove all
PlanRepositoryLink defined for the Environment . |
void |
detachAllRepositoriesFromEnvironment(InternalEnvironment environment)
Remove all
PlanRepositoryLink defined for the Environment . |
EnvironmentRepositoryLink |
getEnvironmentRepositoryLink(InternalEnvironment environment,
long repositoryId) |
List<EnvironmentRepositoryLink> |
getEnvironmentRepositoryLinks(InternalEnvironment environment) |
List<EnvironmentRepositoryLink> |
getEnvironmentRepositoryLinksForRepository(long repositoryId) |
List<MutableEnvironment> |
getEnvironmentsUsingRepository(long repositoryId) |
void |
removeRepositoryFromEnvironment(EnvironmentRepositoryLink environmentRepositoryLink)
Remove single
PlanRepositoryLink . |
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 repositoryCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.