uCosminexus Portal Framework ポートレット開発ガイド
ポートレットアプリケーションDD(portlet.xml)とは,標準APIポートレットの名称やクラス名を設定するファイルです。ポートレットアプリケーションDDファイルのサンプルおよび注意事項を次に示します。なお,ポートレットアプリケーションDDで使用するタグは,Java Portlet Specification 1.0の仕様を参照してください。
- <この項の構成>
- (1) ポートレットアプリケーションDDの作成例
- (2) ポートレットアプリケーションDD作成時の注意事項
サンプルのポートレットアプリケーションDDを次に示します。
サンプルのポートレットアプリケーションDD
<?xml version="1.0" encoding="UTF-8" ?> <portlet-app version="1.0" xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"> <portlet> <description>Sample Portlet</description> <portlet-name>SamplePortlet</portlet-name> <display-name>Sample Portlet</display-name> <portlet-class>portlets.SamplePortlet</portlet-class> <expiration-cache>-1</expiration-cache> <supports> <mime-type>text/html</mime-type> <portlet-mode>VIEW</portlet-mode> </supports> <supported-locale>en</supported-locale> <portlet-info> <title>Sample Portlet</title> <short-title>Sample</short-title> <keywords>Sample,Sample Portlet</keywords> </portlet-info> </portlet> </portlet-app>
ポートレットアプリケーションDDに設定するタグの注意事項を次に示します。
- <portlet-name>タグ:半角英数字1文字以上32文字以内の文字列を指定してください。
- <portlet-mode>タグ:「EDIT」,「HELP」または「VIEW」のいずれかの文字列を指定できます。大文字,小文字の区別はありません。
- <read-only>タグ:「true」または「false」のいずれかの文字列を指定できます。大文字,小文字を区別します。
- <transport-guarantee>タグ:「NONE」,「INTEGRAL」または「CONFIDENTIAL」のいずれかの文字列を指定できます。大文字,小文字を区別します。
All Rights Reserved. Copyright (C) 2009, 2013, Hitachi, Ltd.
All Rights Reserved. Copyright (C) 2009, 2013, Hitachi INS Software, Ltd.