Eclipse plugin Lotus Notes Java插件创建代理会议
我有一个在Notes日历上创建会议的代码。 我想知道我是否处于代理状态(在其他人的日历上创建会议[我事先不知道是谁])。 现在,我的代码会在我的用户日历(我登录的用户)上自动创建它,看起来是这样的-Eclipse plugin Lotus Notes Java插件创建代理会议,eclipse-plugin,eclipse-rcp,lotus-notes,Eclipse Plugin,Eclipse Rcp,Lotus Notes,我有一个在Notes日历上创建会议的代码。 我想知道我是否处于代理状态(在其他人的日历上创建会议[我事先不知道是谁])。 现在,我的代码会在我的用户日历(我登录的用户)上自动创建它,看起来是这样的- NotesUIWorkspace nui = new NotesUIWorkspace(); session = NotesFactory.createSessionWithFullAccess();
NotesUIWorkspace nui = new NotesUIWorkspace();
session = NotesFactory.createSessionWithFullAccess();
DbDirectory dbdir = session.getDbDirectory(null);
Database maildb = dbdir.openMailDatabase();
NotesDatabaseData dbData = new NotesDatabaseData(maildb);
NotesFormData formData = new NotesFormData (dbData, "Appointment");
formData.addComposeItem("SendTo", Eto);
formData.addComposeItem("Subject", Esub);
formData.addComposeItem("Body", Ebody);
nui.composeDocument(formData);
当委托日历打开时,如何仅通过单击侧栏按钮打开委托数据库
谢谢 好的,我找到了
NotesUIWorkspace nui = new NotesUIWorkspace();
session = NotesFactory.createSessionWithFullAccess();
NotesUIElement elem = nui.getCurrentElement();
NotesDatabaseData dbData = null;
if (elem instanceof NotesUIView){
final NotesUIElement view = elem;
NotesViewData viewData = (NotesViewData) Platform.getAdapterManager().getAdapter(view,
NotesViewData.class);
dbData = (NotesDatabaseData) Platform.getAdapterManager().getAdapter(view,
NotesDatabaseData.class);
System.out.println(dbData.getReplicaId());
System.out.println(viewData.getOpenUrl());
}
DbDirectory dbdir = session.getDbDirectory(null);
if(dbData == null){
Database maildb = dbdir.openMailDatabase();
dbData = new NotesDatabaseData(maildb);
}
NotesFormData formData = new NotesFormData (dbData, "Appointment"); //$NON-NLS-1$
formData.addComposeItem("Subject", Esub); //$NON-NLS-1$
formData.addComposeItem("Body", Ebody); //$NON-NLS-1$
//formData.addComposeItem("IWFlag", "1"); //uses LNA if configured
nui.composeDocument(formData);