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

java.lang.Object
  extended by com.atlassian.jira.issue.comments.util.DatabaseCommentIterator
All Implemented Interfaces:
CommentIterator, Iterator<Comment>

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<Long> issueIds, com.atlassian.crowd.embedded.api.User user)
           
 
Method Summary
 void close()
           
 OfBizListIterator getCommentsIterator()
           
 boolean hasNext()
           
protected abstract  boolean hasReadPermissionForAction(Comment comment, Issue issue, com.atlassian.crowd.embedded.api.User user)
           
 Comment next()
           
 Comment nextComment()
           
 void remove()
           
 int size()
          Returns the total number of comments this iterator contains.
 
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<Long> issueIds,
                               com.atlassian.crowd.embedded.api.User user)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Comment>

next

public Comment next()
Specified by:
next in interface Iterator<Comment>

remove

public void remove()
Specified by:
remove in interface Iterator<Comment>

nextComment

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

close

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

size

public int size()
Description copied from interface: CommentIterator
Returns the total number of comments this iterator contains.

Specified by:
size in interface CommentIterator
Returns:
the total number of comments this iterator contains.

getCommentsIterator

public OfBizListIterator getCommentsIterator()

hasReadPermissionForAction

protected abstract boolean hasReadPermissionForAction(Comment comment,
                                                      Issue issue,
                                                      com.atlassian.crowd.embedded.api.User user)


Copyright © 2002-2012 Atlassian. All Rights Reserved.