I need to run some cron job for all groups that are organisations depending on the portlet group scope preferences.
If I add portlet to the organisation page, set some preferences to portlet and then remove the portlet, preferences are not removed and cron job continues to perform task.
Is there any way to figure out that a portlet was removed or that there is no portlet with concrete id
connected to particular groupId
?
Environment: Liferay 6.1