Interface IssuesManager

  • All Known Implementing Classes:
    IssuesManagerImpl

    public interface IssuesManager
    Contains several methods that are close to ones in IssueProvider: getRelatedIssues and findIssueById. The main difference in these APIs: methods in this class return IssueEx instances, which are different from instances returned by a IssueProvider.

    In other words, this is the place where issue wrapping takes place.

    Since:
    5.0
    Author:
    Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
    See Also:
    IssueWrapper
    • Method Detail

      • getRelatedIssues

        @NotNull
        List<IssueEx> getRelatedIssues​(@NotNull
                                       BuildPromotionEx promotion)
        Gets all issues related to build promotion
        Parameters:
        promotion - build promotion
        Returns:
        list of related issues
      • hasRelatedIssues

        boolean hasRelatedIssues​(@NotNull
                                 BuildPromotionEx promotion)
        Returns true if the given promotion has related issues, false otherwise
        Parameters:
        promotion - promotion of interest
        Returns:
        see above
        Since:
        9.0.5
      • getRelatedIssues

        @NotNull
        List<IssueEx> getRelatedIssues​(@NotNull
                                       SVcsModification modification)
        Gets all issues related to vcs modification
        Parameters:
        modification - vcs modification
        Returns:
        list of related issues
      • findIssueById

        @NotNull
        IssueEx findIssueById​(@NotNull
                              IssueProvider provider,
                              @NotNull
                              String id)
                       throws RetrieveIssueException
        Returns the issue corresponding to specified id. The relation is defined by a provider.
        Parameters:
        provider - issue provider
        id - issue id
        Returns:
        a corresponding issue
        Throws:
        RetrieveIssueException - if the issue cannot be found for some reason
      • isIssueFixedByRelatedModification

        boolean isIssueFixedByRelatedModification​(@NotNull
                                                  IssueEx issue)
        Method return true, iff:
        • issue.isFixed() == true,
        • issue.getRelatedModification() != null,
        • getRelatedModification() is the last modification, in which this issue is mentioned.
        Parameters:
        issue - the issue to check
        Returns:
        whether specified issue is fixed by its related modification
        See Also:
        Issue.isResolved(), IssueEx.getRelatedModification()
      • fetchIssuesIntoMemory

        void fetchIssuesIntoMemory​(@NotNull
                                   Collection<IssueEx> issues)
        Requests specified issues from corresponding issue trackers to get all of them into cache.

        Note: all fetching is done in the current thread.

        Parameters:
        issues - the issues to fetch
        Since:
        7.0