Class 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 Detail

      • PlanRepositoryLink

        public PlanRepositoryLink()
    • Method Detail

      • linkToGlobalRepository

        public static PlanRepositoryLink linkToGlobalRepository​(@NotNull
                                                                @NotNull VcsRepository<?,​?> globalRepository)
        Specifies a link to existing global 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.