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

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

There is a newer version: 2.0.4
Show newest version
<%--
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */
--%>

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

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

AppDisplay appDisplay = null;

List bundles = BundleManagerUtil.getBundles();

if (Validator.isNumber(app)) {
	appDisplay = AppDisplayFactoryUtil.getAppDisplay(bundles, Long.parseLong(app));
}

if (appDisplay == null) {
	appDisplay = AppDisplayFactoryUtil.getAppDisplay(bundles, app);
}

String state = ParamUtil.getString(request, "state", "all-statuses");

String orderByType = ParamUtil.getString(request, "orderByType", "asc");

PortletURL portletURL = renderResponse.createRenderURL();

portletURL.setParameter("mvcPath", "/view_module_groups.jsp");
portletURL.setParameter("app", app);
portletURL.setParameter("state", state);
portletURL.setParameter("orderByType", orderByType);

portletDisplay.setShowBackIcon(true);

PortletURL backURL = renderResponse.createRenderURL();

backURL.setParameter("mvcPath", "/view.jsp");

portletDisplay.setURLBack(backURL.toString());

renderResponse.setTitle(appDisplay.getTitle());

MarketplaceAppManagerUtil.addPortletBreadcrumbEntry(appDisplay, request, renderResponse);
%>


	
		
			
		

		
	

	
		
			
		

		
			

			
		
	



	
		
	

	
		

		
	


<% List moduleGroupDisplays = ModuleGroupDisplayFactoryUtil.getModuleGroupDisplays(appDisplay, BundleStateConstants.getState(state)); moduleGroupDisplays = ListUtil.sort(moduleGroupDisplays, new ModuleGroupDisplayComparator(orderByType)); int end = searchContainer.getEnd(); if (end > moduleGroupDisplays.size()) { end = moduleGroupDisplays.size(); } searchContainer.setResults(moduleGroupDisplays.subList(searchContainer.getStart(), end)); searchContainer.setTotal(moduleGroupDisplays.size()); %> <%@ include file="/module_group_display_columns.jspf" %>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy