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

Larインポート時にAssetEntryUsageのエントリーが自動生成されない

Written By

Sergio Alonso

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.

問題

  • 完全なサイトエクスポート(ページ+ウェブコンテンツ)をインポートした後、データベースに AssetEntryUsage のエントリが存在しないことを確認しました。
  • 自作のgroovyスクリプトで確認しました。
  • 私たちの問題は、20以上のサイトがあり、それぞれに数百のウェブコンテンツがあるのですが、検索者からその利用状況を見せたいのです。

環境

  • Liferay DXP 7.2

解像度

  • Liferay DXP 7.2 では、 AssetEntryUsage のエンティティは、エクスポート処理に含まれません。 したがって、larファイルをインポートする場合、 AssetEntryUsage のエンティティが直接インポートされることはない。
  • これらの実体は、ユーザーがウェブコンテンツ版(View Usages タブ)またはウェブコンテンツ管理(View Usages オプション)のケバブメニューから要求すると、遅延した方法で生成されます。

追加情報

  • AssetEntryUsage エンティティ生成を行うソースコードです:
    com.liferay.asset.taglib.internal.servlet.taglib.util.AssetEntryUsagesTaglibUtil.recordAssetEntryUsage(String className, long classPK)
    className: gets the related to "com.liferay.journal.model.JournalArticle"
    classPK: gets the classpk attribute from AssetEntry
  • ソースは DXP 7.2 Fix Pack 8+から入手できます。

Did this article resolve your issue ?

Legacy Knowledge Base