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

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

There is a newer version: 5.0.96
Show newest version
<%--
/**
 * 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"); %>
<%= HtmlUtil.escape(jsonObject.getString("message")) %> <% 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")) %>)
  • <% } %>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy