|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.repository.RepositoryDefinitionManagerImpl
public class RepositoryDefinitionManagerImpl
Constructor Summary | |
---|---|
RepositoryDefinitionManagerImpl(RepositoryDefinitionDao repositoryDefinitionDao,
PlanRepositoryLinkDao planRepositoryLinkDao)
|
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)
Get persistent representation of a repository |
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)
Save repository definition. |
void |
saveRepositoryDefinitions(java.util.Collection<RepositoryDataEntity> repositoriesBeingCreated)
Saves all repository definitions in the collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryDefinitionManagerImpl(RepositoryDefinitionDao repositoryDefinitionDao, PlanRepositoryLinkDao planRepositoryLinkDao)
Method Detail |
---|
public PlanRepositoryLink getPlanRepositoryLink(@NotNull Plan plan, long repositoryId)
RepositoryDefinitionManager
getPlanRepositoryLink
in interface RepositoryDefinitionManager
@NotNull public java.util.List<PlanRepositoryLink> getPlanRepositoryLinks(@NotNull Plan plan)
RepositoryDefinitionManager
getPlanRepositoryLinks
in interface RepositoryDefinitionManager
@Nullable public RepositoryDataEntity getRepositoryDataEntity(long id)
RepositoryDefinitionManager
getRepositoryDataEntity
in interface RepositoryDefinitionManager
public RepositoryDefinitionEntity getRepositoryDefinitionEntity(long id)
RepositoryDefinitionManager
getRepositoryDefinitionEntity
in interface RepositoryDefinitionManager
@NotNull public java.util.List<RepositoryDefinition> getRepositoryDefinitionsForPlan(@NotNull ImmutablePlan plan)
RepositoryDefinitionManager
getRepositoryDefinitionsForPlan
in interface RepositoryDefinitionManager
public java.util.List<PlanRepositoryLink> getPlansUsingRepository(long repositoryId)
getPlansUsingRepository
in interface RepositoryDefinitionManager
public java.util.List<RepositoryData> getGlobalRepositoryDefinitions()
getGlobalRepositoryDefinitions
in interface RepositoryDefinitionManager
public long saveRepositoryDefinition(RepositoryDefinitionEntity repositoryData)
RepositoryDefinitionManager
saveRepositoryDefinition
in interface RepositoryDefinitionManager
public long saveRepositoryDefinition(RepositoryDataEntity repositoryData)
RepositoryDefinitionManager
saveRepositoryDefinition
in interface RepositoryDefinitionManager
public void saveRepositoryDefinitions(@NotNull java.util.Collection<RepositoryDataEntity> repositoriesBeingCreated)
RepositoryDefinitionManager
saveRepositoryDefinitions
in interface RepositoryDefinitionManager
public long savePlanRepositoryWithDefinition(@NotNull PlanRepositoryLink planRepository)
RepositoryDefinitionManager
RepositoryDataEntity
savePlanRepositoryWithDefinition
in interface RepositoryDefinitionManager
public void savePlanRepositoryLink(@NotNull PlanRepositoryLink planRepository)
savePlanRepositoryLink
in interface RepositoryDefinitionManager
public void savePlanRepositoryLinks(@NotNull java.util.List<PlanRepositoryLink> planRepositories)
RepositoryDefinitionManager
savePlanRepositoryLinks
in interface RepositoryDefinitionManager
public void removeRepositoryFromPlan(@NotNull PlanRepositoryLink planRepository)
RepositoryDefinitionManager
RepositoryDefinitionManager.removeRepositoryIfUnused(RepositoryDataEntity)
is called.
removeRepositoryFromPlan
in interface RepositoryDefinitionManager
public void removeRepositoryIfUnused(RepositoryDataEntity repositoryDataEntity)
RepositoryDefinitionManager
RepositoryChangeset
, removes it otherwise.
removeRepositoryIfUnused
in interface RepositoryDefinitionManager
public void removeUnusedRepositories()
RepositoryDefinitionManager
RepositoryChangeset
removeUnusedRepositories
in interface RepositoryDefinitionManager
public void removeRepositoriesForPlan(Plan plan)
RepositoryDefinitionManager
Plan
that are not global repositories.
removeRepositoriesForPlan
in interface RepositoryDefinitionManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |