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 booleanequals(Object o)Map<String,String>getAllFields()Returns all issue fields as a map (unmodifiable).StringgetFetchError()Returns the fetch error for the case when TeamCity failed to retrieve the issue.IssueEx.FetchStatusgetFetchStatus()Returns the fetch status of the issue.StringgetId()Returns the issue id.IssueDatagetIssueDataOrNull()Returns the issue data for this issue, ornullif no data can be fetched due to some error.StringgetPriority()Returns the issue priority (e.g.IssueProviderExgetProvider()Returns the reference on a provider that provided this issue.VcsModificationgetRelatedModification()Returns the modification that this issue is related to.StringgetSeverity()Returns the issue severity (e.g.StringgetState()Returns the issue state (e.g.StringgetSummary()Returns the issue summary (a single line which describes the issue briefly).StringgetType()Returns the issue type (e.g.StringgetUrl()Returns the URL corresponding to the issue.inthashCode()booleanisFeatureRequest()Returns whether the issue is a feature request (enhancement).booleanisFixedByRelatedModification()Returns whether if this issue has been fixed by a related modification.booleanisResolved()Returns whether the issue is resolved (possibly as "won't fix").voidsetIssuesManager(IssuesManager issuesManager)Sets the issues manager.voidsetProvider(IssueProviderEx provider)Sets the reference on a corresponding provider.voidsetRelatedModification(VcsModification modification)Sets the modification that this issue is related to.StringtoString()
-
-
-
Constructor Detail
-
IssueWrapper
public IssueWrapper(@NotNull IssueMention delegate)
-
-
Method Detail
-
getId
@NotNull public String getId()
Description copied from interface:IssueReturns the issue id. The id is generated by the issue tracker and is considered immutable.
-
getType
@NotNull public String getType()
Description copied from interface:IssueReturns 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:IssueReturns the issue summary (a single line which describes the issue briefly).- Specified by:
getSummaryin interfaceIssue- Returns:
- issue summary
-
getState
@NotNull public String getState()
Description copied from interface:IssueReturns 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:IssueReturns the issue priority (e.g. P1, P2, or normal, etc.). Returns an empty string if the notion of priority is not applicable.- Specified by:
getPriorityin interfaceIssue- Returns:
- the issue priority
-
getSeverity
@NotNull public String getSeverity()
Description copied from interface:IssueReturns the issue severity (e.g. normal, major, blocker, etc.). Returns an empty string if the notion of severity is not applicable.- Specified by:
getSeverityin interfaceIssue- Returns:
- the issue severity
-
isResolved
public boolean isResolved()
Description copied from interface:IssueReturns whether the issue is resolved (possibly as "won't fix").- Specified by:
isResolvedin interfaceIssue- Returns:
- true if the issue is resolved
-
isFeatureRequest
public boolean isFeatureRequest()
Description copied from interface:IssueReturns whether the issue is a feature request (enhancement).- Specified by:
isFeatureRequestin interfaceIssue- Returns:
- true if the issue is a feature request
-
getAllFields
@NotNull public Map<String,String> getAllFields()
Description copied from interface:IssueReturns all issue fields as a map (unmodifiable).- Specified by:
getAllFieldsin interfaceIssue- Returns:
- a map of issue fields
-
getUrl
public String getUrl()
Description copied from interface:IssueReturns the URL corresponding to the issue.
-
getFetchStatus
@NotNull public IssueEx.FetchStatus getFetchStatus()
Description copied from interface:IssueExReturns the fetch status of the issue.- Specified by:
getFetchStatusin interfaceIssueEx- Returns:
- fetch status
- See Also:
IssueEx.FetchStatus
-
getFetchError
@NotNull public String getFetchError()
Description copied from interface:IssueExReturns the fetch error for the case when TeamCity failed to retrieve the issue.- Specified by:
getFetchErrorin interfaceIssueEx- Returns:
- fetch error
- See Also:
IssueEx.getFetchStatus()
-
getProvider
@NotNull public IssueProviderEx getProvider()
Description copied from interface:IssueExReturns the reference on a provider that provided this issue.- Specified by:
getProviderin interfaceIssue- Specified by:
getProviderin interfaceIssueEx- Returns:
- a corresponding provider
-
setProvider
public void setProvider(@NotNull IssueProviderEx provider)Description copied from interface:IssueExSets the reference on a corresponding provider.- Specified by:
setProviderin interfaceIssueEx- Parameters:
provider- a corresponding provider
-
getRelatedModification
public VcsModification getRelatedModification()
Description copied from interface:IssueExReturns the modification that this issue is related to.- Specified by:
getRelatedModificationin interfaceIssueEx- Returns:
- a corresponding modification, or null
-
setRelatedModification
public void setRelatedModification(@NotNull VcsModification modification)Description copied from interface:IssueExSets the modification that this issue is related to.- Specified by:
setRelatedModificationin interfaceIssueEx- Parameters:
modification- a related modification
-
setIssuesManager
public void setIssuesManager(@NotNull IssuesManager issuesManager)Description copied from interface:IssueExSets the issues manager.- Specified by:
setIssuesManagerin interfaceIssueEx- Parameters:
issuesManager- issues manager
-
isFixedByRelatedModification
public boolean isFixedByRelatedModification()
Description copied from interface:IssueExReturns whether if this issue has been fixed by a related modification.- Specified by:
isFixedByRelatedModificationin 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:IssueExReturns the issue data for this issue, ornullif no data can be fetched due to some error.- Specified by:
getIssueDataOrNullin interfaceIssueEx- Returns:
- the issue data, or
null - See Also:
IssueEx.getFetchError()
-
-