
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";
}
%>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy