Class IssueWrapper
- java.lang.Object
-
- jetbrains.buildServer.issueTracker.impl.IssueWrapper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.issueTracker.IssueEx
IssueEx.FetchStatus
-
-
Constructor Summary
Constructors Constructor Description IssueWrapper(IssueMention delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Map<String,String>
getAllFields()
Returns all issue fields as a map (unmodifiable).String
getFetchError()
Returns the fetch error for the case when TeamCity failed to retrieve the issue.IssueEx.FetchStatus
getFetchStatus()
Returns the fetch status of the issue.String
getId()
Returns the issue id.IssueData
getIssueDataOrNull()
Returns the issue data for this issue, ornull
if no data can be fetched due to some error.String
getPriority()
Returns the issue priority (e.g.IssueProviderEx
getProvider()
Returns the reference on a provider that provided this issue.VcsModification
getRelatedModification()
Returns the modification that this issue is related to.String
getSeverity()
Returns the issue severity (e.g.String
getState()
Returns the issue state (e.g.String
getSummary()
Returns the issue summary (a single line which describes the issue briefly).String
getType()
Returns the issue type (e.g.String
getUrl()
Returns the URL corresponding to the issue.int
hashCode()
boolean
isFeatureRequest()
Returns whether the issue is a feature request (enhancement).boolean
isFixedByRelatedModification()
Returns whether if this issue has been fixed by a related modification.boolean
isResolved()
Returns whether the issue is resolved (possibly as "won't fix").void
setIssuesManager(IssuesManager issuesManager)
Sets the issues manager.void
setProvider(IssueProviderEx provider)
Sets the reference on a corresponding provider.void
setRelatedModification(VcsModification modification)
Sets the modification that this issue is related to.String
toString()
-
-
-
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.
-
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.
-
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 interfaceIssue
- 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.
-
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 interfaceIssue
- 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 interfaceIssue
- 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 interfaceIssue
- 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 interfaceIssue
- 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 interfaceIssue
- Returns:
- a map of issue fields
-
getUrl
public String getUrl()
Description copied from interface:Issue
Returns the URL corresponding to the issue.
-
getFetchStatus
@NotNull public IssueEx.FetchStatus getFetchStatus()
Description copied from interface:IssueEx
Returns the fetch status of the issue.- Specified by:
getFetchStatus
in interfaceIssueEx
- Returns:
- fetch status
- See Also:
IssueEx.FetchStatus
-
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 interfaceIssueEx
- 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 interfaceIssue
- Specified by:
getProvider
in interfaceIssueEx
- 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 interfaceIssueEx
- 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 interfaceIssueEx
- 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 interfaceIssueEx
- 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 interfaceIssueEx
- 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 interfaceIssueEx
- 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, ornull
if no data can be fetched due to some error.- Specified by:
getIssueDataOrNull
in interfaceIssueEx
- Returns:
- the issue data, or
null
- See Also:
IssueEx.getFetchError()
-
-