”CounterLocalService.fetchCounter”がDXP 7.2以降のバージョンに存在しません。
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
問題
- com.liferay.counter.kernel.service.CounterLocalService.fetchCounter(java.lang.String name)がLiferay DXP 7.0では存在していたのに、Liferay DXP 7.2以降のバージョンでは存在しません。
解決
-
DXP 7.2から、カウンタを直接操作することができなくなりました。
-
カウンタはCounterRegisterで維持され、counterRegisterを介してのみカウンタの操作を実行できるように変更となっております。
did-this-article-resolve-your-issue