public interface EventConfig
EventConfigFactory
クラスから取得してください。 EventConfig config = EventConfigFactory.getInstance().getEventConfig();
イベントの名称やカテゴリとしてのアプリケーション情報を定義するためには、プラグインによる設定が必要です。<!-- アプリケーション設定ファイル --> <extension point="jp.co.intra_mart.message_hub.Applications"> <application id="アプリケーション情報のID" name="アプリケーション情報のデフォルト名称" name-key="アプリケーション情報の名称用のメッセージコード" rank="90" version="8.0.0"> <description message-cd="説明用のメッセージコード">デフォルトの説明</description> </application> </extension>
<!-- イベントカテゴリ設定ファイル --> <extension point="jp.co.intra_mart.message_hub.EventCategoriess"> <application id="イベントカテゴリ情報のID" name="イベントカテゴリ情報のデフォルト名称" name-key="イベントカテゴリ情報の名称用のメッセージコード" parent-id="このイベント情報の親アプリケーション、または、親カテゴリを表すID" rank="90" version="8.0.0"> <description message-cd="説明用のメッセージコード">デフォルトの説明</description> </application> </extension>
<!-- イベント設定ファイル --> <extension point="jp.co.intra_mart.message_hub.Events"> <event id="イベント情報のID - 実際のイベントクラスのFQCN" name="イベント情報のデフォルト名称" name-key="イベント情報の名称用のメッセージコード" parent-id="このイベント情報の親アプリケーション、または、親カテゴリを表すID" rank="90" version="8.0.0"> <description message-cd="説明用のメッセージコード">デフォルトの説明</description> <display-setting visible="表示可否: true/false" initial-check-state="初期チェック状態: checked/unchecked" allow-user-settings="ユーザ設定可否: true/false"> <delivery-media id="配信先メディアID" initial-check-state="初期チェック状態: checked/unchecked" allow-user-settings="ユーザ設定可否: true/false" /> </display-setting> </event> </extension>
parent-id
を基に、アプリケーション情報(ApplicationElement
)を親とするツリーとして構築されます。ApplicationElement
, EventCategoryElement
, EventElement
)の以下の情報は、ロケールを利用した情報が取得できます。
AccountContext.getLocale()
)とメッセージコードで取得したメッセージ<!-- アプリケーション設定ファイル --> <extension point="jp.co.intra_mart.message_hub.Applications"> <application id="アプリケーションID"> : <restrictions> <restriction type="product-id">PRODUCT1, PRODUCT2</restriction> </restrictions> : </application> </extension>
ApplicationElement getApplicationElement(Locale locale, String applicationId)
null
を返却します。locale
- ロケールapplicationId
- アプリケーションIDApplicationElement getApplicationElement(String applicationId)
null
を返却します。applicationId
- アプリケーションIDList<ApplicationElement> getApplicationElements()
List<ApplicationElement> getApplicationElements(Locale locale)
locale
- ロケールString getApplicationName(Locale locale, String applicationId)
null
を返却します。locale
- ロケールapplicationId
- アプリケーションIDString getApplicationName(String applicationId)
null
を返却します。applicationId
- アプリケーションIDEventCategoryElement getEventCategoryElement(Locale locale, String eventCategoryId)
null
を返却します。locale
- ロケールeventCategoryId
- イベントカテゴリIDEventCategoryElement getEventCategoryElement(String eventCategoryId)
null
を返却します。eventCategoryId
- イベントカテゴリIDString getEventCategoryName(Locale locale, String eventCategoryId)
null
を返却します。locale
- ロケールeventCategoryId
- イベントカテゴリIDString getEventCategoryName(String eventCategoryId)
null
を返却します。eventCategoryId
- イベントカテゴリIDEventElement getEventElement(Locale locale, String eventId)
null
を返却します。locale
- ロケールeventId
- イベントIDEventElement getEventElement(String eventId)
null
を返却します。eventId
- イベントIDList<EventElement> getEventElements()
List<EventElement> getEventElements(Locale locale)
locale
- ロケールString getEventName(Locale locale, String eventId)
null
を返却します。locale
- ロケールeventId
- イベントIDCopyright © 2012 NTT DATA INTRAMART CORPORATION