簡體   English   中英

如何確定門戶頁面上是否有portlet?

[英]How to figure out if there is a portlet on the portal page?

我需要根據portlet組作用域首選項為組織的所有組運行一些cron作業。

如果我將portlet添加到組織頁面,請為portlet設置一些首選項,然后刪除該portlet,則不會刪除首選項,並且cron作業將繼續執行任務。

是否有任何方法可以確定某個Portlet已被刪除,或者沒有將具體id連接到特定groupId Portlet?

環境:Liferay 6.1

您可以使用PortalUtil.getPlidFromPortletId(long groupId, String portletId)將返回plid該門戶上,或0 ,如果它不是任何頁面上。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM