建立小組件附件檔以呼叫功能的更新網站
小組件的 extension.xml您可以使用Features and PluginsNotes®中的功能和外掛程式精靈來簡化此處描述的流程。
如需如何設定此功能,請參閱下列各主題:
請執行這些步驟來建立小組件的 extension.xml
Note: The
Start Configuring Widgets toolbar button contains a Features and
Plugins option. This option launches a wizard sequence designed to simplify the process
of creating a Notes® client plug-in deployment widget. The
wizard guides you through the widget definition and extension.xml creation
process. For details, see How do I configure a Features and Plugins deployment widget?
in Notes® user help.
下列為一些範例 XML 定義:
其中說明 extension.xml本範例參照 NSF 型更新網站中的 site.xml
依預設,僅不需要認證的公用更新網站可用來進行功能部署 (使用小組件) 不過,您可以使用帳戶來配置更新網站的存取權 (該網站需要使用者認證)但是,您可以使用帳戶來設定對需要使用者驗證的更新網站的存取。
Notes_install_dir假設小組件的 .XML 的安裝資訊清單中已設定 shared="true",則外掛程式會安裝至 Notes_install_dir\framework\shared\eclipse。
注意:您可以取得本範例中使用的範例extension.xml檔案;請參閱相關資訊連結。
- xml 版本 = 內部設定,使用與範例中所指定相同的設定
- encoding = 內部設定,使用與範例中所指定相同的設定
- webcontextConfiguration version = 內部設定,使用與範例中所指定相同的設定
- palleteItem id = 內部 ID 設定,此項目必須符合範例中指定的名稱空間/ID 格式 - 每一個 Pallette 項目的值必須是唯一的
- imageURL =「我的小組件」側邊工具列中出現之小組件圖形所位於的 URL,如果未指定任何值,則會使用預設圖形
- 提供者ID = 陳述小組件的目的,對於部署功能的小組件,您必須使用與範例中所指定相同的設定
- tilte = 出現在「我的小組件」側邊工具列畫面中的小組件名稱
- url = 更新網站及 site.xml如果更新網站駐留在Domino ®伺服器上基於 NSF 的更新網站(例如updateSite.nsf )中,則可以使用 NRCP 協定指定 URL 值;如果更新網站存在於 HTTP 伺服器上,則可以使用 HTTP 協定指定 URL 值。
程序
建立 extension.xml使用以下 XML 範例作為指南。
範例 XML
以粗體字表示的項目是您需要針對自己的功能自訂的欄位。
<?xml version="1.0" encoding="UTF-8"?>
<webcontextConfiguration version="1.1">
<palleteItem id="com.mycompany.xyz.extensions.featureABX" imageUrl=""
providerId="com.ibm.rcp.toolbox.prov.provider.ToolboxProvisioning"
title="Comp XYZ Custom Plugin"
url="nrpc://WidgetCatalogServer.abx.com/updatesite.nsf/site.xml">
<preferences>
</preferences>
<data>
<installManifest>
<![CDATA[
<install>
<installfeature description="Comp XYZ Custom Plugin" id="Test_Feature_ABX" name="Test Feature ABX">
<requirements>
<feature download-size="10" id="Test_Feature_ABX" match="perfect" shared="true" size="10" version="1.0"/>
<requirements>
</installfeature>
</install>
]]>
</installManifest>
</data>
</palleteItem>
</webcontextConfiguration>