Hi Bharanitharan,
As you not mentioned which page you want to restrict from deleting.
So here considering that you want to restrict the community page for getting deleted if it is using in your Custom table.
So for that pls check following files. html/portlet/communities/edit_pages.jsp , com.liferay.portlet.communities.action.EditPagesAction
Need to put message in edit_pages.jsp.
In EditPagesAction you will see the line as below for deleting the layout.
1else if (cmd.equals(Constants.DELETE)) {
2 CommunitiesUtil.deleteLayout(actionRequest, actionResponse);
3 }
So you can modify the method deleteLayout method of CommunitiesUtil in order to restrict according to your condition that you want to put on it.
But the point is that how you will access your Custom service Classes inside the EXT Environment in order to put your condition?
So for that you need to put your custom service jar file inside
tomcat/lib/ext.
Regards,
Amit Doshi
Be kell jelentkezni ahhoz, hogy ez helytelenként legyen megjelölve.