com.atlassian.jira.issue.util
Class DefaultIssueChangeHolder

java.lang.Object
  extended by com.atlassian.jira.issue.util.DefaultIssueChangeHolder
All Implemented Interfaces:
IssueChangeHolder

public class DefaultIssueChangeHolder
extends Object
implements IssueChangeHolder

Default implementation of a change holder.


Constructor Summary
DefaultIssueChangeHolder()
           
 
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.
 boolean equals(Object o)
           
 List getChangeItems()
          Get all the change items registered with this object.
 Comment getComment()
          Get the comment associated with this group of changes.
 int hashCode()
           
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIssueChangeHolder

public DefaultIssueChangeHolder()
Method Detail

getChangeItems

public List getChangeItems()
Description copied from interface: IssueChangeHolder
Get all the change items registered with this object.

Specified by:
getChangeItems in interface IssueChangeHolder
Returns:
a list of ChangeItemBean objects

setChangeItems

public void setChangeItems(List changeItems)
Description copied from interface: IssueChangeHolder
Set the change items of this object to the provided param.

Specified by:
setChangeItems in interface IssueChangeHolder
Parameters:
changeItems - to set on this object

addChangeItems

public void addChangeItems(List changeItems)
Description copied from interface: IssueChangeHolder
Add the provided list of change items to the current change items.

Specified by:
addChangeItems in interface IssueChangeHolder
Parameters:
changeItems - to add to this objects change items

addChangeItem

public void addChangeItem(ChangeItemBean changeItemBean)
Description copied from interface: IssueChangeHolder
Convience method for adding a single ChangeItemBean to the list of change items.

Specified by:
addChangeItem in interface IssueChangeHolder

setComment

public void setComment(Comment comment)
Description copied from interface: IssueChangeHolder
Set the comment associated with this change.

Specified by:
setComment in interface IssueChangeHolder

getComment

public Comment getComment()
Description copied from interface: IssueChangeHolder
Get the comment associated with this group of changes.

Specified by:
getComment in interface IssueChangeHolder
Returns:
the Comment that represents the comment for this group of changes.

isSubtasksUpdated

public boolean isSubtasksUpdated()
Description copied from interface: IssueChangeHolder
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).

Specified by:
isSubtasksUpdated in interface IssueChangeHolder
Returns:
true if there are affected subtasks or false otherwise

setSubtasksUpdated

public void setSubtasksUpdated(boolean subtasksUpdated)
Description copied from interface: IssueChangeHolder
Sets whether or not subtasks have been updated.

Specified by:
setSubtasksUpdated in interface IssueChangeHolder
Parameters:
subtasksUpdated - true if this issue's subtasks have been updated.

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2009 Atlassian. All Rights Reserved.