com.atlassian.jira.issue.comments.util
Class DatabaseCommentIterator

java.lang.Object
  extended bycom.atlassian.jira.issue.comments.util.DatabaseCommentIterator
All Implemented Interfaces:
CommentIterator, Iterator

public abstract class DatabaseCommentIterator
extends Object
implements CommentIterator

This iterator is not synchronized, and should not be accessed by multiple threads


Constructor Summary
DatabaseCommentIterator(OfBizDelegator delegator, CommentManager commentManager, Collection issueIds, User user)
           
 
Method Summary
 void close()
           
 OfBizListIterator getCommentsIterator()
           
 boolean hasNext()
           
protected abstract  boolean hasReadPermissionForAction(Comment comment, Issue issue, User user)
           
 Object next()
           
 Comment nextComment()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseCommentIterator

public DatabaseCommentIterator(OfBizDelegator delegator,
                               CommentManager commentManager,
                               Collection issueIds,
                               User user)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator

nextComment

public Comment nextComment()
Specified by:
nextComment in interface CommentIterator

close

public void close()
Specified by:
close in interface CommentIterator

getCommentsIterator

public OfBizListIterator getCommentsIterator()

hasReadPermissionForAction

protected abstract boolean hasReadPermissionForAction(Comment comment,
                                                      Issue issue,
                                                      User user)


Copyright © 2002-2007 Atlassian. All Rights Reserved.