Legacy Knowledge Base
公開されました Jul. 2, 2025

Audit から古いデータを削除する方法は?

Written By

Thanga Meena

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • Audit から古いデータを削除する方法は?

Environment

  • Liferay DXP 7.0

解決策

注意: 以下の情報には、Liferay サポートの範囲外のカスタマイズが含まれます。 この情報を使用して、要件に基づいて API を選択またはカスタマイズする場合は、適切な裁量を行使してください。

  • 古い監査データを削除するための OOTB オプションはありません。 これは、要件に応じて何らかのカスタマイズを行うことで実現できます。
  • AuditEventLocalServiceUtil() 以下のような削除メソッドで構成される API が利用可能です。
    • public static AuditEvent deleteAuditEvent(AuditEvent auditEvent)
      注: データベースから監査イベントを削除します。 また、適切なモデル リスナーにも通知します。
      public static AuditEvent deleteAuditEvent(long auditEventId) throws com.liferay.portal.kernel.exception.PortalException
      注: 主キーを持つ監査イベントをデータベースから削除します。 また、適切なモデル リスナーにも通知します。
Did this article resolve your issue ?

Legacy Knowledge Base