I am having problem when using database.getAllUnreadDocuments() method. it throws not implemented exception. Plz help me by telling me how can i check mail is unread or read. I am using JAVA/Corba DIIOP service for interacting Domino Server. document.getRead() is also throwing same exception.I am writing as
Session ss=NotesFactory.createSession(host,uid,pwd);
DBDirectory db=ds.getDbDirectory(null);
Database mdb=db.openMailDatabase();
DocumentCollection dc = mdb.getAllUnreadDocuments(); → throws exception not implemented.
Subject: username
I don’t do any Java/Corba dev, but I’m going to take a stab at this anyway.
Syntax
public DocumentCollection getAllUnreadDocuments([string userid])
Parameters
string userid
Optional. If present, the method returns unread documents on behalf of the given name. If omitted, the method returns unread documents on behalf of the current user ID.
Are you sure your program is able to access the “current user ID” to use for ‘string userid’? Maybe you could add a line to test for that, or just go ahead and pull the username into a variable to include in this parameter?
Subject: not Implemented
Thanx for ur response Maria,
Notes provide the method signature but not the definition for identifying the read and unread mails.
I am able to get the user id while calling the function but still it throws exception not implemented.
Is there any way to implement that functionality just for identifying Read and Unread Mails.
for ur said method please provide the method body or any sample to get things done.
Subject: sorry…
All I have was directly from the help file. As I said, I’ve not worked with the Java/Corba tools.
It sounds like “not implemented” is saying that what you’re trying to do…doesn’t exist.