Class IssueWrapper

  • All Implemented Interfaces:
    Issue, IssueEx

    public class IssueWrapper
    extends Object
    implements IssueEx
    Author:
    Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
    • Constructor Detail

      • IssueWrapper

        public IssueWrapper​(@NotNull
                            IssueMention delegate)
    • Method Detail

      • getId

        @NotNull
        public String getId()
        Description copied from interface: Issue
        Returns the issue id. The id is generated by the issue tracker and is considered immutable.
        Specified by:
        getId in interface Issue
        Returns:
        issue id
      • getType

        @NotNull
        public String getType()
        Description copied from interface: Issue
        Returns the issue type (e.g. bug, feature, exception, etc). Returns an empty string if the notion of type is not applicable.
        Specified by:
        getType in interface Issue
        Returns:
        the issue type
      • getSummary

        @NotNull
        public String getSummary()
        Description copied from interface: Issue
        Returns the issue summary (a single line which describes the issue briefly).
        Specified by:
        getSummary in interface Issue
        Returns:
        issue summary
      • getState

        @NotNull
        public String getState()
        Description copied from interface: Issue
        Returns the issue state (e.g. open, fixed, etc.). Returns an empty string if the notion of state is not applicable.
        Specified by:
        getState in interface Issue
        Returns:
        the issue state
      • getPriority

        @NotNull
        public String getPriority()
        Description copied from interface: Issue
        Returns the issue priority (e.g. P1, P2, or normal, etc.). Returns an empty string if the notion of priority is not applicable.
        Specified by:
        getPriority in interface Issue
        Returns:
        the issue priority
      • getSeverity

        @NotNull
        public String getSeverity()
        Description copied from interface: Issue
        Returns the issue severity (e.g. normal, major, blocker, etc.). Returns an empty string if the notion of severity is not applicable.
        Specified by:
        getSeverity in interface Issue
        Returns:
        the issue severity
      • isResolved

        public boolean isResolved()
        Description copied from interface: Issue
        Returns whether the issue is resolved (possibly as "won't fix").
        Specified by:
        isResolved in interface Issue
        Returns:
        true if the issue is resolved
      • isFeatureRequest

        public boolean isFeatureRequest()
        Description copied from interface: Issue
        Returns whether the issue is a feature request (enhancement).
        Specified by:
        isFeatureRequest in interface Issue
        Returns:
        true if the issue is a feature request
      • getAllFields

        @NotNull
        public Map<String,​String> getAllFields()
        Description copied from interface: Issue
        Returns all issue fields as a map (unmodifiable).
        Specified by:
        getAllFields in interface Issue
        Returns:
        a map of issue fields
      • getUrl

        public String getUrl()
        Description copied from interface: Issue
        Returns the URL corresponding to the issue.
        Specified by:
        getUrl in interface Issue
        Returns:
        corresponding URL
      • getFetchError

        @NotNull
        public String getFetchError()
        Description copied from interface: IssueEx
        Returns the fetch error for the case when TeamCity failed to retrieve the issue.
        Specified by:
        getFetchError in interface IssueEx
        Returns:
        fetch error
        See Also:
        IssueEx.getFetchStatus()
      • getProvider

        @NotNull
        public IssueProviderEx getProvider()
        Description copied from interface: IssueEx
        Returns the reference on a provider that provided this issue.
        Specified by:
        getProvider in interface Issue
        Specified by:
        getProvider in interface IssueEx
        Returns:
        a corresponding provider
      • setProvider

        public void setProvider​(@NotNull
                                IssueProviderEx provider)
        Description copied from interface: IssueEx
        Sets the reference on a corresponding provider.
        Specified by:
        setProvider in interface IssueEx
        Parameters:
        provider - a corresponding provider
      • getRelatedModification

        public VcsModification getRelatedModification()
        Description copied from interface: IssueEx
        Returns the modification that this issue is related to.
        Specified by:
        getRelatedModification in interface IssueEx
        Returns:
        a corresponding modification, or null
      • setRelatedModification

        public void setRelatedModification​(@NotNull
                                           VcsModification modification)
        Description copied from interface: IssueEx
        Sets the modification that this issue is related to.
        Specified by:
        setRelatedModification in interface IssueEx
        Parameters:
        modification - a related modification
      • setIssuesManager

        public void setIssuesManager​(@NotNull
                                     IssuesManager issuesManager)
        Description copied from interface: IssueEx
        Sets the issues manager.
        Specified by:
        setIssuesManager in interface IssueEx
        Parameters:
        issuesManager - issues manager
      • isFixedByRelatedModification

        public boolean isFixedByRelatedModification()
        Description copied from interface: IssueEx
        Returns whether if this issue has been fixed by a related modification.
        Specified by:
        isFixedByRelatedModification in interface IssueEx
        Returns:
        true if this issue has been fixed by a related modification
        See Also:
        IssueEx.getRelatedModification()
      • getIssueDataOrNull

        @Nullable
        public IssueData getIssueDataOrNull()
        Description copied from interface: IssueEx
        Returns the issue data for this issue, or null if no data can be fetched due to some error.
        Specified by:
        getIssueDataOrNull in interface IssueEx
        Returns:
        the issue data, or null
        See Also:
        IssueEx.getFetchError()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object