Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Liferay 7 PortletConfigurationPortlet Hook
Hi All,
In Liferay document library when we update the permissions of folder "A" . Folder A subfolders -> subfolders upto end folder also needs to update with same permissions.
In 6.2 i did it using of structuts Action path(EditPermissionsAction action class hook implemented) and working fine, but now i need to implement same thing in liferay 7 in liferay 7 they implemented permissions in portlet-configuration-web MVC portlet(PortletConfigurationPortlet ) But in hook how we can implement it?
The EditPermissionsAction class Extented MVCportlet and in this class updateRolePermissions is a action Method.
But In jsp page they are not using the MVCActionCommand
<portlet:actionURL name="updateRolePermissions" var="updateRolePermissionsURL">
<portlet:param name="mvcPath" value="/edit_permissions.jsp" />
<portlet:param name="tabs2" value="<%= tabs2 %>" />
<portlet:param name="cur" value="<%= String.valueOf(cur) %>" />
<portlet:param name="delta" value="<%= String.valueOf(delta) %>" />
<portlet:param name="returnToFullPageURL" value="<%= returnToFullPageURL %>" />
<portlet:param name="portletConfiguration" value="<%= Boolean.TRUE.toString() %>" />
<portlet:param name="portletResource" value="<%= portletResource %>" />
<portlet:param name="modelResource" value="<%= modelResource %>" />
<portlet:param name="modelResourceDescription" value="<%= modelResourceDescription %>" />
<portlet:param name="resourceGroupId" value="<%= String.valueOf(resourceGroupId) %>" />
<portlet:param name="resourcePrimKey" value="<%= resourcePrimKey %>" />
<portlet:param name="roleTypes" value="<%= roleTypesParam %>" />
</portlet:actionURL>
Using of ActionCommandHook we can implement it?. if yes Please give me basic idea how to implement?
Please let me know if any one knows.
In Liferay document library when we update the permissions of folder "A" . Folder A subfolders -> subfolders upto end folder also needs to update with same permissions.
In 6.2 i did it using of structuts Action path(EditPermissionsAction action class hook implemented) and working fine, but now i need to implement same thing in liferay 7 in liferay 7 they implemented permissions in portlet-configuration-web MVC portlet(PortletConfigurationPortlet ) But in hook how we can implement it?
The EditPermissionsAction class Extented MVCportlet and in this class updateRolePermissions is a action Method.
But In jsp page they are not using the MVCActionCommand
<portlet:actionURL name="updateRolePermissions" var="updateRolePermissionsURL">
<portlet:param name="mvcPath" value="/edit_permissions.jsp" />
<portlet:param name="tabs2" value="<%= tabs2 %>" />
<portlet:param name="cur" value="<%= String.valueOf(cur) %>" />
<portlet:param name="delta" value="<%= String.valueOf(delta) %>" />
<portlet:param name="returnToFullPageURL" value="<%= returnToFullPageURL %>" />
<portlet:param name="portletConfiguration" value="<%= Boolean.TRUE.toString() %>" />
<portlet:param name="portletResource" value="<%= portletResource %>" />
<portlet:param name="modelResource" value="<%= modelResource %>" />
<portlet:param name="modelResourceDescription" value="<%= modelResourceDescription %>" />
<portlet:param name="resourceGroupId" value="<%= String.valueOf(resourceGroupId) %>" />
<portlet:param name="resourcePrimKey" value="<%= resourcePrimKey %>" />
<portlet:param name="roleTypes" value="<%= roleTypesParam %>" />
</portlet:actionURL>
Using of ActionCommandHook we can implement it?. if yes Please give me basic idea how to implement?
Please let me know if any one knows.
Hi,Any solution for above issue?
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™