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

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

There is a newer version: 5.0.50
Show 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" %>

<%
ResultRow row = (ResultRow)request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);

AppDisplay appDisplay = (AppDisplay)row.getObject();

String bundleIds = _getBundleIds(appDisplay);
%>



	<%
	String storeURL = appDisplay.getStoreURL(request);
	%>

	
		
	

	
		
			
				
					
					
				

				<%
				String taglibDeactivateBundlesURL = "javascript:Liferay.Util.openConfirmModal({message: '" + UnicodeLanguageUtil.get(request, "are-you-sure-you-want-to-deactivate-this") + "', onConfirm: function (isConfirmed) {if (isConfirmed) {submitForm(document.hrefFm, '" + HtmlUtil.unescape(deactivateBundlesURL.toString()) + "');}}});";
				%>

				
			
		
		
			
				
				
			

			
		
	

	
		
			
			
		

		
	


<%!
private String _getBundleIds(AppDisplay appDisplay) {
	List bundles = appDisplay.getBundles();

	long[] bundleIds = new long[bundles.size()];

	for (int i = 0; i < bundles.size(); i++) {
		Bundle bundle = bundles.get(i);

		bundleIds[i] = bundle.getBundleId();
	}

	return StringUtil.merge(bundleIds);
}
%>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy