com.taskadapter.redmineapi.bean
Class Issue

java.lang.Object
  extended by com.taskadapter.redmineapi.bean.Issue
All Implemented Interfaces:
Identifiable

public class Issue
extends Object
implements Identifiable

Redmine's Issue

Author:
Alexey Skorokhodov

Constructor Summary
Issue()
           
 
Method Summary
 boolean equals(Object obj)
           
 User getAssignee()
           
 List<Attachment> getAttachments()
           
 User getAuthor()
           
 IssueCategory getCategory()
           
 List<Changeset> getChangesets()
           
 Date getCreatedOn()
           
 String getCustomField(String fieldName)
           
 List<CustomField> getCustomFields()
          list of Custom Field objects, NEVER NULL.
 String getDescription()
          Description is empty by default, not NULL.
 Integer getDoneRatio()
           
 Date getDueDate()
           
 Float getEstimatedHours()
           
 Integer getId()
           
 List<Journal> getJournals()
           
 String getNotes()
           
 Integer getParentId()
          Parent Issue ID, or NULL for issues without a parent.
 Integer getPriorityId()
           
 String getPriorityText()
           
 Project getProject()
           
 List<IssueRelation> getRelations()
          Relations are only loaded if you include INCLUDE.relations when loading the Issue.
 Float getSpentHours()
           
 Date getStartDate()
           
 Integer getStatusId()
           
 String getStatusName()
           
 String getSubject()
           
 Version getTargetVersion()
           
 Tracker getTracker()
           
 Date getUpdatedOn()
           
 int hashCode()
           
 void setAssignee(User assignee)
           
 void setAuthor(User author)
           
 void setCategory(IssueCategory category)
           
 void setChangesets(List<Changeset> changesets)
           
 void setCreatedOn(Date createdOn)
           
 void setCustomFields(List<CustomField> customFields)
          NOTE: The custom field(s) must have correct database ID set to be saved to Redmine.
 void setDescription(String description)
           
 void setDoneRatio(Integer doneRatio)
           
 void setDueDate(Date dueDate)
           
 void setEstimatedHours(Float estimatedTime)
           
 void setId(Integer id)
           
 void setJournals(List<Journal> journals)
           
 void setNotes(String notes)
           
 void setParentId(Integer parentId)
           
 void setPriorityId(Integer priorityId)
           
 void setPriorityText(String priority)
          Deprecated. This method has no effect when creating issues on Redmine Server, so we might as well just delete it in the future releases.
 void setProject(Project project)
           
 void setSpentHours(Float spentHours)
           
 void setStartDate(Date startDate)
           
 void setStatusId(Integer statusId)
           
 void setStatusName(String statusName)
           
 void setSubject(String subject)
           
 void setTargetVersion(Version version)
           
 void setTracker(Tracker tracker)
           
 void setUpdatedOn(Date updatedOn)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Issue

public Issue()
Method Detail

getProject

public Project getProject()

setProject

public void setProject(Project project)

getDoneRatio

public Integer getDoneRatio()

setDoneRatio

public void setDoneRatio(Integer doneRatio)

getPriorityText

public String getPriorityText()

setPriorityText

public void setPriorityText(String priority)
Deprecated. This method has no effect when creating issues on Redmine Server, so we might as well just delete it in the future releases.


getAssignee

public User getAssignee()

setAssignee

public void setAssignee(User assignee)

getEstimatedHours

public Float getEstimatedHours()

setEstimatedHours

public void setEstimatedHours(Float estimatedTime)

getSpentHours

public Float getSpentHours()

setSpentHours

public void setSpentHours(Float spentHours)

getParentId

public Integer getParentId()
Parent Issue ID, or NULL for issues without a parent.

Returns:
NULL, if there's no parent

setParentId

public void setParentId(Integer parentId)

getId

public Integer getId()
Specified by:
getId in interface Identifiable

setId

public void setId(Integer id)

getSubject

public String getSubject()

setSubject

public void setSubject(String subject)

getAuthor

public User getAuthor()

setAuthor

public void setAuthor(User author)

getStartDate

public Date getStartDate()

setStartDate

public void setStartDate(Date startDate)

getDueDate

public Date getDueDate()

setDueDate

public void setDueDate(Date dueDate)

getTracker

public Tracker getTracker()

setTracker

public void setTracker(Tracker tracker)

getDescription

public String getDescription()
Description is empty by default, not NULL.


setDescription

public void setDescription(String description)

getCreatedOn

public Date getCreatedOn()

setCreatedOn

public void setCreatedOn(Date createdOn)

getUpdatedOn

public Date getUpdatedOn()

setUpdatedOn

public void setUpdatedOn(Date updatedOn)

getStatusId

public Integer getStatusId()

setStatusId

public void setStatusId(Integer statusId)

getStatusName

public String getStatusName()

setStatusName

public void setStatusName(String statusName)

getCustomFields

public List<CustomField> getCustomFields()
list of Custom Field objects, NEVER NULL.


setCustomFields

public void setCustomFields(List<CustomField> customFields)
NOTE: The custom field(s) must have correct database ID set to be saved to Redmine. This is Redmine REST API's limitation.


getNotes

public String getNotes()

setNotes

public void setNotes(String notes)
Parameters:
notes - Some comment describing the issue update

getJournals

public List<Journal> getJournals()

setJournals

public void setJournals(List<Journal> journals)

getChangesets

public List<Changeset> getChangesets()

setChangesets

public void setChangesets(List<Changeset> changesets)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getCustomField

public String getCustomField(String fieldName)
Returns:
the value or NULL if the field is not found

toString

public String toString()
Overrides:
toString in class Object

getRelations

public List<IssueRelation> getRelations()
Relations are only loaded if you include INCLUDE.relations when loading the Issue.

Returns:
list of relations or EMPTY list if no relations, never returns NULL
See Also:
RedmineManager.getIssueById(Integer id, INCLUDE... include)

getPriorityId

public Integer getPriorityId()

setPriorityId

public void setPriorityId(Integer priorityId)

getTargetVersion

public Version getTargetVersion()

getAttachments

public List<Attachment> getAttachments()

setTargetVersion

public void setTargetVersion(Version version)

getCategory

public IssueCategory getCategory()

setCategory

public void setCategory(IssueCategory category)


Copyright © 2012. All Rights Reserved.