gpt4 book ai didi

java - 如何在Domino Designer中使用java创建Lotus Notes session

转载 作者:行者123 更新时间:2023-12-01 13:36:14 24 4
gpt4 key购买 nike

您好,我正在尝试使用 java 在 Lotus Notes 中创建 session 。我能够向收件人发送 session 邀请。但是当我发送 session 时,主席和收件人可用的选项是相同的。(选项如接受,拒绝)。但是主席和收件人的选项应该不同。有人可以告诉我该怎么做吗?

public DocumentKey save(final Session session, final Database db, boolean send,
String moveToFolder) throws NotesException, Io Exception {
//setBody(null);
Document doc = null;
RichTextItem rti = null;
try {
doc = db.createDocument();
db.getView(ServiceConstants.MEETINGS);
// Here i am setting all the properties for that document.
// I cant post that code as it has
// over 100 properties, so more than 100 lines of code

rti = doc.createRichTextItem(ServiceConstants.BODY);
rti.appendText(getBody());
if ((attachment != null) && (attachment.length > 0)) {
for (int i = 0; i < attachment.length; i++) {
attachment[i].save(rti);
}
}
doc.save(true, true, true);
if (send) {
doc.send();
}
if (!isBlank(moveToFolder)) {
doc.putInFolder(moveToFolder, true);
}
setKey(new DocumentKey(doc.getNoteID()));
} finally {
Helper.cleanupIfNeeded(rti);
Helper.cleanupIfNeeded(doc);
}
return getKey();
}

最佳答案

要成功安排 session ,您需要遵循 calendaring and scheduling schema

简而言之:必须在主席的邮件文件中创建 session ,并且邀请必须是对该主文档的响应 (doc.MakeResponse(...)) 并通过邮件发送。 “ApptUnid”项将它们全部联系在一起。

阅读链接中的文档,非常好

关于java - 如何在Domino Designer中使用java创建Lotus Notes session ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21251353/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com