Interface PlanRepositoryLinkDao

    • Method Detail

      • getPlanRepositoryLink

        @Nullable
        @Nullable PlanRepositoryLink getPlanRepositoryLink​(@NotNull
                                                           @NotNull PlanIdentifier plan,
                                                           long repositoryId)
        Parameters:
        plan -
        repositoryId -
        Returns:
        relationship between plan and repository if it exists, null otherwise
      • getPlanRepositoryLinkByName

        @Nullable
        @Nullable PlanRepositoryLink getPlanRepositoryLinkByName​(@NotNull
                                                                 @NotNull PlanIdentifier plan,
                                                                 @NotNull
                                                                 @NotNull String repositoryName)
        Parameters:
        plan -
        repositoryName -
        Returns:
        relationship between plan and repository if it exists, null otherwise
      • getPlansUsingRepository

        List<PlanRepositoryLink> getPlansUsingRepository​(long repositoryId)
        Parameters:
        repositoryId -
        Returns:
        list of Plan that reference a Source Repository
      • getIdentifiersOfPlansUsingRepository

        List<PlanIdentifier> getIdentifiersOfPlansUsingRepository​(long repositoryId)
        Get identifiers of Plans referencing a repository. This is faster than getPlansUsingRepository() and should be preferred for 'view' actions.
        Parameters:
        repositoryId -
        Returns:
        Since:
        4.2
      • getIdentifiersOfPlansUsingRepositoryOrItsDirectChildren

        List<PlanIdentifier> getIdentifiersOfPlansUsingRepositoryOrItsDirectChildren​(long repositoryId)
        Get identifiers of Plans referencing a repository, either directly or through inheritance (only direct parent-child relationship is checked)
        Parameters:
        repositoryId -
        Returns:
        Since:
        5.14
      • isRepositoryOrItsDirectChildrenUsedInPlans

        boolean isRepositoryOrItsDirectChildrenUsedInPlans​(long repositoryId)
        Check if repository is used in plans
        Parameters:
        repositoryId -
        Returns:
        true if the given repository is used in any plan
        Since:
        8.2
      • removeLinksByParentRepositoryId

        void removeLinksByParentRepositoryId​(long parentId)
        Removes all link objects where repository is direct child of a repository with given id.
        Parameters:
        parentId -
        Since:
        6.3