欢迎来到天天文库
浏览记录
ID:37562696
大小:130.79 KB
页数:18页
时间:2019-05-25
《深入讲解LotusNotes插件编程》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、深入讲解LotusNotes插件编程http://www.21tx.com/2010年01月14日ibm李伟 简介 众所周知,LotusNotesV8以后的各个版本都是基于强大的托管客户机软件平台LotusExpeditor开发而成的,而LotusExpeditor扩展了Eclipse,是基于插件的架构,这也使得LotusNotes具有良好的可扩展性。LotusNotes发展到今天已经成为一个非常强大的集成了Web2.0功能特性的协作办公软件。 本文通过几个LotusNotes插件的开发介绍,深入浅出的讲解如何基于LotusNote
2、s平台,开发最常用的Notes插件。从而增强LotusNotes的协作能力,满足用户在工作中的实际需要。 SenderAnalystics插件开发 项目简介 该插件通过Email地址来分析发信人的信息。当用户收到一个陌生人的来信,准备进一步了解该发信人的信息时,这个插件特别有用。 扩展实现 如清单1所示,SenderAnalystics插件扩展了Eclipse平台的org.eclipse.ui.popupMenus扩展点。请注意objectClass的值是com.ibm.rcp.realtime.livenames.LiveNa
3、meSelection,当您在LotusNotes中选择一封Email或者一个对象中包含了Sametime的LiveName信息,其视图弹出菜单中将显示该扩展的菜单项。清单1.Plugin.xml 4、cp.realtime.livenames.LiveNameSelection" id="senderanalyzer" adaptable="true"> 5、gif" enablesFor="1" id="com.ibm.lotus.openntf.senderanalyzer"> 当ObjectClass是LiveNameSelection对象的时候,在Action的run方法里面,我们能够拿到com.ibm.rcp.realtime.livenames.LiveName对象信息。在SametimeJavadoc文档中,我们知道LiveNa
4、cp.realtime.livenames.LiveNameSelection" id="senderanalyzer" adaptable="true"> 5、gif" enablesFor="1" id="com.ibm.lotus.openntf.senderanalyzer">
5、gif" enablesFor="1" id="com.ibm.lotus.openntf.senderanalyzer">
6、me有以下一些方法,可以获取发信人的相关信息。如表1所示,详情请下载LotusSametimeSDK并参考有关文档。java.lang.StringgetCommunityId()ReturnstheIDofthecommunitythatthispersonbelongsto.java.lang.StringgetContactId()Returnstheperson'scontactID.java.lang.StringgetDisplayName()Returnstheperson'sdisplayname.java.lang.St
7、ringgetId()Returnstheperson'suniqueID.java.lang.StringgetName()Returnsthepersonsusername.intgetStatus()Returnstheperson'sstatus,oneoftheSTATUS_xxxcodesdefinedinthisinterface.org.eclipse.swt.graphics.ImagegetStatusImage()Returnstheimagedisplayedfortheperson'sstatus.java.la
8、ng.StringgetStatusMessage()Returnstheperson'sstatusmessage. 在SenderAnalystic插件开发中,我们通过LiveName对
此文档下载收益归作者所有