@PublicApi
public interface RepositoryDefinitionManager
| Modifier and Type | Method and Description |
|---|---|
List<RepositoryDataEntity> |
findRepositoriesByPluginKey(String pluginKey)
Given a pluginKey this will get you all of the repositories in Bamboo that were created for that key.
|
List<RepositoryData> |
getGlobalRepositoryDefinitions()
Get all Shared repositories current user has permission to use in his plans.
|
List<RepositoryData> |
getGlobalRepositoryDefinitionsUnrestricted()
Get all Shared Repositories without permission checking.
|
List<PlanIdentifier> |
getIdentifiersOfPlansUsingRepository(long repositoryId)
Get identifiers of Plans referencing a repository.
|
PlanRepositoryLink |
getPlanRepositoryLink(ImmutablePlan plan,
long repositoryId)
Get persistent representation of a relation between Plan and repository
|
List<PlanRepositoryLink> |
getPlanRepositoryLinks(ImmutablePlan plan)
Get persistent representation of relation between Plan and repositories
|
List<PlanRepositoryLink> |
getPlansUsingRepository(long repositoryId) |
RepositoryDataEntity |
getRepositoryDataEntity(long id)
Get persistent representation of a repository
|
List<RepositoryDefinition> |
getRepositoryDefinitionsForPlan(ImmutablePlan plan)
Get all repositories attached to a plan ordered by position.
|
void |
removeRepositoriesForPlan(Plan plan)
Remove all repositories from
Plan that are not global repositories. |
void |
removeRepositoryFromPlan(PlanRepositoryLink planRepository)
Removes relation between repository and plan.
|
void |
removeRepositoryIfUnused(RepositoryDataEntity repositoryDataEntity)
Marks repository for deletion if it is referenced by a
RepositoryChangeset, removes it otherwise. |
void |
removeUnusedRepositories()
Removes all repositories that has been previously markedForDeletion and are no longer
referenced by any
RepositoryChangeset |
void |
savePlanRepositoryLink(PlanRepositoryLink planRepository) |
void |
savePlanRepositoryLinks(List<PlanRepositoryLink> planRepositories)
Saves the collection of plan to repository relations.
|
long |
savePlanRepositoryWithDefinition(PlanRepositoryLink planRepository)
Saves plan to repository relation definition with cascade to
RepositoryDataEntity |
long |
saveRepositoryDefinition(RepositoryDataEntity repositoryData)
Save repository definition.
|
void |
saveRepositoryDefinitions(Collection<RepositoryDataEntity> repositoriesBeingCreated)
Saves all repository definitions in the collection.
|
@Nullable PlanRepositoryLink getPlanRepositoryLink(@NotNull ImmutablePlan plan, long repositoryId)
plan - repositoryId - @NotNull List<PlanRepositoryLink> getPlanRepositoryLinks(@NotNull ImmutablePlan plan)
plan - @Nullable RepositoryDataEntity getRepositoryDataEntity(long id)
id - @NotNull List<RepositoryDefinition> getRepositoryDefinitionsForPlan(@NotNull ImmutablePlan plan)
plan - void removeRepositoriesForPlan(Plan plan)
Plan that are not global repositories.plan - long saveRepositoryDefinition(RepositoryDataEntity repositoryData)
repositoryData - void saveRepositoryDefinitions(@NotNull
Collection<RepositoryDataEntity> repositoriesBeingCreated)
repositoriesBeingCreated - long savePlanRepositoryWithDefinition(@NotNull
PlanRepositoryLink planRepository)
RepositoryDataEntityplanRepository - void savePlanRepositoryLink(@NotNull
PlanRepositoryLink planRepository)
void savePlanRepositoryLinks(@NotNull
List<PlanRepositoryLink> planRepositories)
planRepositories - void removeRepositoryIfUnused(RepositoryDataEntity repositoryDataEntity)
RepositoryChangeset, removes it otherwise.repositoryDataEntity - void removeUnusedRepositories()
RepositoryChangesetvoid removeRepositoryFromPlan(@NotNull
PlanRepositoryLink planRepository)
removeRepositoryIfUnused(RepositoryDataEntity) is called.planRepository - List<RepositoryData> getGlobalRepositoryDefinitions()
List<RepositoryData> getGlobalRepositoryDefinitionsUnrestricted()
List<PlanRepositoryLink> getPlansUsingRepository(long repositoryId)
List<PlanIdentifier> getIdentifiersOfPlansUsingRepository(long repositoryId)
repositoryId - @NotNull List<RepositoryDataEntity> findRepositoriesByPluginKey(@NotNull String pluginKey)
pluginKey - The plugin key to search for.Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.