|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepositoryDefinitionManager
Interface to handle access to repository data.
Method Summary | |
---|---|
java.util.List<RepositoryData> |
getGlobalRepositoryDefinitions()
|
PlanRepositoryLink |
getPlanRepositoryLink(Plan plan,
long repositoryId)
Get persistent representation of a relation between Plan and repository |
java.util.List<PlanRepositoryLink> |
getPlanRepositoryLinks(Plan plan)
Get persistent representation of relation between Plan and repositories |
java.util.List<PlanRepositoryLink> |
getPlansUsingRepository(long repositoryId)
|
RepositoryDataEntity |
getRepositoryDataEntity(long id)
Get persistent representation of a repository |
RepositoryDefinitionEntity |
getRepositoryDefinitionEntity(long id)
Deprecated. since 4.0 use getRepositoryDataEntity(long) |
java.util.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(java.util.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. |
long |
saveRepositoryDefinition(RepositoryDefinitionEntity repositoryData)
Deprecated. since 4.0 use saveRepositoryDefinition(RepositoryDataEntity) |
void |
saveRepositoryDefinitions(java.util.Collection<RepositoryDataEntity> repositoriesBeingCreated)
Saves all repository definitions in the collection. |
Method Detail |
---|
@Nullable PlanRepositoryLink getPlanRepositoryLink(@NotNull Plan plan, long repositoryId)
plan
- repositoryId
- @NotNull java.util.List<PlanRepositoryLink> getPlanRepositoryLinks(@NotNull Plan plan)
plan
- @Nullable RepositoryDataEntity getRepositoryDataEntity(long id)
id
-
@Deprecated @Nullable RepositoryDefinitionEntity getRepositoryDefinitionEntity(long id)
getRepositoryDataEntity(long)
id
-
@NotNull java.util.List<RepositoryDefinition> getRepositoryDefinitionsForPlan(@NotNull ImmutablePlan plan)
plan
-
void removeRepositoriesForPlan(Plan plan)
Plan
that are not global repositories.
plan
- long saveRepositoryDefinition(RepositoryDataEntity repositoryData)
repositoryData
-
@Deprecated long saveRepositoryDefinition(RepositoryDefinitionEntity repositoryData)
saveRepositoryDefinition(RepositoryDataEntity)
repositoryDefinitionEntity
-
void saveRepositoryDefinitions(@NotNull java.util.Collection<RepositoryDataEntity> repositoriesBeingCreated)
repositoriesBeingCreated
- long savePlanRepositoryWithDefinition(@NotNull PlanRepositoryLink planRepository)
RepositoryDataEntity
planRepository
-
void savePlanRepositoryLink(@NotNull PlanRepositoryLink planRepository)
void savePlanRepositoryLinks(@NotNull java.util.List<PlanRepositoryLink> planRepositories)
planRepositories
- void removeRepositoryIfUnused(RepositoryDataEntity repositoryDataEntity)
RepositoryChangeset
, removes it otherwise.
repositoryDataEntity
- void removeUnusedRepositories()
RepositoryChangeset
void removeRepositoryFromPlan(@NotNull PlanRepositoryLink planRepository)
removeRepositoryIfUnused(RepositoryDataEntity)
is called.
planRepository
- java.util.List<RepositoryData> getGlobalRepositoryDefinitions()
java.util.List<PlanRepositoryLink> getPlansUsingRepository(long repositoryId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |