
META-INF.resources.view.jsp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.marketplace.app.manager.web Show documentation
Show all versions of com.liferay.marketplace.app.manager.web Show documentation
Liferay Marketplace App Manager Web
<%--
/**
* 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 category = ParamUtil.getString(request, "category", "all-categories");
String state = ParamUtil.getString(request, "state", "all-statuses");
String orderByType = ParamUtil.getString(request, "orderByType", "asc");
List apps = AppLocalServiceUtil.getApps(QueryUtil.ALL_POS, QueryUtil.ALL_POS);
List bundles = BundleManagerUtil.getBundles();
PortletURL portletURL = renderResponse.createRenderURL();
portletURL.setParameter("category", category);
portletURL.setParameter("state", state);
portletURL.setParameter("orderByType", orderByType);
PortalUtil.addPortletBreadcrumbEntry(request, LanguageUtil.get(request, "app-manager"), null);
%>
<%
if (category.equals("all-categories")) {
category = StringPool.BLANK;
}
List appDisplays = AppDisplayFactoryUtil.getAppDisplays(bundles, category, BundleStateConstants.getState(state));
appDisplays = ListUtil.sort(appDisplays, new AppDisplayComparator(orderByType));
int end = searchContainer.getEnd();
if (end > appDisplays.size()) {
end = appDisplays.size();
}
searchContainer.setResults(appDisplays.subList(searchContainer.getStart(), end));
searchContainer.setTotal(appDisplays.size());
%>
<%@ include file="/app_display_columns.jspf" %>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy