legacy-knowledge-base
公開されました Sep. 10, 2025

DXPでカレンダーのメール通知を無効にする

written-by

Michael Warren Young

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Liferay Portal 6.1では、portal-ext.propertiesを使用してカレンダー通知を無効にすることができました
  • Liferay DXP 7.0+では、これらのプロパティは存在しなくなりました

環境

  • Liferay DXP 7.0+

解決

注意: この解決策にはカスタマイズが必要であり、お客様による実装が必要となります。 Liferayサポートは、カスタマイズの設計または実装を支援できません。

  • 最良のオプションはCalendarBookingLocalServiceラッパーを作成することです
  • ラッパーは、カレンダーイベントを追加および更新するメソッドを呼び出す直前、およびカレンダーイベントステータスを更新するメソッドを呼び出す前に、オブジェクトserviceContextsendNotification属性にfalseを設定する必要があります
  • この解決策は、ユーザーがアクティブに設定するリマインダー通知を除くすべてのカレンダー通知を処理します
  • カレンダー通知を無効にするメソッド呼び出しの前に追加されるコード:
      1serviceContext.setAttribute("sendNotification", Boolean.FALSE);
  • CalendarBookingWrapperに追加する必要があるメソッドのリスト:
  • また、コードをaddChildCalendarBookingsからラッパーにコピーし、sendNotificationメソッドを呼び出す直前にsendNotificationパラメーターをfalseに設定する必要があります。このを削除する必要があります

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base