All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.edit_role_permissions_form.jsp Maven / Gradle / Ivy

The newest version!
<%--
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */
--%>

<%@ include file="/init.jsp" %>

<%
String tabs3 = ParamUtil.getString(request, "tabs3", "current");

long roleId = ParamUtil.getLong(request, "roleId");

Role role = RoleServiceUtil.fetchRole(roleId);

String portletResource = ParamUtil.getString(request, "portletResource");

Portlet portlet = null;
String portletResourceLabel = null;

if (Validator.isNotNull(portletResource)) {
	portlet = PortletLocalServiceUtil.getPortletById(company.getCompanyId(), portletResource);

	String portletId = portlet.getPortletId();

	if (portletId.equals(PortletKeys.PORTAL)) {
		portletResourceLabel = LanguageUtil.get(request, "general-permissions");
	}
	else {
		portletResourceLabel = PortalUtil.getPortletLongTitle(portlet, application, locale);
	}
}

List modelResources = null;

if (Validator.isNotNull(portletResource)) {
	modelResources = ResourceActionsUtil.getPortletModelResources(portletResource);
}
%>


	



	
	
	
	
	
	
	
	

	
		
			

<%= HtmlUtil.escape(portletResourceLabel) %>

<% request.setAttribute("edit_role_permissions.jsp-curPortletResource", portletResource); String applicationPermissionsLabel = "application-permissions"; PanelCategoryHelper panelCategoryHelper = (PanelCategoryHelper)request.getAttribute(ApplicationListWebKeys.PANEL_CATEGORY_HELPER); if (portletResource.equals(PortletKeys.PORTAL)) { applicationPermissionsLabel = StringPool.BLANK; } else if ((portlet != null) && panelCategoryHelper.containsPortlet(portlet.getPortletId(), PanelCategoryKeys.ROOT)) { applicationPermissionsLabel = "general-permissions"; } %>
<% modelResources = ListUtil.sort(modelResources, new ModelResourceWeightComparator()); for (int i = 0; i < modelResources.size(); i++) { String curModelResource = modelResources.get(i); String curModelResourceName = ResourceActionsUtil.getModelResource(request, curModelResource); %>
<%= curModelResourceName %>
<% request.setAttribute("edit_role_permissions.jsp-curModelResource", curModelResource); request.setAttribute("edit_role_permissions.jsp-curModelResourceName", curModelResourceName); %> <% } %>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy