jetbrains.buildServer.issueTracker
Class IssueData

java.lang.Object
  extended by jetbrains.buildServer.issueTracker.IssueData
All Implemented Interfaces:
java.io.Serializable

public class IssueData
extends java.lang.Object
implements java.io.Serializable

Represents the class for the data fetched from the issue-tracker.

The class is expected to be used by TeamCity plugins to return issue-related data. Note that TeamCity creates a wrapper around this data (that implements a more generic interface, see Issue).

Implements Serializable to support persisting of fetched issues on disk (cache).

Since:
5.0
Author:
Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
See Also:
Serialized Form

Field Summary
static java.lang.String PRIORITY_FIELD
           
static java.lang.String SEVERITY_FIELD
           
static java.lang.String STATE_FIELD
           
static java.lang.String SUMMARY_FIELD
           
static java.lang.String TYPE_FIELD
           
 
Constructor Summary
IssueData(java.lang.String id, java.util.Map<java.lang.String,java.lang.String> data, boolean resolved, boolean featureRequest, java.lang.String url)
           
IssueData(java.lang.String id, java.lang.String summary, java.lang.String state, java.lang.String url, boolean resolved)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.Map<java.lang.String,java.lang.String> getAllFields()
          Returns all issue fields as a map (unmodifiable).
 java.lang.String getId()
          Returns the issue id.
 java.lang.String getPriority()
          Returns the issue priority (e.g.
 java.lang.String getSeverity()
          Returns the issue severity (e.g.
 java.lang.String getState()
          Returns the issue state (e.g.
 java.lang.String getSummary()
          Returns the issue summary (a single line which describes the issue briefly).
 java.lang.String getType()
          Returns the issue type (e.g.
 java.lang.String getUrl()
          Returns the URL corresponding to the issue.
 int hashCode()
           
 boolean isFeatureRequest()
          Returns whether the issue is a feature request (enhancement).
 boolean isResolved()
          Returns whether the issue is resolved (possibly as "won't fix").
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SUMMARY_FIELD

public static final java.lang.String SUMMARY_FIELD
See Also:
Constant Field Values

STATE_FIELD

public static final java.lang.String STATE_FIELD
See Also:
Constant Field Values

TYPE_FIELD

public static final java.lang.String TYPE_FIELD
See Also:
Constant Field Values

PRIORITY_FIELD

public static final java.lang.String PRIORITY_FIELD
See Also:
Constant Field Values

SEVERITY_FIELD

public static final java.lang.String SEVERITY_FIELD
See Also:
Constant Field Values
Constructor Detail

IssueData

public IssueData(@NotNull
                 java.lang.String id,
                 @NotNull
                 java.lang.String summary,
                 @NotNull
                 java.lang.String state,
                 @NotNull
                 java.lang.String url,
                 boolean resolved)

IssueData

public IssueData(@NotNull
                 java.lang.String id,
                 @Nullable
                 java.util.Map<java.lang.String,java.lang.String> data,
                 boolean resolved,
                 boolean featureRequest,
                 @NotNull
                 java.lang.String url)
Method Detail

getId

@NotNull
public java.lang.String getId()
Returns the issue id. The id is generated by the issue tracker and is considered immutable.

Returns:
issue id

getType

@NotNull
public java.lang.String getType()
Returns the issue type (e.g. bug, feature, exception, etc). Returns an empty string if the notion of type is not applicable.

Returns:
the issue type
Since:
7.1

getSummary

@NotNull
public java.lang.String getSummary()
Returns the issue summary (a single line which describes the issue briefly).

Returns:
issue summary

getState

@NotNull
public java.lang.String getState()
Returns the issue state (e.g. open, fixed, etc.). Returns an empty string if the notion of state is not applicable.

Returns:
the issue state

getPriority

@NotNull
public java.lang.String getPriority()
Returns the issue priority (e.g. P1, P2, or normal, etc.). Returns an empty string if the notion of priority is not applicable.

Returns:
the issue priority
Since:
7.1

getSeverity

@NotNull
public java.lang.String getSeverity()
Returns the issue severity (e.g. normal, major, blocker, etc.). Returns an empty string if the notion of severity is not applicable.

Returns:
the issue severity
Since:
7.1

isResolved

public boolean isResolved()
Returns whether the issue is resolved (possibly as "won't fix").

Returns:
true if the issue is resolved

isFeatureRequest

public boolean isFeatureRequest()
Returns whether the issue is a feature request (enhancement).

Returns:
true if the issue is a feature request
Since:
7.1

getAllFields

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getAllFields()
Returns all issue fields as a map (unmodifiable).

Returns:
a map of issue fields
Since:
7.1

getUrl

@NotNull
public java.lang.String getUrl()
Returns the URL corresponding to the issue.

Returns:
corresponding URL

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object