<%--
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * The contents of this file are subject to the terms of the Liferay Enterprise
 * Subscription License ("License"). You may not use this file except in
 * compliance with the License. You can obtain a copy of the License by
 * contacting Liferay, Inc. See the License for the specific language governing
 * permissions and limitations under the License, including but not limited to
 * distribution rights of the Software.
 *
 *
 *
 */
--%>

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

<%
String cmd = ParamUtil.getString(request, Constants.CMD);

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

Role role = RoleServiceUtil.fetchRole(roleId);

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

request.setAttribute("edit_role_permissions.jsp-portletResource", portletResource);
request.setAttribute("edit_role_permissions.jsp-role", role);
%>

<c:choose>
	<c:when test="<%= cmd.equals(Constants.EDIT) %>">
		<liferay-util:include page="/edit_role_permissions_form.jsp" servletContext="<%= application %>" />
	</c:when>
	<c:otherwise>
		<liferay-util:include page="/edit_role_permissions_summary.jsp" servletContext="<%= application %>" />
	</c:otherwise>
</c:choose>