All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
META-INF.resources.portlet_list.page.jsp Maven / Gradle / Ivy
<%--
/**
* 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="/portlet_list/init.jsp" %>
<%
DateRange dateRange = null;
for (Portlet portlet : portlets) {
if (!type.equals(Constants.EXPORT) && (liveGroup != null) && !liveGroup.isStagedPortlet(portlet.getRootPortletId())) {
continue;
}
PortletDataHandler portletDataHandler = portlet.getPortletDataHandlerInstance();
Class portletDataHandlerClass = portletDataHandler.getClass();
String portletDataHandlerClassName = portletDataHandlerClass.getName();
if (portletDataHandlerClassNames.contains(portletDataHandlerClassName)) {
continue;
}
portletDataHandlerClassNames.add(portletDataHandlerClassName);
String portletTitle = PortalUtil.getPortletTitle(portlet, application, locale);
PortletDataHandlerControl[] exportControls = portletDataHandler.getExportControls();
PortletDataHandlerControl[] metadataControls = portletDataHandler.getExportMetadataControls();
PortletDataHandlerControl[] stagingControls = portletDataHandler.getStagingControls();
if (!type.equals(Constants.EXPORT) && liveGroup.isStagedPortlet(portlet.getRootPortletId())) {
exportControls = stagingControls;
}
if (ArrayUtil.isEmpty(exportControls) && ArrayUtil.isEmpty(metadataControls)) {
continue;
}
if (useRequestValues) {
dateRange = ExportImportDateUtil.getDateRange(renderRequest, exportGroupId, privateLayout, 0, portlet.getRootPortletId(), defaultRange);
}
else {
dateRange = ExportImportDateUtil.getDateRange(exportImportConfiguration, portlet.getRootPortletId());
}
PortletDataContext portletDataContext = PortletDataContextFactoryUtil.createPreparePortletDataContext(company.getCompanyId(), exportGroupId, (range != null) ? range : defaultRange, dateRange.getStartDate(), dateRange.getEndDate());
portletDataHandler.prepareManifestSummary(portletDataContext);
ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
long exportModelCount = portletDataHandler.getExportModelCount(manifestSummary);
long modelDeletionCount = manifestSummary.getModelDeletionCount(portletDataHandler.getDeletionSystemEventStagedModelTypes());
boolean displayCounts = (exportModelCount > 0) || (modelDeletionCount > 0);
if (!type.equals(Constants.EXPORT)) {
UnicodeProperties liveGroupTypeSettings = liveGroup.getTypeSettingsProperties();
displayCounts = displayCounts && GetterUtil.getBoolean(liveGroupTypeSettings.getProperty(StagingUtil.getStagedPortletId(portlet.getRootPortletId())), portletDataHandler.isPublishToLiveByDefault());
}
if (!displayCounts && !showAllPortlets) {
continue;
}
boolean showPortletDataInput = MapUtil.getBoolean(parameterMap, PortletDataHandlerKeys.PORTLET_DATA + StringPool.UNDERLINE + portlet.getPortletId(), portletDataHandler.isPublishToLiveByDefault()) || MapUtil.getBoolean(parameterMap, PortletDataHandlerKeys.PORTLET_DATA_ALL);
%>
<%
String portletId = portlet.getPortletId();
if (!type.equals(Constants.EXPORT)) {
portletId = portlet.getRootPortletId();
}
%>
<%
Map data = new HashMap();
data.put("portletid", portletId);
data.put("portlettitle", portletTitle);
%>
>
Liferay.Util.toggleBoxes(' <%= PortletDataHandlerKeys.PORTLET_DATA + StringPool.UNDERLINE + portlet.getPortletId() %>', ' showChangeContent<%= StringPool.UNDERLINE + portlet.getPortletId() %>');
<%
}
%>