Class PlanRepositoryLink
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<PlanRepositoryLinkProperties>
-
- com.atlassian.bamboo.specs.api.builders.repository.PlanRepositoryLink
-
public class PlanRepositoryLink extends EntityPropertiesBuilder<PlanRepositoryLinkProperties>
Links repository to a plan. Repositories can be added to plan in two ways: as a link to a global repository or as plan-managed repository definition.In the first case repository is managed independently from plan and needs to exist before it can be added to plan. Such repository can be used in many plans. On the other hand, plan-managed repository's lifecycle is tied to plan life-cycle. In other words, they are updated (and deleted) whenever plan is updated and can only be used by plan they are linked to.
Plan-managed repository definition can inherit configuration from global repositories.
-
-
Constructor Summary
Constructors Constructor Description PlanRepositoryLink()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PlanRepositoryLinkPropertiesbuild()PlanRepositoryLinkglobalRepository(@NotNull VcsRepository<?,?> repositoryDefinition)Specifies a link to existing global repository.static PlanRepositoryLinklinkToGlobalRepository(@NotNull VcsRepository<?,?> globalRepository)Specifies a link to existing global repository.static PlanRepositoryLinklinkToGlobalRepository(@NotNull VcsRepositoryIdentifier globalRepository)Specifies a link to existing global repository.static PlanRepositoryLinklinkToProjectRepository(@NotNull VcsRepositoryIdentifier projectRepository)Specifies a link to existing project repository.PlanRepositoryLinklocalRepositoryDefinition(@NotNull VcsRepository<?,?> repositoryDefinition)Specifies a link to a plan-managed repository.PlanRepositoryLinkprojectRepository(@NotNull VcsRepository<?,?> repositoryDefinition)Specifies a link to existing project repository.
-
-
-
Method Detail
-
linkToGlobalRepository
public static PlanRepositoryLink linkToGlobalRepository(@NotNull @NotNull VcsRepository<?,?> globalRepository)
Specifies a link to existing global repository.
-
linkToGlobalRepository
public static PlanRepositoryLink linkToGlobalRepository(@NotNull @NotNull VcsRepositoryIdentifier globalRepository)
Specifies a link to existing global repository.
-
linkToProjectRepository
public static PlanRepositoryLink linkToProjectRepository(@NotNull @NotNull VcsRepositoryIdentifier projectRepository)
Specifies a link to existing project repository.
-
localRepositoryDefinition
public PlanRepositoryLink localRepositoryDefinition(@NotNull @NotNull VcsRepository<?,?> repositoryDefinition)
Specifies a link to a plan-managed repository. Repository is created or updated whenever this plan is saved.
-
globalRepository
public PlanRepositoryLink globalRepository(@NotNull @NotNull VcsRepository<?,?> repositoryDefinition)
Specifies a link to existing global repository. Global repository is managed independently from the plan and must exists.
-
projectRepository
public PlanRepositoryLink projectRepository(@NotNull @NotNull VcsRepository<?,?> repositoryDefinition)
Specifies a link to existing project repository. Project repository is managed independently from the plan and must exists.
-
build
protected PlanRepositoryLinkProperties build()
- Specified by:
buildin classEntityPropertiesBuilder<PlanRepositoryLinkProperties>
-
-