public interface

IssueChangeHolder

com.atlassian.jira.issue.util.IssueChangeHolder
Known Indirect Subclasses

Class Overview

This defines a simple object that can contain the changes that have occurred to an issue.

Summary

Public Methods
void addChangeItem(ChangeItemBean changeItemBean)
Convenience method for adding a single ChangeItemBean to the list of change items.
void addChangeItems(List<ChangeItemBean> changeItems)
Add the provided list of change items to the current change items.
List<ChangeItemBean> getChangeItems()
Get all the change items registered with this object.
Comment getComment()
Get the comment associated with this group of changes.
boolean isSubtasksUpdated()
Returns true if any subtasks of this issue where updated and therefore need to be re-indexed.
void setChangeItems(List<ChangeItemBean> changeItems)
Set the change items of this object to the provided param.
void setComment(Comment comment)
Set the comment associated with this change.
void setSubtasksUpdated(boolean subtasksUpdated)
Sets whether or not subtasks have been updated.

Public Methods

public void addChangeItem (ChangeItemBean changeItemBean)

Convenience method for adding a single ChangeItemBean to the list of change items.

Parameters
changeItemBean the changeItemBean to add

public void addChangeItems (List<ChangeItemBean> changeItems)

Add the provided list of change items to the current change items.

Parameters
changeItems to add to this objects change items

public List<ChangeItemBean> getChangeItems ()

Get all the change items registered with this object.

Returns
  • a list of ChangeItemBean objects

public Comment getComment ()

Get the comment associated with this group of changes.

Returns
  • the Comment that represents the comment for this group of changes.

public boolean isSubtasksUpdated ()

Returns true if any subtasks of this issue where updated and therefore need to be re-indexed. Currently this is only necessary when changing the issue level security on a parent (as the subtask has to have the same security level as the parent).

Returns
  • true if there are affected subtasks or false otherwise

public void setChangeItems (List<ChangeItemBean> changeItems)

Set the change items of this object to the provided param.

Parameters
changeItems to set on this object

public void setComment (Comment comment)

Set the comment associated with this change.

Parameters
comment the Comment

public void setSubtasksUpdated (boolean subtasksUpdated)

Sets whether or not subtasks have been updated.

Parameters
subtasksUpdated true if this issue's subtasks have been updated.