markAllRead (DocumentCollection - Java)

Marks all the documents in a collection read.

Note: This method is new with Release 8.

Defined in



public void markAllRead([String user-name])
    throws NotesException


String user-name

Optional. If present, the method marks all the documents in the collection as read on behalf of the given name. If omitted then the method marks the notes as read on behalf of the current user ID.


If the database does not track unread marks, all documents are considered read, and this method has no effect.