文档中有一个字段将任何 Notes 文档标记为冲突,称为“$Conflict”。如果它出现在文档上,那么您就知道这是一个冲突,(就像 Carlos 逃避的那样)。
您可以在具有公式的数据库中创建一个视图。
选择@isAvailable("$Conflict")
然后循环浏览视图中的所有文档。看起来你是用 Java 做的,所以我认为它看起来像这样
import lotus.domino.*;
import java.util.*;
//.....
//.....
Session s = NotesFactory.createSession();
Database db = s.getDatabase("server", "filename");
View vw = db.getView("viewname");
Document doc = null;
doc = vw.getFirstDocument();
while (doc != null) {
// do what you want in here.
doc = vw.getNextDocument(doc);
}
You'll need to make sure you have added the Domino jars to your project. This is a good reference for setting up the eclipse IDE for Domino java development.
PS. You can also modify the design of the database to minimise replication conflicts. But I won't bore you here with the details. Post a comment if you would like to know and ill provide instructions on this thread.