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

META-INF.resources.view_modules.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 allBundles = BundleManagerUtil.getBundles();

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

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

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

ModuleGroupDisplay moduleGroupDisplay = null;

if (Validator.isNotNull(moduleGroup)) {
	moduleGroupDisplay = ModuleGroupDisplayFactoryUtil.getModuleGroupDisplay(appDisplay, moduleGroup);
}

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

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

PortletURL portletURL = renderResponse.createRenderURL();

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

portletDisplay.setShowBackIcon(true);

PortletURL backURL = renderResponse.createRenderURL();

if (Validator.isNotNull(moduleGroup)) {
	backURL.setParameter("mvcPath", "/view_module_groups.jsp");
	backURL.setParameter("app", app);
}

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

portletDisplay.setURLBack(backURL.toString());

renderResponse.setTitle((moduleGroupDisplay != null) ? moduleGroupDisplay.getTitle() : appDisplay.getTitle());

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


	
		
			
			
		

		
	

	
		
			
		

		
			

			
		
	



	
		
	

	
		

		
	


<% List bundles = null; if (moduleGroupDisplay != null) { bundles = moduleGroupDisplay.getBundles(); } else { bundles = appDisplay.getBundles(); } BundleUtil.filterBundles(bundles, BundleStateConstants.getState(state)); bundles = ListUtil.sort(bundles, new BundleComparator(orderByType)); int end = searchContainer.getEnd(); if (end > bundles.size()) { end = bundles.size(); } searchContainer.setResults(bundles.subList(searchContainer.getStart(), end)); searchContainer.setTotal(bundles.size()); %> <%@ include file="/bundle_columns.jspf" %>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy