com.atlassian.jira.issue.util
Interface IssueChangeHolder

All Known Implementing Classes:
DefaultIssueChangeHolder

public interface IssueChangeHolder

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


Method Summary
 void addChangeItem(ChangeItemBean changeItemBean)
          Convience method for adding a single ChangeItemBean to the list of change items.
 void addChangeItems(List changeItems)
          Add the provided list of change items to the current change items.
 List 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 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.
 

Method Detail

getChangeItems

List getChangeItems()
Get all the change items registered with this object.

Returns:
a list of ChangeItemBean objects

setChangeItems

void setChangeItems(List changeItems)
Set the change items of this object to the provided param.

Parameters:
changeItems - to set on this object

addChangeItems

void addChangeItems(List changeItems)
Add the provided list of change items to the current change items.

Parameters:
changeItems - to add to this objects change items

addChangeItem

void addChangeItem(ChangeItemBean changeItemBean)
Convience method for adding a single ChangeItemBean to the list of change items.

Parameters:
changeItemBean -

setComment

void setComment(Comment comment)
Set the comment associated with this change.

Parameters:
comment -

getComment

Comment getComment()
Get the comment associated with this group of changes.

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

isSubtasksUpdated

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

setSubtasksUpdated

void setSubtasksUpdated(boolean subtasksUpdated)
Sets whether or not subtasks have been updated.

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


Copyright © 2002-2009 Atlassian. All Rights Reserved.