Package 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
Modifier and TypeMethodDescriptionvoidaddChangeItem(ChangeItemBean changeItemBean) Convenience method for adding a single ChangeItemBean to the list of change items.voidaddChangeItems(List<ChangeItemBean> changeItems) Add the provided list of change items to the current change items.Get all the change items registered with this object.Get the comment associated with this group of changes.booleanReturns true if any subtasks of this issue where updated and therefore need to be re-indexed.voidsetChangeItems(List<ChangeItemBean> changeItems) Set the change items of this object to the provided param.voidsetComment(Comment comment) Set the comment associated with this change.voidsetSubtasksUpdated(boolean subtasksUpdated) Sets whether or not subtasks have been updated.
-
Method Details
-
getChangeItems
List<ChangeItemBean> getChangeItems()Get all the change items registered with this object.- Returns:
- a list of ChangeItemBean objects
-
setChangeItems
Set the change items of this object to the provided param.- Parameters:
changeItems- to set on this object
-
addChangeItems
Add the provided list of change items to the current change items.- Parameters:
changeItems- to add to this objects change items
-
addChangeItem
Convenience method for adding a single ChangeItemBean to the list of change items.- Parameters:
changeItemBean- the changeItemBean to add
-
setComment
Set the comment associated with this change.- Parameters:
comment- the Comment
-
getComment
Comment getComment()Get the comment associated with this group of changes.- Returns:
- the
Commentthat 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.
-