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

META-INF.resources.process_message_task_details.page.jsp Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
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="/process_message_task_details/init.jsp" %>


	
<% BackgroundTask backgroundTask = BackgroundTaskManagerUtil.fetchBackgroundTask(backgroundTaskId); JSONObject jsonObject = null; try { jsonObject = JSONFactoryUtil.createJSONObject(backgroundTaskStatusMessage); } 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 messageListItemJSONArray = messageListItemsJSONArray.getJSONObject(i); String info = messageListItemJSONArray.getString("info"); %>
  • <%= messageListItemJSONArray.getString("type") %> <%= messageListItemJSONArray.getString("site") %>: <%= HtmlUtil.escape(messageListItemJSONArray.getString("name")) %> (<%= HtmlUtil.escape(messageListItemJSONArray.getString("info")) %>)
  • <% } %>
<% JSONArray warningMessagesJSONArray = jsonObject.getJSONArray("warningMessages"); %>
    <% for (int i = 0; i < warningMessagesJSONArray.length(); i++) { JSONObject warningMessageJSONArray = warningMessagesJSONArray.getJSONObject(i); String info = warningMessageJSONArray.getString("info"); %>
  • <%= warningMessageJSONArray.getString("type") %>: <%= warningMessageJSONArray.getString("size") %> (<%= HtmlUtil.escape(warningMessageJSONArray.getString("info")) %>)
  • <% } %>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy