META-INF.resources.publish_process_message_task_details.jsp Maven / Gradle / Ivy
<%--
/**
* 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" %>
<%
long backgroundTaskId = ParamUtil.getLong(request, BackgroundTaskConstants.BACKGROUND_TASK_ID);
BackgroundTask backgroundTask = BackgroundTaskManagerUtil.fetchBackgroundTask(backgroundTaskId);
JSONObject jsonObject = null;
try {
jsonObject = JSONFactoryUtil.createJSONObject(backgroundTask.getStatusMessage());
}
catch (Exception e) {
}
%>
publish-error">
<%
boolean exported = MapUtil.getBoolean(backgroundTask.getTaskContextMap(), "exported");
boolean validated = MapUtil.getBoolean(backgroundTask.getTaskContextMap(), "validated");
%>
<%
JSONArray messageListItemsJSONArray = jsonObject.getJSONArray("messageListItems");
%>
<%
for (int i = 0; i < messageListItemsJSONArray.length(); i++) {
JSONObject messageListItemJSONObject = messageListItemsJSONArray.getJSONObject(i);
String info = messageListItemJSONObject.getString("info");
%>
-
<%= messageListItemJSONObject.getString("type") %>
<%= messageListItemJSONObject.getString("site") %>:
<%= HtmlUtil.escape(messageListItemJSONObject.getString("name")) %>
(<%= HtmlUtil.escape(messageListItemJSONObject.getString("info")) %>)
<%
}
%>
<%
JSONArray warningMessagesJSONArray = jsonObject.getJSONArray("warningMessages");
%>
<%
for (int i = 0; i < warningMessagesJSONArray.length(); i++) {
JSONObject warningMessageJSONObject = warningMessagesJSONArray.getJSONObject(i);
String info = warningMessageJSONObject.getString("info");
%>
-
<%= warningMessageJSONObject.getString("type") %>:
<%= warningMessageJSONObject.getString("size") %>
(<%= HtmlUtil.escape(warningMessageJSONObject.getString("info")) %>)
<%
}
%>