下節說明如何搜尋產生器:
建立「搜尋產生器」資料檔案。
「搜尋產生器」資料檔案可包含以下內容:
producer.name=producer_name
producer.description=producer_description
「搜尋產生器」資料檔案包含要在登錄中搜尋的產生器描述。使用字元 % 做為萬用字元。例如,producer.name 中的 %acme% 會搜尋任何名稱包含 "acme" 的 WSRP 產生器。
若要搜尋登錄,請使用以下指令:
./psadmin search-registry -m consumer -u amadmin -f ps_password -C search_producer_datafile -p portal1
建立「搜尋 Portlet」資料檔案。
「搜尋 Portlet」資料檔案可包含以下內容:
portlet.name=portlet_name
portlet.description=portlet_description
「搜尋 Portlet」資料檔案包含要在登錄中搜尋的 Portlet 描述。使用字元 % 做為萬用字元。例如,portlet.name 中的 %stock% 會搜尋任何名稱包含字串 "stock" 的 Portlet。
若要根據詳細資訊搜尋 Portlet,請使用以下指令:
./psadmin search-registry -m consumer -u amadmin -f ps_password -D search_portlet_datafile
建立「搜尋組織」資料檔案。
「搜尋組織」資料檔案應包含以下內容:
organization.name=organization_name
organization.description=organization_description
「搜尋組織」資料檔案包含要在登錄中搜尋的組織描述。使用字元 % 做為萬用字元。例如,portlet.name 中的 %acme% 會搜尋任何名稱包含字串 "acme" 的組織。
若要根據組織資料檔案搜尋,請使用以下指令:
./psadmin search-registry -m consumer -u amadmin -f ps_password -L search_organization_datafile -p portal1