META-INF.resources.view.jsp Maven / Gradle / Ivy
<%--
/**
* 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" %>
<%
SearchContainer countrySearchContainer = CountrySearchContainerFactory.create(liferayPortletRequest, liferayPortletResponse);
%>
<%
List availableActions = new ArrayList<>();
availableActions.add("deleteCountries");
if (country.getActive()) {
availableActions.add("deactivateCountries");
}
else {
availableActions.add("activateCountries");
}
row.setData(
HashMapBuilder.put(
"actions", StringUtil.merge(availableActions)
).build());
%>
<%
if (!PortalPermissionUtil.contains(permissionChecker, ActionKeys.MANAGE_COUNTRIES)) {
rowURL = null;
}
%>